2026-05-18. See API versioning.
payoutAmounton withdrawals. A withdrawal now carriespayoutAmount: what Afriex sends for the payout, indestinationCurrency, after any fee taken from it. It is on create, get and list responses, in webhook payloads, and on quotes.destinationAmountis unchanged. It is the amount to pay out before that fee, sopayoutAmountis lower when a fee comes off the payout. ReadpayoutAmountto match what the recipient was sent.
- Top up a stablecoin balance in sandbox. Top up sandbox balance accepts
USDCandUSDTascurrency. Before, it refused them withVALIDATION_ERROR.
- Name lookup answers 503 when its provider fails. Resolve payment method returns
503, not500, when the provider that looks up the name fails or times out. Retry it as you would any503. See Errors.
- Pay out from a USDT or USDC wallet. Set
sourceCurrencytoUSDTorUSDCon aWITHDRAWthrough Create transaction, or on Quote a withdrawal, and the payout is debited from that wallet. The destination currency stays a fiat currency. Deposits and swaps still take fiat on both sides. - Fund a payment batch from a stablecoin wallet.
sourcePaymentMethod.currencyCodeon Create payment batch can beUSDTorUSDC. Every payout in the batch is converted from that wallet. - Balance and rates include stablecoins by default. Get balance without
currenciesnow also returnsUSDTandUSDC, with zero for an empty wallet. Get exchange rates withouttoSymbolscan now include stablecoin rates. Calls that name their currencies are unchanged.
- Price offers in a local currency. Create marketplace order refuses an offer priced in
USDwith422andVALIDATION_ERROR. Before, it accepted one.
- Crypto deposits credit the token. A deposit into a crypto wallet is credited to your USDT or USDC wallet. Before, it was credited to your USD wallet. On the deposit,
sourceCurrencyanddestinationCurrencyare the token. - Read the stablecoin balance. Pass
currencies=USDT,USDCto Get balance to read the stablecoin wallets. - Filter by stablecoin. The
currencyfilter on List transactions acceptsUSDTandUSDC.
- INR bank accounts need the branch IFSC. When you create a payment method for an INR bank account, send the IFSC, such as
HDFC0001234, asinstitution.institutionBranch. India bank payouts need it. The API still accepts a payment method without it. - CNY bank accounts need the recipient’s name and address in Chinese characters. Send them as
recipient.recipientNativeNameandrecipient.recipientNativeAddress, next to the ID fields you already send. - Recipient ID on SWIFT.
recipient.recipientIdTypeandrecipient.recipientIdNumberare optional on SWIFT payment methods. When you send them, they are used as the beneficiary’s document. - Create INR and CNY payment methods again. Ones you created before this date don’t carry these details. Create them again before you send to them.
- Marketplace offers open immediately. An offer you create through Create marketplace order has the status
OPENas soon as it is created. Before, it wasPENDING_APPROVALuntil Afriex approved it. Offers created earlier that are still pending are approved as before. See Order statuses. - SDK.
@afriex/sdk6.5.0 adds the new fields to its types.
- Swaps can be enabled for your business in production. A
SWAPthrough Create transaction is refused with400andTRANSACTION_REQUEST_TYPE_INVALIDuntil swaps are enabled for your business. Before, it was refused for every business with API access. Contact support to have swaps enabled. Sandbox is unchanged.
- Marketplace orders. New marketplace endpoints create, list, get, and withdraw buy orders, and answer offers with counter-offers. They are available to businesses approved for the marketplace. Any other business gets
403withFEATURE_NOT_AVAILABLE_FOR_BUSINESS. Creating orders and counter-offers is limited to 60 requests per 60 seconds, and API keys need theMARKET_PLACE.READorMARKET_PLACE.MANAGEpermission. See Rate limits and Permissions. - SDK.
@afriex/sdk6.4.0 adds amarketplaceresource with a method for each endpoint.
- Minimum checkout amount. Create checkout session returns
400withTRANSACTION_AMOUNT_TOO_SMALLwhen the amount is worth less than 1 USD at the current rate. Before, the session was created and every payer was refused. - Exchange rates for every pair. Get exchange rates returns a rate for every pair you ask for. Before, some pairs could be missing from the response when you asked for several.
- Refused mobile money deposits. When a payment partner refuses a mobile money deposit request, the API returns
503, not500. Retry it as you would any503. See Errors.
- Source and destination of a virtual account deposit. On a deposit into a virtual account you created,
destinationIdis that virtual account, andsourceIdis empty, because the sender isn’t a payment method on Afriex. The source no longer repeats your own account. This applies to the transaction in webhooks and in List transactions.
- Cards always use 3D Secure. A card payment through checkout goes through the card’s 3D Secure check. While the payer completes it, the deposit has the status
CUSTOMER_ACTION_REQUIREDand carriesmeta.threeDsRedirectUrl. The hosted checkout sends the payer there, so you don’t need to. HandleCUSTOMER_ACTION_REQUIREDas a status that can come beforeSUCCESSorFAILED.
@afriex/sdk6.0.0. The SDK is now generated from the API reference, so it has a method for every endpoint, including Quote a withdrawal, and is released when the API changes. It is a single package with no runtime dependencies, and needs Node.js 20 or later.- Breaking changes. The per-resource packages, such as
@afriex/customers, are replaced by@afriex/sdkalone. Retries are on by default where they are safe, andretryConfigis replaced bymaxRetries. Errors have a class per status. Some names and return values changed. See Upgrading from 5.x.
- No name lookup in a country. Resolve payment method returns
400with a message saying account name lookup is not available, when the country has none. Ask your customer for the recipient’s name instead. For mobile money it used to return500. For bank accounts the status is the same and the message is clearer. - Sandbox bank names. In sandbox, Resolve payment method returns the bank’s name for any institution code that List Institutions returns. It used to fail with
500for some codes, such asABS,GTB, andACCCGHAC.
- KYC not completed. Create virtual account returns
403withUSER_NOT_VERIFIEDwhen the account holder hasn’t completed KYC, anddetails.friendlyMessageasks them to complete it. It used to return503withFAILED_TO_CREATE_VIRTUAL_ACCOUNT.
- Swaps in production. In production, a
SWAPthrough Create transaction is refused for a business with API access. It returns400withTRANSACTION_REQUEST_TYPE_INVALID. Contact support to arrange a swap. Sandbox is unchanged.
- Pool accounts where virtual accounts exist. Get pool account returns
400withINVALID_BUSINESS_POOL_ACCOUNT_REQUESTfor a country whose currency offers virtual accounts, and tells you to create a virtual account instead.
- No webhook when you create a checkout.
CHECKOUT_SESSION.CREATEDis no longer sent, and Trigger webhook no longer accepts it. The create response already carries thecheckoutIdandcheckoutUrl. Track the payment withTRANSACTION.UPDATED. - Your reference and metadata on the payment’s transactions. Every transaction a checkout payment creates carries your
merchantReference, and yourmetadataasmeta, in transaction webhooks and responses. To find a session’s transactions, call List transactions withreferenceset to thecheckoutId. - References don’t need to be unique. Create checkout session no longer returns
409for amerchantReferencethat is already in use. - No query parameters on the redirect. The customer is sent to your
redirectUrlwhen they leave the success screen after paying. Afriex no longer addsstatus,session_id, ormerchant_reference. - Name and description. Create checkout session accepts an optional
name, up to 100 characters, anddescription, up to 500.
- No institution for WeChat and Alipay. Create payment method no longer needs an
institutionforWE_CHATorALIPAY, and ignores one if you send it. The channel decides the wallet.WE_CHATwith the institution set toALIPAY, the form used for Alipay before theALIPAYchannel, now creates a WeChat payment method. Usechannel=ALIPAYfor Alipay.
- Alipay channel. Create payment method accepts
channel=ALIPAYfor Alipay accounts in China. The older form,WE_CHATwith the institution set toALIPAY, still works. ForALIPAY, and forWE_CHATpayouts inCNY, the beneficiary name must have a first and last name separated by a space. - BVN for permanent NGN accounts. Create virtual account returns
400withVIRTUAL_ACCOUNT_BVN_REQUIREDfor a permanentNGNaccount when the holder has no BVN, whichever provider opens the account. A few accounts used to be opened without one.
- Any country code. Resolve payment method accepts any ISO country code for
countryCode. Before, bank accounts accepted onlyNGandGH, mobile money accepted a fixed list of countries, and any other country failed validation. A country with no account name lookup now returns the400from October 20.
- A failed checkout releases its reference. If create checkout session fails, for example because the customer’s phone doesn’t match its country, the
merchantReferenceis released. You can send the corrected request with the same reference. Before, that retry returned409for a while.
- Limit errors. A transaction that would take your business over one of its limits returns
403withBUSINESS_LIMIT_EXCEEDED, anddetails.friendlyMessagenames the limit and the period.BUSINESS_TRANSACTION_DAILY_LIMIT_EXCEEDEDis no longer returned. A transaction below the smallest amount a limit allows returns400withBUSINESS_TRANSACTION_MIN_AMOUNT_NOT_MET. - Reset times. Usage for daily, weekly, and monthly limits resets at 00:00 UTC: every day, every Monday, and on the 1st of each month. See Business limits.
- Trigger the checkout webhook with the
checkoutId. Trigger webhook accepts thecheckoutIdthat create checkout session returns as theentityIdforCHECKOUT_SESSION.CREATED. The checkout must belong to your business, and the webhook is sent with thecheckoutIdas itssessionId, like the real one. Before, the trigger needed a UUID that only exists once a customer opens the checkout.
- Error statuses that fit the error. Several errors came back as
503, so a client that retries503kept retrying a request that could not succeed. They now return the status that fits. A wallet balance that is too low returns402withBALANCE_INSUFFICIENT. An unsupported country, currency, channel, or virtual account type, a payment method with no route, and a payment method whose currency does not match return422. A swap your business has not enabled returns403. The codes and bodies are unchanged. See Errors. - Malformed IDs. A malformed
customerIdon create payment method, or a malformedbatchIdon the payment batch endpoints, returns400. It used to return500. - Payment method for the business owner. Create payment method without a
customerIdattaches the payment method to the business owner, as documented. It used to return404withBUSINESS_CUSTOMER_NOT_FOUND. - Status filter.
?status=IN_REVIEWon list transactions now matches the transactions the API reports asIN_REVIEW. Values the API never returns are no longer accepted as status filters. - Checkout metadata is kept. The
metadatayou send when you create a checkout is stored and returned in theCHECKOUT_SESSION.CREATEDwebhook. It used to be dropped. - Rejected up front. These now return a clear client error instead of failing later or returning
500: a payment batch recipient with no amount, a media uploadfileNamethat is empty once cleaned, a date of birth with a month that does not exist, and an SME registration step with nodata.
- Checkout ID. Create checkout session returns a
checkoutId. It is thesessionIdin theCHECKOUT_SESSION.CREATEDwebhook, so you can match the webhook to the checkout you created. - References stay held while a checkout is open. You can’t create another checkout with the same
merchantReferencewhile an earlier one is still open. It returns409. - A paid checkout closes. Once a checkout’s payment is credited, it can’t be opened again.
- A wrong document value is rejected. Verify customer returns
400withINVALID_KYC_DOCUMENT_TYPEwhen the customer already has that document type on file and yourdocValuediffers. It used to return200as if the value had been verified, without comparing it. - Malformed transaction IDs.
GET /transaction/{transactionId}/advicereturns400for a malformed ID, likeGET /transaction/{transactionId}. It used to return500. toDateon its own. List transactions acceptstoDatewithoutfromDate. It is compared withfromDateonly when you send both. It used to be rejected.- Stricter limits that were already documented. Create virtual account caps a one-time
amountat 5,000,000, and the webhook trigger needs a 24-character hexadecimalentityId(forCHECKOUT_SESSION.CREATED, see October 17). Requests outside those limits are rejected.
- Checkout channels are decided when the customer opens the page. Create checkout session no longer narrows
channelsto what the currency supports, so it no longer returns422when none of them suit the currency. The responsechannelsis the list you sent, or every channel when you sent none. - New failure reason.
meta.failureReason.codecan now beAFX_RECIPIENT_WALLET_LIMIT_REACHED, when the recipient’s wallet has reached a limit at the destination. See Failure reasons.
- Pool account. Get pool account returns
404withBUSINESS_PAYMENT_METHOD_NOT_FOUNDwhen your business has no pool account in the country you ask for. It used to return503, so a client that retried503kept retrying an answer that never changes.
- Virtual account errors. Create virtual account returns
400withVIRTUAL_ACCOUNT_BVN_REQUIREDwhen a permanentNGNaccount needs a BVN and the holder has none.UNSUPPORTED_VIRTUAL_ACCOUNT_CURRENCYandUNSUPPORTED_VIRTUAL_ACCOUNT_TYPEnow come back as their own errors instead of503, and as422since October 16.
- Webhook event IDs. Every webhook body now carries
id, unique to the event, andcreatedAt, when the event was created, alongsideeventanddata. Retries keep both values, and the signature covers them. Useidto skip duplicate and replayed deliveries. If your handler rejects unknown fields in the body, allow these two. See Duplicates, ordering, and replays. - Request IDs. Every API response now carries an
x-request-idheader. Quote it when you contact support. See Request IDs. - Transaction types.
POST /transactionaccepts onlyDEPOSIT,WITHDRAW, andSWAP. It rejects any othertype.
- Rate limits.
POST /transactionis limited to 60 requests per 60 seconds for each business, and customer verification to 100 per 24 hours. Both limits apply in production and in sandbox. Responses from these endpoints carryX-RateLimit-Limit,X-RateLimit-Remaining, andX-RateLimit-Reset, and a429also carriesRetry-After. See Rate limits. - Webhook response time. Each webhook delivery attempt now waits up to 15 seconds for your response, down from 30. Return a
2xxquickly and do slow work afterwards. See Webhooks.
- API key permissions. Every endpoint now checks for a permission on the API key, and
POST /transactionchecks the permission for the transactiontype. Keys created before permissions existed keep access to every endpoint. See Permissions.
- Fee wallet. The balance and sandbox top-up endpoints accept
walletType=FEE. - Nigerian mobile money. Resolve payment method accepts
channel=MOBILE_MONEYwithcountryCode=NG.
- Cards. The API no longer accepts card payment methods or card deposits. Cards are available only in the hosted checkout.
- Quote a withdrawal. New endpoint:
GET /transaction/quoteprices a withdrawal with the same calculation that charges it, so you can show the amounts before you create the transaction.
- Mobile money and virtual accounts. The sandbox emulator now handles mobile money deposits and virtual accounts. Choose a transaction’s outcome with
/simulate, and send an incoming transfer to a virtual account with simulate transfer. See Testing in sandbox.
- Checkout sessions. Checkout sessions are available in production. Create a session with a production key to take real payments, and with a sandbox key to try the flow in test mode. They were sandbox only before.
