Skip to main content
Creates a payout order. Checks the recipient’s account and returns the deposit address and the amount to send.
Call this endpoint from your server. Never expose your API key in a browser or app.

Endpoint

Requires the offramp scope.
Send an Idempotency-Key unique to this payout, such as your payout ID. A repeated key returns the original order with 200 instead of creating a second one.

Body

number
required
USDC amount, 0.5 – 50,000. The local equivalent must fall inside the per-transaction range.
string
required
Payout currency: KES, NGN, GHS, or UGX.
string
A wallet address you control, starting with 0x. Required unless you set funding_wallet_ref. USDC is returned here if the payout fails or the deposit is short.
string
The reference of one of your Wallet API addresses. The order is paid from that address’s USDC on Base. Refunds return to it, and refund_address is ignored. Requires Idempotency-Key. See paying from a Wallet API address.
object
required
Who gets paid. See recipients for the fields each method needs. The account is checked before the order is created.For NGN, recipient.institution is an institution code from GET /api/offramp/institutions.
string
Your own reference, such as your payout ID. Returned as external_reference in responses and webhooks. Not shown to the recipient.

Example

Response (201)

This is an automatic order. A send-and-confirm order differs as follows:
  • deposit_submission_required is true
  • total_deposit_usdc equals amount_usdc
  • fee comes off the payout
  • there’s no sender_fee_usdc or transaction_fee_usdc
  • expires_at is 30 minutes away
string
required
Unique order identifier.
number
required
The exact USDC to send. On send-and-confirm orders it equals amount_usdc. On automatic orders it includes fees. A smaller amount isn’t credited and is returned to refund_address.
boolean
required
true: send to deposit_address, then submit the transaction hash. false: the deposit is detected automatically. Read it on every order.
number
Automatic orders only. Included in total_deposit_usdc.
number
Automatic orders only. Included in total_deposit_usdc.
string
required
Where to send USDC on Base. Use it only for this order.
string
required
Always base. USDC sent on any other network isn’t credited.
number
required
The quoted rate. On send-and-confirm orders, the payout uses the rate when your USDC arrives, and rate, amount_local, and fee update. On automatic orders, the rate is fixed.
string
required
The deadline for sending USDC, ISO 8601. 30 minutes on send-and-confirm orders, a few minutes on automatic orders. After it, the order is expired.
string
Only on orders paid from a Wallet API address. The reference you sent in the request.
string
required
Plain-language next steps for this order.

Paying from a Wallet API address

Add funding_wallet_ref to pay the order from one of your Wallet API addresses on Base. There’s no deposit to send and no hash to submit.
cURL
The response includes funding_wallet_ref, and deposit_submission_required is false. total_deposit_usdc is sent from the address immediately. Wait for offramp.completed or offramp.failed.
  • The address must hold at least total_deposit_usdc in USDC on Base, after in-progress payouts and withdrawals. For funds arriving from another network, wait for wallet.deposit.settled.
  • refund_address isn’t needed. Refunds return to the funding address.
  • Keep auto-sweep off for the address.
  • Idempotency-Key is required.

Errors