Skip to main content

Bank Payouts Requests

Introduction

The Bank Payments API enables you to receive money directly to your payd wallet from a client's bank account.

Making Bank Payouts Requests

To make a bank payment request, send an HTTP POST request to the following 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 securely collect bank-based payments using the Payd API. The request body must include the following structure:

    {
"username": "paydconsultantconsultants",
"network_code": "344f1324-11fb-4875-bd74-fbb43cd2b32d",
"account_name": "bank",
"account_holder_name": "amazing maverick",
"account_number": "+23471245678",
"amount": 2500,
"phone_number": "+234712345678",
"channel_id": "fe8f4989-3bf6-41ca-9621-ffe2bc127569",
"narration": "Payment for goods",
"currency": "NGN",
"callback_url": "https://payd-test.free.beeceptor.com",
"transaction_channel": "bank",
"channel": "bank",
"provider_name": "OPay",
"provider_code": "100004" // 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' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "paydconsultantconsultants",
"network_code": "344f1324-11fb-4875-bd74-fbb43cd2b32d",
"account_name": "bank",
"account_holder_name": "amazing maverick",
"account_number": "+23471245678",
"amount": 2500,
"phone_number": "+234712345678",
"channel_id": "fe8f4989-3bf6-41ca-9621-ffe2bc127569",
"narration": "Payment for goods",
"currency": "NGN",
"callback_url": "https://payd-test.free.beeceptor.com",
"transaction_channel": "bank",
"channel": "bank",
"provider_name": "OPay",
"provider_code": "100004" // can be used as channel code (from bulk api)
}

Example of a successful response

{
"status": "success",
"message": "Payment made successfully",
"transaction_id": "txn_0123456789abcdef"
}



Conclusion