Skip to main content

Mobile Payout Requests

Introduction

The Mobile Payouts API allows you to send funds directly to a recipient's mobile wallet (e.g., M-PESA) through a single, unified endpoint.

Making Payment Requests

To make payment requests, users need to send an HTTP POST request to the specified endpoint with the required parameters.

Endpoint

https:api.mypayd.app//api/v3/withdrawal

Authorization

Users need to include basic authentication credentials in the request headers.

Authorization: Basic <base64-encoded-username:password>
Content-Type: application/json
X-Payd-Merchant-ID: <your_merchant_id>

Request Body

This payload allows you to make mobile payments using the Payd API. The request body must include the following structure:

json
{
"username": "paydconsultants",
"network_code": "7ea6df5c-6bba-46b2-a7e6-f511959e7edb",
"account_name": "momo",
"account_number": "+254712345678",
"amount": 150,
"phone_number": "254712345678",
"channel_id": "c2b2eeda-d4ca-49fd-ba21-0781ffa7714b",
"narration": "Payment for goods",
"currency": "KES",
"callback_url": "https://payd-test.free.beeceptor.com",
"transaction_channel": "mobile",
"channel": "mobile",
"provider_name": "Mobile Wallet (M-PESA)",
"provider_code": "M PESA" // can be used as channel code (from bulk api)
}


Below are code examples in different programming languages demonstrating how to make card payments using HTTP POST requests.

curl --location 'https:api.mypayd.app//api/v3/withdrawal' \
--data-raw '{
"username": "paydconsultants",
"network_code": "7ea6df5c-6bba-46b2-a7e6-f511959e7edb",
"account_name": "momo",
"account_number": "+254712345678",
"amount": 150,
"phone_number": "254712345678",
"channel_id": "c2b2eeda-d4ca-49fd-ba21-0781ffa7714b",
"narration": "Payment for goods",
"currency": "KES",
"callback_url": "https://payd-test.free.beeceptor.com",
"transaction_channel": "mobile",
"channel": "mobile",
"provider_name": "Mobile Wallet (M-PESA)",
"provider_code": "M PESA" // can be used as channel code (from bulk api)
}`

Example of a successful response

{
"success": true,
"correlator_id": "12345abcd",
"message": "Payout processed successfully",
"status": "completed"
}

### Conclusion
The Mobile Payouts endpoint enables seamless and secure withdrawalof money from your wallet through mobile channels such as M-PESA