Skip to main content
Besides NGN, the API trades in ten African currencies. Sells pay out to a bank account or a mobile money wallet. Buys are paid from the customer’s mobile money wallet: the customer approves a payment prompt on their phone. You use the same endpoints as for NGN: quotes, buy orders, sell orders, the provider bank list and bank resolution. An African currency adds a few fields, described on this page. NGN requests are unchanged.

Currencies

Send the code as fiatCurrency. Which methods a currency has can change as the providers change their coverage. Payment methods always returns the current ones.

country

string
The country as a two-letter ISO code, such as SN. Required for XOF, which is used in more than one country. Every other currency has one country, so you can leave it out. For a buy, it is the country the customer pays from.
Without it, an XOF request fails with a 400: "country is required for XOF, which is paid out in more than one country. Use one of: CI, SN, ML, BJ, TG."

Payment methods

GET /api/developer/payment-methods?currency=KES This returns how a currency pays out (bank, mobile money, or both), which providers carry each method, and the mobile money networks. If buys are available in the currency, it also returns how the customer pays. Call it to build your payout and payment forms. Send country too for XOF.
  • buy is null when buys are not available in the currency or country.
  • bankName is as the provider lists it, so the same network can be spelled differently in methods and buy. Match on bankCode.
  • A bank method in South Africa has "recipientPhoneRequired": true. See Sells.
  • The request fails with a 400 ("KES payouts are not available yet.") when RampHub has not opened the currency.

Bank and network codes

bankCode works as it does for NGN: take it from the provider bank list with currency set.
  • Each entry’s type is bank or mobile_money. It tells you what accountNumber holds.
  • Codes are shared between providers: a bank or wallet has the same bankCode on both lists, so the code works whichever provider wins the rate. A bank’s code is its SWIFT code, such as KCBLKENX for KCB Kenya.
  • The provider must pay out in the currency. Asking UseBread for TZS works; asking Paycrest for ZAR fails with a 400.

Sells

A sell order takes the same fields as an NGN sell order, with these differences:
string
required
The bank or mobile money code from the bank list for this currency.
string
required
The bank account number, or the wallet’s mobile number for mobile money. A mobile number can be national (0712345678) or international (+254712345678). It must belong to the network in bankCode.
string
The recipient’s full mobile number, with its country code. Required for a ZAR bank payout, ignored for everything else.
Before the order, you can check the account and get its holder’s name with bank resolution, sending currency. Only providers whose list carries your bankCode are considered, so the order always goes to a provider that can pay that account. The order response has the same shape as an NGN sell: send the crypto to ourCryptoAddress.

Buys

An African buy is paid by mobile money only. RampHub asks the provider to send a payment prompt to the customer’s phone; the customer approves it, and the crypto is sent to walletAddress. There is no bank account to pay into. A buy order takes the same fields as an NGN buy order, plus:
string
required
The mobile money network that pays, from buy.networks in Payment methods, or from GET /api/developer/provider-bank-list/UseBread?currency=KES&type=mobile_money.
string
required
The mobile number that pays, national or international. The payment prompt goes to this number, so it must be the customer’s own and on the network in bankCode.
  • Quotes need neither field. Only the order does.
  • Ask your customer to keep their phone nearby, and tell them a payment prompt is coming.
  • A bank code instead of a network fails with a 400: "KES buys are paid by mobile money, not by bank: bankCode must be a network from GET /provider-bank-list/UseBread?currency=KES&type=mobile_money."
  • Buys are not available in MWK, ZAR or XAF, or in XOF from Togo. A buy quote there fails with a 400 that says where buys can be paid from, for example "Buys in XOF are not available in TG. They can be paid from: CI, SN, ML, BJ."

Minimums

The usual $1 minimum applies. UseBread also has its own minimum per country. It applies to buys, measured by the crypto bought, and to sells, measured by what is paid out after fees: Paycrest has no minimum of its own. When no provider can take a trade, the quote fails with a 400 that names each provider’s reason, for example:

Test keys

With a rh_test_ key, every currency on this page works whether or not it has been switched on for you. The request rules are the live ones: country for XOF, buys only where they are available, and on a buy order, bankCode and accountNumber.
  • Quotes return sample prices.
  • An African buy order returns providerDetails.mobileMoney (the network and number you sent) and amountToPay, instead of a bank account. No prompt is sent.
  • Bank resolution returns a sample name.
  • Payment methods shows only currencies RampHub has opened, with any key. For any other currency, use the provider bank list to see the banks and networks.