curl --request POST \
--url https://20b9-41-90-209-232.ngrok-free.app/v1/payins/fee \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_currency": "NGN",
"amount": 5000000
}
'const url = 'https://20b9-41-90-209-232.ngrok-free.app/v1/payins/fee';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({target_currency: 'NGN', amount: 5000000})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://20b9-41-90-209-232.ngrok-free.app/v1/payins/fee"
payload = {
"target_currency": "NGN",
"amount": 5000000
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://20b9-41-90-209-232.ngrok-free.app/v1/payins/fee"
payload := strings.NewReader("{\n \"target_currency\": \"NGN\",\n \"amount\": 5000000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "payin_fee",
"currency": "NGN",
"amount": 5000000,
"partner_fee": 0,
"margin": 5000,
"fee": 5000,
"credit_amount": 4995000,
"scale": 2
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid API key provided."
}
}Payin Fee
Estimate partner + Keette fee before starting a deposit.
curl --request POST \
--url https://20b9-41-90-209-232.ngrok-free.app/v1/payins/fee \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_currency": "NGN",
"amount": 5000000
}
'const url = 'https://20b9-41-90-209-232.ngrok-free.app/v1/payins/fee';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({target_currency: 'NGN', amount: 5000000})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://20b9-41-90-209-232.ngrok-free.app/v1/payins/fee"
payload = {
"target_currency": "NGN",
"amount": 5000000
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://20b9-41-90-209-232.ngrok-free.app/v1/payins/fee"
payload := strings.NewReader("{\n \"target_currency\": \"NGN\",\n \"amount\": 5000000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "payin_fee",
"currency": "NGN",
"amount": 5000000,
"partner_fee": 0,
"margin": 5000,
"fee": 5000,
"credit_amount": 4995000,
"scale": 2
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid API key provided."
}
}Authorizations
Secret API key from Settings → Developers → API keys.
Example: Authorization: Bearer sk_test_…
Body
Book currency that will be credited.
"NGN"
Funding amount in Ledger minor units of currency (or target when omitted).
5000000
Funding method. Accepted values: bank_transfer, momo, interac,
crypto, apple_pay. bank_details / bank are aliases for
bank_transfer. Provide method or mode.
"bank_transfer"
Alternative to method using prepare modes (bank_details,
crypto_address, momo, interac). Mapped to the matching method
for pricing.
"bank_details"
Currency of amount for the fee quote; defaults to target_currency.
Response
Fee quote
Object type discriminator.
payin_fee Currency of the quoted amounts.
Requested funding amount in minor units.
Partner rail cost in minor units.
Keette concession / margin in minor units.
Total fee charged to the payer (partner_fee + margin).
Net amount expected to credit the book after fees.
Pricing source for the margin line.
Internal pricing product key.
Decimal places for the currency.