Bank Payouts
Bank payouts let you send money from your balance directly to a bank account. Modem Pay supports transfers to major banks in The Gambia.
Supported Banks
Banks are payout channels. The list changes over time — new banks get added, and a bank can be switched off for a while if its provider has problems. Load the list from the API instead of hard-coding it.
curl "https://api.modempay.com/h2h/v1/transfers/payout-channels?type=bank" \
-H "Authorization: Bearer sk_test_..."
Here is a recent snapshot of the bank channels. This is a sample only — always use the code the API returns.
| Bank | Code (network) | Country |
|---|---|---|
| Ecobank Gambia | 2007 | gm |
| Trust Bank Ltd | 2006 | gm |
| GT Bank | 2005 | gm |
| Zenith Bank | 2004 | gm |
You must specify the correct network value (the channel code) in your transfer request. Codes never change, so it is safe to store one after a user picks it.
Required Fields
For bank transfers, you must provide the following in your request:
| Field | Required | Description |
|---|---|---|
amount | ✅ | Amount to send (minimum 10 GMD) |
currency | ✅ | Currency code (e.g., GMD) |
network | ✅ | Payout channel code, e.g. 2007 for Ecobank Gambia |
account_number | ✅ | Recipient's bank account number (at least 7 digits) |
beneficiary_name | ✅ | Name of the account holder (at least 3 characters) |
narration | ⛔ | Optional transfer note |
metadata | ⛔ | Optional structured data (JSON) |
Look Up the Account First (Recommended)
Before you send a bank payout, confirm the account number belongs to the name you have. This catches typos and mismatches before money moves.
curl "https://api.modempay.com/h2h/v1/misc/account-lookup/2007/6240000000" \
-H "Authorization: Bearer sk_test_..."
{
"account_name": "John Doe",
"account_number": "6240000000",
"transaction_id": "9f2c1b6e-..."
}
| Field | Description |
|---|---|
account_name | The name on the account. |
account_number | The number you looked up, echoed back. |
transaction_id | A reference for this lookup. |
Show account_name to the user so they can confirm it matches who they meant to pay, then send the payout.
Initiate Payout
When initiating a transfer, you must provide an Idempotency-Key in the request header. This ensures that if the same request is sent multiple times (for example, due to network issues), only one transfer will be processed. The Idempotency-Key should be a unique value (such as a UUID) for each transfer request.
curl -X POST https://api.modempay.com/h2h/v1/transfers \
-H "Authorization: Bearer sk_test_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: Idempotency-Key" \
-d '{
"amount": 100,
"currency": "GMD",
"network": "2007",
"account_number": "6240000000",
"beneficiary_name": "John Doe",
"narration": "Vendor payment for April supplies",
"metadata": {
"vendor_id": "vendor_001",
"invoice_id": "inv_204"
}
}'
Payout Response
{
"id": "45eb796c-e66a-442f-bba2-d282053f8883",
"events": {},
"business_id": "120c298f-b736-49c1-8220-8a8c84a5d8f3",
"account_id": "199bf17b-0b5a-45c0-a5b0-1d29f5f173c9",
"amount": 100,
"currency": "GMD",
"type": "bank",
"balance_before": 995,
"balance_after": 894,
"transfer_reference": "5Np7iVHrN",
"test_mode": true,
"status": "completed",
"account_name": "John Doe",
"network": "2007",
"mobile_number": null,
"account_number": "6240000000",
"note": "Vendor payment for April supplies",
"fee": 1,
"metadata": {
"vendor_id": "vendor_001",
"invoice_id": "inv_204"
},
"updatedAt": "2025-05-05T21:12:52.839Z",
"createdAt": "2025-05-05T21:12:52.839Z",
"merchant_id": null,
"recipient_business_id": null,
"bank": "Ecobank Gambia",
"amount_received": null,
"otp": null
}
Retrieve a Payout
You can fetch the details of a specific transfer using its unique id.
curl -X GET https://api.modempay.com/h2h/v1/transfers/45eb796c... \
-H "Authorization: Bearer sk_test_..."
This returns the full transfer object with all metadata, status, and transaction history.
Fraud Monitoring & Security
Modem Pay automatically monitors all payout transfers for suspicious or anomalous activity. If a transfer triggers our fraud detection systems, it is immediately flagged for review. When this happens:
- You will receive an email notification alerting you to the flagged transfer.
- A
transfer.flaggedwebhook event will be sent to your configured webhook endpoint.
Important: No further transfers can be made to the affected account number until you review and resolve the flagged issue. This helps protect your business and recipients from potential fraud or misuse. Always investigate flagged transfers promptly to restore normal payout operations.