> ## Documentation Index
> Fetch the complete documentation index at: https://docs.afriex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Changelog

> Changes to how the Afriex Business API behaves, newest first.

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](https://docs.afriex.com/api-reference/introduction.md#api-versioning).

**November 9, 2026**

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](https://docs.afriex.com/api-reference/endpoint/transactions/quote.md), 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](https://docs.afriex.com/sdk/introduction.md#upgrading-from-version-5).

**October 20, 2026**

Account name lookup

* **No name lookup in a country.** [Resolve payment method](https://docs.afriex.com/api-reference/endpoint/payment-methods/resolve.md) 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](https://docs.afriex.com/api-reference/endpoint/payment-methods/resolve.md) returns the bank's name for any institution code that [List Institutions](https://docs.afriex.com/api-reference/endpoint/payment-methods/institution.md) returns. It used to fail with `500` for some codes, such as `ABS`, `GTB`, and `ACCCGHAC`.

**November 8, 2026**

Virtual account KYC

* **KYC not completed.** [Create virtual account](https://docs.afriex.com/api-reference/endpoint/payment-methods/virtual-account-create.md) 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`.

**November 6, 2026**

Swaps in production

* **Swaps in production.** In production, a `SWAP` through [Create transaction](https://docs.afriex.com/api-reference/endpoint/transactions/create.md) 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.

**November 5, 2026**

Pool accounts

* **Pool accounts where virtual accounts exist.** [Get pool account](https://docs.afriex.com/api-reference/endpoint/payment-methods/pool-account.md) 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.

**November 4, 2026**

Checkout sessions

* **No webhook when you create a checkout.** `CHECKOUT_SESSION.CREATED` is no longer sent, and [Trigger webhook](https://docs.afriex.com/api-reference/endpoint/webhooks/trigger.md) no longer accepts it. The [create response](https://docs.afriex.com/api-reference/endpoint/checkout-sessions/create.md) 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](https://docs.afriex.com/api-reference/endpoint/transactions/list.md) 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.

**October 31, 2026**

WeChat and Alipay institutions

* **No institution for WeChat and Alipay.** [Create payment method](https://docs.afriex.com/api-reference/endpoint/payment-methods/create.md) 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.

**October 29, 2026**

Alipay channel and NGN virtual accounts

* **Alipay channel.** [Create payment method](https://docs.afriex.com/api-reference/endpoint/payment-methods/create.md) 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](https://docs.afriex.com/api-reference/endpoint/payment-methods/virtual-account-create.md) 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.

**October 27, 2026**

Resolve country codes

* **Any country code.** [Resolve payment method](https://docs.afriex.com/api-reference/endpoint/payment-methods/resolve.md) 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.

**October 23, 2026**

Checkout references

* **A failed checkout releases its reference.** If [create checkout session](https://docs.afriex.com/api-reference/endpoint/checkout-sessions/create.md) 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.

**October 17, 2026**

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](https://docs.afriex.com/api-reference/errors.md#business-limits).

**October 17, 2026**

Webhook trigger for checkouts

* **Trigger the checkout webhook with the `checkoutId`.** [Trigger webhook](https://docs.afriex.com/api-reference/endpoint/webhooks/trigger.md) 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.

**October 16, 2026**

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](https://docs.afriex.com/api-reference/errors.md).
* **Malformed IDs.** A malformed `customerId` on [create payment method](https://docs.afriex.com/api-reference/endpoint/payment-methods/create.md), 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](https://docs.afriex.com/api-reference/endpoint/transactions/list.md) 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`.

**October 16, 2026**

Checkout, and requests that were not validated

* **Checkout ID.** [Create checkout session](https://docs.afriex.com/api-reference/endpoint/checkout-sessions/create.md) 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](https://docs.afriex.com/api-reference/endpoint/customers/verify.md) 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](https://docs.afriex.com/api-reference/endpoint/transactions/list.md) 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](https://docs.afriex.com/api-reference/endpoint/payment-methods/virtual-account-create.md) caps a one-time `amount` at 5,000,000, and the [webhook trigger](https://docs.afriex.com/api-reference/endpoint/webhooks/trigger.md) needs a 24-character hexadecimal `entityId` (for `CHECKOUT_SESSION.CREATED`, see October 17). Requests outside those limits are rejected.

**October 15, 2026**

Checkout channels and failure reasons

* **Checkout channels are decided when the customer opens the page.** [Create checkout session](https://docs.afriex.com/api-reference/endpoint/checkout-sessions/create.md) 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](https://docs.afriex.com/api-reference/models.md#failure-reasons).

**October 14, 2026**

Pool account

* **Pool account.** [Get pool account](https://docs.afriex.com/api-reference/endpoint/payment-methods/pool-account.md) 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.

**October 13, 2026**

Virtual account errors

* **Virtual account errors.** [Create virtual account](https://docs.afriex.com/api-reference/endpoint/payment-methods/virtual-account-create.md) 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.

**October 12, 2026**

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](https://docs.afriex.com/api-reference/endpoint/webhooks/introduction.md#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](https://docs.afriex.com/api-reference/errors.md#request-ids).
* **Transaction types.** `POST /transaction` accepts only `DEPOSIT`, `WITHDRAW`, and `SWAP`. It rejects any other `type`.

**October 11, 2026**

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](https://docs.afriex.com/api-reference/rate-limits.md).
* **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](https://docs.afriex.com/api-reference/endpoint/webhooks/introduction.md).

**October 8, 2026**

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](https://docs.afriex.com/api-reference/permissions.md).

**October 7, 2026**

Fee wallet and Nigerian mobile money

* **Fee wallet.** The [balance](https://docs.afriex.com/api-reference/endpoint/balance/get.md) and [sandbox top-up](https://docs.afriex.com/api-reference/endpoint/balance/topup.md) endpoints accept `walletType=FEE`.
* **Nigerian mobile money.** [Resolve payment method](https://docs.afriex.com/api-reference/endpoint/payment-methods/resolve.md) accepts `channel=MOBILE_MONEY` with `countryCode=NG`.

**October 6, 2026**

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.

**October 2, 2026**

Withdrawal quotes

* **Quote a withdrawal.** New endpoint: [`GET /transaction/quote`](https://docs.afriex.com/api-reference/endpoint/transactions/quote) prices a withdrawal with the same calculation that charges it, so you can show the amounts before you create the transaction.

**September 28, 2026**

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`](https://docs.afriex.com/api-reference/endpoint/transactions/simulate), and send an incoming transfer to a virtual account with [simulate transfer](https://docs.afriex.com/api-reference/endpoint/payment-methods/virtual-account-simulate-transfer.md). See [Testing in sandbox](https://docs.afriex.com/guides/testing-in-sandbox.md).

**September 25, 2026**

Checkout sessions in production

* **Checkout sessions.** [Checkout sessions](https://docs.afriex.com/api-reference/endpoint/checkout-sessions/create.md) 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.