Send money from your balance to a mobile wallet
POST
/v1/payouts
const url = 'http://localhost:4000/v1/payouts';const options = { method: 'POST', headers: { 'idempotency-key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"amount":15000,"currency":"XOF","provider":"wave","recipient":{"phone":"+221771234567","name":"example"},"client_reference":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:4000/v1/payouts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'idempotency-key: example' \ --data '{ "amount": 15000, "currency": "XOF", "provider": "wave", "recipient": { "phone": "+221771234567", "name": "example" }, "client_reference": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters”idempotency-key
required
Required retry-safe key; reuse it only for the same operation and request body
string
Required retry-safe key; reuse it only for the same operation and request body
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
amount
required
Integer XOF
integer
Example
15000currency
string
provider
required
string
recipient
required
object
phone
required
string
Example
+221771234567name
string
client_reference
string
Responses
Section titled “ Responses ”Payout created
Media typeapplication/json
object
id
required
string
object
required
string
agent_wallet_id
required
string | null
livemode
required
boolean
amount
required
integer
fee
required
integer
currency
required
string
provider
required
string
status
required
string
recipient
required
object
phone
required
string
name
required
string | null
client_reference
required
string | null
failure_reason
required
string | null
created_at
required
string
updated_at
required
string
Example
{ "object": "payout", "provider": "wave", "status": "pending"}Validation error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Authentication error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Insufficient funds / unsupported
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Rate limited; see Retry-After response header
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Ledger reservation temporarily unavailable
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}