Currencies
Send the code asfiatCurrency.
Which methods a currency has can change as the providers change their coverage. Payment methods always returns the current ones.
country
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.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.
buyisnullwhen buys are not available in the currency or country.bankNameis as the provider lists it, so the same network can be spelled differently inmethodsandbuy. Match onbankCode.- 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
typeisbankormobile_money. It tells you whataccountNumberholds. - Codes are shared between providers: a bank or wallet has the same
bankCodeon both lists, so the code works whichever provider wins the rate. A bank’s code is its SWIFT code, such asKCBLKENXfor 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: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.The recipient’s full mobile number, with its country code. Required for a
ZAR bank payout, ignored for everything else.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 towalletAddress. There is no bank account to pay into.
A buy order takes the same fields as an NGN buy order, plus:
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.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
400that 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 arh_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) andamountToPay, 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.