Marketplace
Initiate Merchant Payout
Request a payout from a sub-merchant’s wallet balance.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.khaime.com/llms.txt
Use this file to discover all available pages before exploring further.
Initiate Merchant Payout
Request a payout from a sub-merchant’s wallet balance. This endpoint lets a marketplace operator initiate a withdrawal for a linked sub-merchant after the merchant has completed KYC and payout setup.This payout is created from the sub-merchant’s Khaime wallet balance. For Stripe direct-charge marketplace payments, funds may already be held in the sub-merchant’s Stripe connected account instead of their Khaime wallet.
Path Parameters
The ID of the sub-merchant whose wallet should be paid out.
Request Body
Amount to withdraw in the smallest currency unit. For example,
50000 means ₦500.00 for NGN or $500.00 for USD.Wallet currency to withdraw, such as
NGN, USD, or GBP.Optional internal description for the payout request.
Response
Response Fields
| Field | Type | Description |
|---|---|---|
merchant_id | number | Sub-merchant business ID |
withdrawal_id | number | Wallet transaction ID for the payout debit |
amount | number | Requested payout amount in the smallest currency unit |
currency | string | Currency being withdrawn |
status | string | Payout status, usually payout_pending at creation |
reference | string | Unique payout reference |
payout_method | string | transfer for wallet-based payout processing |
initiated_by_marketplace_id | number | Marketplace operator business ID |
created_at | string | ISO timestamp when the request was created |
Requirements
- Your API key must belong to a marketplace operator.
- The
merchantIdmust be an active sub-merchant in your marketplace. - The sub-merchant must have completed KYC and payout setup.
- The sub-merchant must have enough available wallet balance in the requested currency.
- Only one pending payout is allowed per merchant and currency at a time.
Error Codes
| Status | Error | Fix |
|---|---|---|
400 | Insufficient wallet balance | Request a lower amount or wait for more funds to settle |
400 | You already have a pending payout request for this currency | Wait for the existing payout to complete |
400 | Please store bank account details first before requesting payouts | Complete payout setup for the merchant |
403 | This endpoint is restricted to marketplace operators | Use an API key from a marketplace operator account |
404 | Active merchant relationship not found | Confirm the merchant is linked and active |
