Skip to content
ChainPesaDocsTest mode
Dashboard

API reference · Payouts

Create a payout

Sends local currency to a bank or mobile-money account.

With funding: "float" it is paid from your USD balance. With funding: "connector" (Stable Connector) no balance is used: the response includes a funding_payment your customer pays, and the payout is released once it is covered.

Payouts of $1,000 or more wait for a second approver in the dashboard.

Payouts through our payment partners are confirmed by the provider: the payout can stay processing, with your money held, until it becomes completed or failed (and your money is returned). Some routes take whole amounts only, with no cents. transfer_fee is what the local network charges for the transfer, in the payout currency: the recipient still receives amount, and usd_debit includes the fee.

POST/api/v1/payouts

Requires the payouts:write scope. Returns 201 on success. Accepts an Idempotency-Key.

Body parameters

amountstringrequired
Amount in local currency, major units, for example "50000".
currencystringrequired
NGN, KES, GHS, UGX, TZS, XOF, XAF or CNY.
beneficiaryobjectrequired
Who is being paid.
beneficiary.namestringrequired
Account holder name, 2 to 100 characters.
beneficiary.account_numberstringrequired
Bank account or mobile-money number.
beneficiary.bank_idintegeroptional
The bank or network id from List banks. The most reliable way to name a destination.
beneficiary.bank_codestringoptional
Bank code, used when there is no bank_id.
beneficiary.bank_namestringoptional
Bank or network name, used when it matches exactly one option.
beneficiary.countrystringsometimes required
Required for XOF: CI, SN or BJ.
beneficiary.networkstringoptional
With Stable Connector, the chain your customer funds on: TRON (default), BSC or ETHEREUM.
fundingstringoptional
float (default) or connector.
referencestringoptional
Your own reference, up to 100 characters.

Common errors

StatusCodeWhen
400invalid_requestA field is missing or wrong; the message says which
401unauthorizedBad or revoked key, or a disallowed address
403forbiddenThe key lacks the scope
429rate_limitedSlow down; see Retry-After

All error codes

Request
curl -X POST https://dev.chainpesa.com/api/v1/payouts \
  -H "Authorization: Bearer $CHAINPESA_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "50000",
    "currency": "NGN",
    "beneficiary": {
      "name": "Ada Obi",
      "account_number": "0123456789",
      "bank_code": "058"
    },
    "funding": "float",
    "reference": "payout_77"
  }'
Response 201
{
  "id": "po_7Hc2kLm9PqRs",
  "object": "payout",
  "status": "completed",
  "mode": "test",
  "funding": "float",
  "route": "psp",
  "currency": "NGN",
  "amount": "50000.00",
  "transfer_fee": "0.00",
  "usd_debit": "32.594734",
  "rate": "1557",
  "reference": "payout_77",
  "failure": null,
  "confirmation_url": null,
  "created_at": "2027-01-12T09:45:00.000Z"
}
Send a test request

Runs against your test data. Your key is not saved and is cleared when you leave the page.