No KYC/BVN/NIN required from your customers
You do NOT need to collect your customer's BVN, NIN, or any identity document to create a virtual account for them. Identity verification is handled once, at your own business's KYC level (already completed when you registered on MonieFlex), and is automatically reused for every virtual account you generate. Your customers only need to provide their name.
Account naming
The virtual account name your customer sees combines YOUR business name with THEIR name, e.g.:
Futawe John Doe
(PalmPay appends its own platform suffix automatically after this.)
Idempotency
Error responses
All errors follow this shape:
{
"status": false,
"code": "error_code_here",
"message": "Human-readable explanation"
}
| HTTP Status | code | Meaning |
|---|---|---|
| 422 | missing_field | customer_ref or name was not provided |
| 422 | invalid_reference | customer_ref must be at least 3 characters |
| 403 | kyc_required | Your own business KYC isn't verified yet — contact support |
| 502 | account_failed | PalmPay could not create the account — try again |
| 429 | too_many_requests | Rate limit exceeded — slow down your requests |
Create a virtual account
Creates a virtual account for your customer. Only customer_ref and name are required.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
customer_ref |
string | Yes | Your own reference for the customer. Minimum 3 characters. |
name |
string | Yes | The customer's name. |
email |
string | Optional | Customer email address. |
phone |
string | Optional | Customer phone number. |
Code Samples
curl -X POST {{API_BASE_URL}}/v1/virtual-accounts \
-H "Authorization: Bearer <secret_key>" \
-H "Content-Type: application/json" \
-d '{
"customer_ref": "cust_10293",
"name": "John Doe",
"email": "john@example.com",
"phone": "08012345678"
}'
const res = await fetch("{{API_BASE_URL}}/v1/virtual-accounts", {
method: "POST",
headers: {
Authorization: `Bearer ${secretKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
customer_ref: "cust_10293",
name: "John Doe",
email: "john@example.com",
phone: "08012345678",
}),
});
const { data } = await res.json();
<?php
$ch = curl_init("{{API_BASE_URL}}/v1/virtual-accounts");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . $secretKey,
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"customer_ref" => "cust_10293",
"name" => "John Doe",
"email" => "john@example.com",
"phone" => "08012345678",
]),
]);
$data = json_decode(curl_exec($ch), true)["data"];
Success Response (200 OK)
{
"status": true,
"data": {
"customer_ref": "cust_10293",
"account_number": "9012345678",
"account_name": "Futawe John Doe",
"bank_name": "PalmPay",
"mode": "live"
}
}
Error Response
{
"status": false,
"code": "missing_field",
"message": "Missing field: name"
}