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.
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.