Skip to main content
This page lists changes that affect how you integrate. New pages and wording fixes in the documentation are not listed. The current API version is 2026-05-18. See API versioning.
API
Payout amount on withdrawals
  • payoutAmount on withdrawals. A withdrawal now carries payoutAmount: what Afriex sends for the payout, in destinationCurrency, after any fee taken from it. It is on create, get and list responses, in webhook payloads, and on quotes. destinationAmount is unchanged. It is the amount to pay out before that fee, so payoutAmount is lower when a fee comes off the payout. Read payoutAmount to match what the recipient was sent.
API
Sandbox top-up in USDC and USDT
  • Top up a stablecoin balance in sandbox. Top up sandbox balance accepts USDC and USDT as currency. Before, it refused them with VALIDATION_ERROR.
API
Name lookup errors
  • Name lookup answers 503 when its provider fails. Resolve payment method returns 503, not 500, when the provider that looks up the name fails or times out. Retry it as you would any 503. See Errors.
API
Stablecoin wallets in payouts, batches, and defaults
  • Pay out from a USDT or USDC wallet. Set sourceCurrency to USDT or USDC on a WITHDRAW through 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.currencyCode on Create payment batch can be USDT or USDC. Every payout in the batch is converted from that wallet.
  • Balance and rates include stablecoins by default. Get balance without currencies now also returns USDT and USDC, with zero for an empty wallet. Get exchange rates without toSymbols can now include stablecoin rates. Calls that name their currencies are unchanged.
API
Marketplace offer pricing
  • Price offers in a local currency. Create marketplace order refuses an offer priced in USD with 422 and VALIDATION_ERROR. Before, it accepted one.
API
USDT and USDC wallets
  • 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, sourceCurrency and destinationCurrency are the token.
  • Read the stablecoin balance. Pass currencies=USDT,USDC to Get balance to read the stablecoin wallets.
  • Filter by stablecoin. The currency filter on List transactions accepts USDT and USDC.
APISDK
Recipient details and marketplace offers
  • INR bank accounts need the branch IFSC. When you create a payment method for an INR bank account, send the IFSC, such as HDFC0001234, as institution.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.recipientNativeName and recipient.recipientNativeAddress, next to the ID fields you already send.
  • Recipient ID on SWIFT. recipient.recipientIdType and recipient.recipientIdNumber are 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 OPEN as soon as it is created. Before, it was PENDING_APPROVAL until Afriex approved it. Offers created earlier that are still pending are approved as before. See Order statuses.
  • SDK. @afriex/sdk 6.5.0 adds the new fields to its types.
API
Swaps enabled per business
  • Swaps can be enabled for your business in production. A SWAP through Create transaction is refused with 400 and TRANSACTION_REQUEST_TYPE_INVALID until 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.
APISDK
Marketplace orders
  • 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 403 with FEATURE_NOT_AVAILABLE_FOR_BUSINESS. Creating orders and counter-offers is limited to 60 requests per 60 seconds, and API keys need the MARKET_PLACE.READ or MARKET_PLACE.MANAGE permission. See Rate limits and Permissions.
  • SDK. @afriex/sdk 6.4.0 adds a marketplace resource with a method for each endpoint.
API
Checkout minimum, exchange rates, and deposit errors
  • Minimum checkout amount. Create checkout session returns 400 with TRANSACTION_AMOUNT_TOO_SMALL when 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, not 500. Retry it as you would any 503. See Errors.
APIWebhooks
Deposits into virtual accounts
  • Source and destination of a virtual account deposit. On a deposit into a virtual account you created, destinationId is that virtual account, and sourceId is 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.
APIWebhooks
3D Secure on card payments
  • 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_REQUIRED and carries meta.threeDsRedirectUrl. The hosted checkout sends the payer there, so you don’t need to. Handle CUSTOMER_ACTION_REQUIRED as a status that can come before SUCCESS or FAILED.
SDK
TypeScript SDK 6.0
  • @afriex/sdk 6.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/sdk alone. Retries are on by default where they are safe, and retryConfig is replaced by maxRetries. Errors have a class per status. Some names and return values changed. See Upgrading from 5.x.
APISandbox
Account name lookup
  • No name lookup in a country. Resolve payment method returns 400 with 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 return 500. 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 500 for some codes, such as ABS, GTB, and ACCCGHAC.
API
Virtual account KYC
  • KYC not completed. Create virtual account returns 403 with USER_NOT_VERIFIED when the account holder hasn’t completed KYC, and details.friendlyMessage asks them to complete it. It used to return 503 with FAILED_TO_CREATE_VIRTUAL_ACCOUNT.
API
Swaps in production
  • Swaps in production. In production, a SWAP through Create transaction is refused for a business with API access. It returns 400 with TRANSACTION_REQUEST_TYPE_INVALID. Contact support to arrange a swap. Sandbox is unchanged.
API
Pool accounts
  • Pool accounts where virtual accounts exist. Get pool account returns 400 with INVALID_BUSINESS_POOL_ACCOUNT_REQUEST for a country whose currency offers virtual accounts, and tells you to create a virtual account instead.
APIWebhooks
Checkout sessions
  • No webhook when you create a checkout. CHECKOUT_SESSION.CREATED is no longer sent, and Trigger webhook no longer accepts it. The create response already carries the checkoutId and checkoutUrl. Track the payment with TRANSACTION.UPDATED.
  • Your reference and metadata on the payment’s transactions. Every transaction a checkout payment creates carries your merchantReference, and your metadata as meta, in transaction webhooks and responses. To find a session’s transactions, call List transactions with reference set to the checkoutId.
  • References don’t need to be unique. Create checkout session no longer returns 409 for a merchantReference that is already in use.
  • No query parameters on the redirect. The customer is sent to your redirectUrl when they leave the success screen after paying. Afriex no longer adds status, session_id, or merchant_reference.
  • Name and description. Create checkout session accepts an optional name, up to 100 characters, and description, up to 500.
API
WeChat and Alipay institutions
  • No institution for WeChat and Alipay. Create payment method no longer needs an institution for WE_CHAT or ALIPAY, and ignores one if you send it. The channel decides the wallet. WE_CHAT with the institution set to ALIPAY, the form used for Alipay before the ALIPAY channel, now creates a WeChat payment method. Use channel=ALIPAY for Alipay.
API
Alipay channel and NGN virtual accounts
  • Alipay channel. Create payment method accepts channel=ALIPAY for Alipay accounts in China. The older form, WE_CHAT with the institution set to ALIPAY, still works. For ALIPAY, and for WE_CHAT payouts in CNY, the beneficiary name must have a first and last name separated by a space.
  • BVN for permanent NGN accounts. Create virtual account returns 400 with VIRTUAL_ACCOUNT_BVN_REQUIRED for a permanent NGN account when the holder has no BVN, whichever provider opens the account. A few accounts used to be opened without one.
API
Resolve country codes
  • Any country code. Resolve payment method accepts any ISO country code for countryCode. Before, bank accounts accepted only NG and GH, mobile money accepted a fixed list of countries, and any other country failed validation. A country with no account name lookup now returns the 400 from October 20.
API
Checkout references
  • A failed checkout releases its reference. If create checkout session fails, for example because the customer’s phone doesn’t match its country, the merchantReference is released. You can send the corrected request with the same reference. Before, that retry returned 409 for a while.
API
Business limits
  • Limit errors. A transaction that would take your business over one of its limits returns 403 with BUSINESS_LIMIT_EXCEEDED, and details.friendlyMessage names the limit and the period. BUSINESS_TRANSACTION_DAILY_LIMIT_EXCEEDED is no longer returned. A transaction below the smallest amount a limit allows returns 400 with BUSINESS_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.
APIWebhooks
Webhook trigger for checkouts
  • Trigger the checkout webhook with the checkoutId. Trigger webhook accepts the checkoutId that create checkout session returns as the entityId for CHECKOUT_SESSION.CREATED. The checkout must belong to your business, and the webhook is sent with the checkoutId as its sessionId, like the real one. Before, the trigger needed a UUID that only exists once a customer opens the checkout.
API
Error statuses and validation
  • Error statuses that fit the error. Several errors came back as 503, so a client that retries 503 kept retrying a request that could not succeed. They now return the status that fits. A wallet balance that is too low returns 402 with BALANCE_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 return 422. A swap your business has not enabled returns 403. The codes and bodies are unchanged. See Errors.
  • Malformed IDs. A malformed customerId on create payment method, or a malformed batchId on the payment batch endpoints, returns 400. It used to return 500.
  • Payment method for the business owner. Create payment method without a customerId attaches the payment method to the business owner, as documented. It used to return 404 with BUSINESS_CUSTOMER_NOT_FOUND.
  • Status filter. ?status=IN_REVIEW on list transactions now matches the transactions the API reports as IN_REVIEW. Values the API never returns are no longer accepted as status filters.
  • Checkout metadata is kept. The metadata you send when you create a checkout is stored and returned in the CHECKOUT_SESSION.CREATED webhook. 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 upload fileName that is empty once cleaned, a date of birth with a month that does not exist, and an SME registration step with no data.
API
Checkout, and requests that were not validated
  • Checkout ID. Create checkout session returns a checkoutId. It is the sessionId in the CHECKOUT_SESSION.CREATED webhook, 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 merchantReference while an earlier one is still open. It returns 409.
  • 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 400 with INVALID_KYC_DOCUMENT_TYPE when the customer already has that document type on file and your docValue differs. It used to return 200 as if the value had been verified, without comparing it.
  • Malformed transaction IDs. GET /transaction/{transactionId}/advice returns 400 for a malformed ID, like GET /transaction/{transactionId}. It used to return 500.
  • toDate on its own. List transactions accepts toDate without fromDate. It is compared with fromDate only when you send both. It used to be rejected.
  • Stricter limits that were already documented. Create virtual account caps a one-time amount at 5,000,000, and the webhook trigger needs a 24-character hexadecimal entityId (for CHECKOUT_SESSION.CREATED, see October 17). Requests outside those limits are rejected.
API
Checkout channels and failure reasons
  • Checkout channels are decided when the customer opens the page. Create checkout session no longer narrows channels to what the currency supports, so it no longer returns 422 when none of them suit the currency. The response channels is the list you sent, or every channel when you sent none.
  • New failure reason. meta.failureReason.code can now be AFX_RECIPIENT_WALLET_LIMIT_REACHED, when the recipient’s wallet has reached a limit at the destination. See Failure reasons.
API
Pool account
  • Pool account. Get pool account returns 404 with BUSINESS_PAYMENT_METHOD_NOT_FOUND when your business has no pool account in the country you ask for. It used to return 503, so a client that retried 503 kept retrying an answer that never changes.
API
Virtual account errors
  • Virtual account errors. Create virtual account returns 400 with VIRTUAL_ACCOUNT_BVN_REQUIRED when a permanent NGN account needs a BVN and the holder has none. UNSUPPORTED_VIRTUAL_ACCOUNT_CURRENCY and UNSUPPORTED_VIRTUAL_ACCOUNT_TYPE now come back as their own errors instead of 503, and as 422 since October 16.
APIWebhooks
Webhook event IDs, request IDs, and transaction types
  • Webhook event IDs. Every webhook body now carries id, unique to the event, and createdAt, when the event was created, alongside event and data. Retries keep both values, and the signature covers them. Use id to 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-id header. Quote it when you contact support. See Request IDs.
  • Transaction types. POST /transaction accepts only DEPOSIT, WITHDRAW, and SWAP. It rejects any other type.
APIWebhooks
Rate limits and webhook response time
  • Rate limits. POST /transaction is 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 carry X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset, and a 429 also carries Retry-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 2xx quickly and do slow work afterwards. See Webhooks.
API
Per-endpoint API key permissions
  • API key permissions. Every endpoint now checks for a permission on the API key, and POST /transaction checks the permission for the transaction type. Keys created before permissions existed keep access to every endpoint. See Permissions.
API
Fee wallet and Nigerian mobile money
API
Cards are hosted checkout only
  • Cards. The API no longer accepts card payment methods or card deposits. Cards are available only in the hosted checkout.
API
Withdrawal quotes
  • Quote a withdrawal. New endpoint: GET /transaction/quote prices a withdrawal with the same calculation that charges it, so you can show the amounts before you create the transaction.
Sandbox
Sandbox emulator
  • 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.
API
Checkout sessions in production
  • 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.