Business API
Send money across Africa from your own software.
Getting started
1. Create an account and complete verification to tier 3. 2. On the Developers page, ask for API access; our team switches it on. 3. Create a key, top up your AFRIX wallet, and call the API from your server. Transfers made through the API are paid from that wallet straight away.
Every address below starts with https://www.example.com/api/v1. Bodies are JSON. Amounts are decimal strings such as "50000.00", in the currency named beside them.
Keys
Send your key in the Authorization header. A key is shown once when created; we keep only a fingerprint. It works instead of your password and your transaction PIN, so keep it on your server and revoke it at once if it may have leaked.
curl https://www.example.com/api/v1/balance \ -H "Authorization: Bearer afx_live_..."
Errors and limits
Every error has the same shape. Each key may make 120 calls a minute; after that you get 429 and a Retry-After header.
{ "error": { "code": "insufficient_funds", "message": "..." } }
400 invalid_json, idempotency_key_required 401 unauthorized 402 insufficient_funds
404 not_found 409 idempotency_conflict, in_progress 422 invalid_request, route_unavailable
429 rate_limited 500 server_error (safe to retry with the same Idempotency-Key)
Rates
GET /rates lists every route open from your country, with its rate (1 unit you send = this many units they receive) and fee.
{ "data": [ { "from_country": "NG", "to_country": "GH", "send_currency": "NGN", "receive_currency": "GHS",
"rate": "0.008", "fee_percent": 1, "min_fee": "0.00", "reference_rate": null } ] }
Banks and wallets
GET /providers?country=GH lists where money can be paid out in a country, with the code to use in receiver.provider.
{ "data": [ { "method": "bank", "code": "gcb", "name": "GCB Bank" },
{ "method": "mobile_money", "code": "mtn", "name": "MTN Mobile Money" } ] }
Quotes
POST /quotes works out the exact fee, total and amount received at the current rate. Nothing is held. fee_mode is on_top (the default: the fee is added) or deducted (the amount is everything you pay).
curl https://www.example.com/api/v1/quotes -H "Authorization: Bearer afx_..." -H "Content-Type: application/json" \
-d '{ "to_country": "GH", "amount": "50000.00", "fee_mode": "on_top" }'
{ "send_amount": "50000.00", "fee": "500.00", "total_charged": "50500.00", "rate": "0.008",
"receive_currency": "GHS", "receive_amount": "400.00", ... }
Balance
GET /balance shows the AFRIX wallet that API transfers are paid from.
{ "currency": "NGN", "available": "1250000.00" }
Create a transfer
POST /transfers creates a transfer and pays it from your wallet. You must send an Idempotency-Key header, unique for each new transfer (an order number works). If your request times out, send it again with the same key and body: you get the first answer back and nobody is paid twice. The same key with a different body is refused with 409.
receiver.method is bank, mobile_money or wallet. For a bank or mobile money give provider and account; for an AFRIX wallet give email. reason is family, business, school or other. If your wallet is short you get 402 and nothing is taken.
curl https://www.example.com/api/v1/transfers -H "Authorization: Bearer afx_..." -H "Content-Type: application/json" \
-H "Idempotency-Key: order-10442" \
-d '{ "to_country": "GH", "amount": "50000.00", "reason": "business",
"receiver": { "name": "Kofi Boateng", "phone": "0248111111", "method": "bank",
"provider": "gcb", "account": "1020304050" } }'
201 { "reference": "AFRIX-7KQ2MX", "status": "PAID", "total_charged": "50500.00", "receive_amount": "400.00", ... }
Read transfers
GET /transfers/AFRIX-7KQ2MX returns one of your transfers. GET /transfers?limit=20 lists your latest, newest first (up to 100).
Webhooks
Set an https address on the Developers page. When a transfer you made through the API changes, we POST this to it. Answer with any 2xx within 10 seconds. Otherwise we try again after 1, 5, 15 and 30 minutes, then 1, 2, 4 and 8 hours, and then give up. The same event can arrive twice, so use the reference and status to ignore repeats.
POST https://your-site/afrix/webhook
X-Afrix-Event: transfer.delivered
X-Afrix-Signature: t=1764755000,v1=5f2c...
{ "event": "transfer.delivered", "created": "2026-12-03T10:23:20.000Z",
"data": { "reference": "AFRIX-7KQ2MX", "status": "DELIVERED" } }
To check a webhook is really from us, compute HMAC-SHA256 of t + "." + the raw body with your signing secret and compare it with v1. Refuse it if t is more than 5 minutes old.
// Node.js
const crypto = require("crypto");
function fromAfrix(rawBody, header, secret) {
const t = /t=(\d+)/.exec(header)?.[1], v1 = /v1=([0-9a-f]{64})/.exec(header)?.[1];
if (!t || !v1 || Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const expected = crypto.createHmac("sha256", secret).update(t + "." + rawBody).digest();
return crypto.timingSafeEqual(expected, Buffer.from(v1, "hex"));
}
Statuses
PAID: paid from your wallet, being reviewed. SENT: paid out to the bank or mobile money. DELIVERED: the receiver has it. FAILED: the payout did not go through; we retry or refund. REFUNDED: the money is back in your wallet. Webhooks are sent for each of these.