{
"message": "invalid payload",
"success": false,
"status": 400
}
{
"message": "payout initiated",
"success": false,
"status": 200
}
{
"message": "merchant not activated. please contact support@chpter.co ",
"success": false,
"status": 401
}
Good to know: This API uses webhooks to notify you of the payout status through the callback url.
{
"client_details": {
"full_name": "John Doe",
"phone_number": "254700123123",
"email": "johndoe@mail.com"
},
"destination_details": {
"country_code": "KE",
"mobile_number": "254700123123",
"wallet_type": "mpesa"
},
"transfer_details": {
"currency_code": "KES",
"amount": 100.25
},
"callback_details": {
"notify_customer": true,
"payout_reference": "DEF456",
"callback_url": "https://example.com/callback"
}
}
{
"message": "Success",
"success": true,
"status": 200,
"amount": 100,
"currency": "KES",
"payout_reference": "ABCD123",
}
{
"message": "Payout failed contact support@chpter.co",
"success": false,
"status": 200,
"payout_reference": "ABCD123",
}