How the Customer Reserved Account Works
Creating a Reserved Account: To create a Reserved Account for a customer, make a POST request to the Reserve an Account API. Once the account is established, it functions as a dedicated account for that customer's specific payments.
Making Payments to the Reserved Account: Customers can deposit funds into their assigned account as needed via any Nigerian banking app or NIP instant transfer. These funds are earmarked for your business and credited instantly.
Transaction Notifications: Whenever a customer initiates a transfer to a Reserved Account, MONIEFLEX sends real-time signed webhook notifications to your server with complete transaction details.
Account Naming Convention
The account name shown to your customer combines YOUR business name with their name, followed by the MONIEFLEX suffix — e.g. 'MONIEFLEX-Samuel Ade'.
Endpoint
POST {{API_BASE_URL}}/v1/createVirtualAccount
Alias: POST {{API_BASE_URL}}/palmpay/virtual-accounts
Request Headers
Authorization: Bearer <your_secret_key>
api-key: <your_api_key>
Content-Type: application/json
Request Body
{
"email": "customer@example.com",
"name": "Samuel Ade",
"phoneNumber": "08012345678",
"bankCode": ["20946"],
"businessId": "biz_live_123"
}
Required fields: name, email, phoneNumber, bankCode (use '20946' for PalmPay). Alternatively, you may supply customer_ref.
Success Response — HTTP 200
{
"status": "success",
"message": "Customer account created successfully. Bank account(s) processed and ready for use.",
"customer": {
"customer_id": "cus_924295ad6bf3",
"customer_name": "Samuel Ade",
"customer_email": "customer@example.com",
"customer_phone_number": "08012345678"
},
"business": {
"business_name": "Your Business Name",
"business_email": "merchant@monieflex.co",
"business_phone_number": "+234 800 000 0000",
"business_Id": "biz_live_123"
},
"bankAccounts": [
{
"bankCode": "20946",
"accountNumber": "6679854996",
"accountName": "MONIEFLEX-Samuel Ade",
"bankName": "Palmpay",
"Reserved_Account_Id": "94df7e913187213d06a052bd8a980d8944c1f11b"
}
],
"errors": []
}
Idempotency
Create Customer PalmPay Reserved Account
Creates a dedicated PalmPay reserved account for your customer without requiring end-user KYC, BVN, or NIN.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
email |
string | Yes | Customer's email address. |
name |
string | Yes | Customer's full legal name. |
phoneNumber |
string | Yes | Customer's 11-digit phone number. |
bankCode |
array | string | Yes | ['20946'] or ['999991'] for PalmPay. |
businessId |
string | Optional | Your business identifier. |
customer_ref |
string | Optional | Optional custom reference in your system. |
Code Samples
curl -X POST {{API_BASE_URL}}/v1/createVirtualAccount \
-H "Authorization: Bearer <secret_key>" \
-H "api-key: <api_key>" \
-H "Content-Type: application/json" \
-d '{
"email": "customer@example.com",
"name": "Samuel Ade",
"phoneNumber": "08012345678",
"bankCode": ["20946"],
"businessId": "biz_live_123"
}'
const res = await fetch("{{API_BASE_URL}}/v1/createVirtualAccount", {
method: "POST",
headers: {
"Authorization": `Bearer ${secretKey}`,
"api-key": apiKey,
"Content-Type": "application/json",
},
body: JSON.stringify({
email: "customer@example.com",
name: "Samuel Ade",
phoneNumber: "08012345678",
bankCode: ["20946"],
businessId: "biz_live_123",
}),
});
const data = await res.json();
console.log(data.bankAccounts);
<?php
$ch = curl_init("{{API_BASE_URL}}/v1/createVirtualAccount");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . $secretKey,
"api-key: " . $apiKey,
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"email" => "customer@example.com",
"name" => "Samuel Ade",
"phoneNumber" => "08012345678",
"bankCode" => ["20946"],
"businessId" => "biz_live_123",
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data["bankAccounts"]);
import requests
url = "{{API_BASE_URL}}/v1/createVirtualAccount"
headers = {
"Authorization": f"Bearer {secret_key}",
"api-key": api_key,
"Content-Type": "application/json"
}
payload = {
"email": "customer@example.com",
"name": "Samuel Ade",
"phoneNumber": "08012345678",
"bankCode": ["20946"],
"businessId": "biz_live_123"
}
res = requests.post(url, json=payload, headers=headers)
print(res.json()["bankAccounts"])
Success Response (200 OK)
{
"status": "success",
"message": "Customer account created successfully. Bank account(s) processed and ready for use.",
"customer": {
"customer_id": "cus_924295ad6bf3",
"customer_name": "Samuel Ade",
"customer_email": "customer@example.com",
"customer_phone_number": "08012345678"
},
"business": {
"business_name": "Your Business Name",
"business_email": "merchant@monieflex.co",
"business_phone_number": "+234 800 000 0000",
"business_Id": "biz_live_123"
},
"bankAccounts": [
{
"bankCode": "20946",
"accountNumber": "6679854996",
"accountName": "MONIEFLEX-Samuel Ade",
"bankName": "Palmpay",
"Reserved_Account_Id": "94df7e913187213d06a052bd8a980d8944c1f11b"
}
],
"errors": []
}
Error Response
{
"status": "error",
"message": "Missing required fields: email, name, phoneNumber, and bankCode are required."
}