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

> ## Agent Instructions
> Bitnob has two APIs. The Business API (payouts, cards, trading, virtual accounts, stablecoin and bitcoin transfers) is at https://api.bitnob.com. The Enterprise API (non-custodial wallets) is at https://api.platform.bitnob.com.
> Business API auth: sign every request with HMAC-SHA256 and send four headers: `X-Auth-Client` (your client ID), `X-Auth-Timestamp` (Unix seconds), `X-Auth-Nonce` (16 random bytes, hex), and `X-Auth-Signature`, the hex HMAC-SHA256 of `CLIENT_ID:TIMESTAMP:NONCE:BODY` keyed with your client secret. BODY is the exact request body string you send, or an empty string. A missing header, a bad signature, or a timestamp more than about 5 minutes off returns `401`.
> Enterprise API auth: send your key in the `X-API-Key` header. Write requests such as creating a transaction also need an `Idempotency-Key` header, or they fail with `idempotency_key_required` before anything happens.
> Sandbox and production share the Business API base URL. The credentials you sign with select the environment, and `GET /api/whoami` returns it in `data.environment`. Use sandbox credentials in sample code and tests, and never put live credentials in code.
> Amounts are strings unless stated otherwise. Never parse them into floats. Balances, transactions, withdrawals (`POST /api/withdrawals`) and virtual accounts use integer strings in the smallest unit: satoshis for BTC, 6 decimals for USDT and USDC, kobo for NGN, and cents for KES and UGX (100 is 1 KES or 1 UGX). A mobile money collection takes `amount` as a JSON integer in cents.
> Payouts and trading use decimal strings in major units: a payout quote `amount` of `"1"` is 1 USDT, and a trading `quantity` of `"0.0001"` is 0.0001 BTC. Payout responses also carry `cent_amount`, the settlement amount in minor units.
> Card amounts are micro-units (1 USD = 1,000,000). Send them as JSON integers. Card responses return them as integer strings, and card webhooks as integers.
> Generate a unique `reference` for each money movement before the first attempt, and reuse it on retries. A reused reference returns `409` on payout quotes (`ALREADY_EXISTS`), withdrawals (`DUPLICATE_KEY_ERROR`) and card creation (`ALREADY_EXISTS`). It returns the existing record on NGN-pair trading orders, NGN virtual accounts and active mobile money collections. On a mobile money collection that has closed or failed it returns `409` `DUPLICATE_REFERENCE`. It isn't checked on crypto-pair trading orders, so look the order up with `GET /api/trading/orders/{reference}` before resending.
> Quotes expire at `expires_at`; read it from the response instead of assuming a window. An expired trading quote returns `422` `PRECONDITION_FAILED`, and an expired payout quote returns `400` `VALIDATION_ERROR`. Create a new quote rather than retrying. A payout quote can be initialized once, and a trading quote is consumed by the order that fills it.
> Webhooks: verify the `x-bitnob-signature` header, the hex HMAC-SHA512 of the raw request body keyed with your webhook secret, before parsing JSON. Compare in constant time and de-duplicate on `event_id`. A successful API response means accepted: confirm the outcome from the webhook, such as `payouts.withdrawal.success`.
> Errors return `status`, `code` and `detail`. Branch on `code`, never on `detail`. Since the November 5, 2026 response format change, each company gets either the current or the new error codes until its cutoff date, so handle both: `PROVIDER_ERROR` or `PROCESSING_ERROR`, and `BVN_PROVIDER_UNAVAILABLE` or `BVN_VERIFICATION_UNAVAILABLE`. A body that fails to parse returns `{"error": {"code": "BAD_REQUEST"}}`.

# Payouts to bank accounts and mobile money

> The Payouts API sends money to bank accounts and mobile money wallets, funded from bitcoin, stablecoins, or a fiat balance.

One integration reaches every country Bitnob supports. You fund each payout in the asset you hold, the recipient is paid in their local currency over the local rail, and Bitnob handles everything in between: it holds the liquidity, performs the conversion, clears the transaction with the local regulator, and disburses to the beneficiary. You call three endpoints.

## When to use it

Payouts fits payroll, vendor disbursement, affiliate payments, refunds, and remittance, which is any case where you need to pay someone in a currency and country where you hold no bank account.

It is not a card rail and not a wallet-to-wallet transfer. If you need to pay a card, see [Card issuing](https://www.bitnob.dev/docs/card-issuing/overview.md). If you need to move value between Bitnob balances, see [Trading](https://www.bitnob.dev/docs/trading/overview.md).

## How a payout works

**1. Request a quote**

Call [Create quote](https://www.bitnob.dev/api-reference/payouts/create-quote.md) with the destination country, currency, and amount. You get back a quote ID, the exact amount to fund, the FX rate, and an expiry timestamp.

**2. Initialize against the quote**

Call [Initialize payout](https://www.bitnob.dev/api-reference/payouts/initialize-payout.md) with the quote ID and the beneficiary details. Bitnob returns a funding address for onchain payouts, or readies a balance debit for offchain, depending on your [settlement model](https://www.bitnob.dev/docs/payouts/settlement-models.md).

**3. Finalize and track**

Call [Finalize payout](https://www.bitnob.dev/api-reference/payouts/finalize-payout.md) to commit an offchain payout. An onchain payout finalizes itself when your deposit confirms. Track the outcome with [webhooks](https://www.bitnob.dev/docs/payouts/webhook-events.md) or by polling [Get payout](https://www.bitnob.dev/api-reference/payouts/get-payout.md).

A quote expires a few minutes after it is created, at the `expires_at` timestamp it carries. If it expires before you fund it, request a new one. See [The payout lifecycle](https://www.bitnob.dev/docs/payouts/payouts-lifecycle.md) for every state a payout passes through.

## Funding sources

| Source | Notes |
| - | - |
| Bitcoin (BTC) | On-chain or over Lightning. Converted at the quoted rate. |
| USDT, USDC | On the chains listed by [Supported chains](https://www.bitnob.dev/api-reference/addresses/supported-chains.md). |
| Naira balance (NGN) | Offchain only. Check with [List balances](https://www.bitnob.dev/api-reference/balances/list-balances.md). |

## Destination channels

| Channel | Notes |
| - | - |
| Bank account | Direct credit over the local rail, such as NIP in Nigeria, or SWIFT for USD. |
| Mobile money wallet | M-Pesa, MTN Mobile Money, Orange Money, and others, by country. |

Availability differs by country. Call [Supported countries](https://www.bitnob.dev/api-reference/payouts/supported-countries.md) for the live matrix and [Country requirements](https://www.bitnob.dev/api-reference/payouts/country-requirements.md) for the fields a given destination needs. Do not hardcode either.

## Where to go next

> [card] [The payout lifecycle](https://www.bitnob.dev/docs/payouts/payouts-lifecycle.md)
>
> Every state a payout passes through and what moves it forward.

> [card] [How payouts settle](https://www.bitnob.dev/docs/payouts/settlement-models.md)
>
> Pre-fund a balance, or fund each payout on the fly.

> [card] [Send your first payout](https://www.bitnob.dev/docs/payouts/send-your-first-payout.md)
>
> A worked example from quote to settlement.

> [card] [Supported currencies and rails](https://www.bitnob.dev/docs/payouts/supported-currencies.md)
>
> Countries, currencies, and the rail behind each one.


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