Virtual Accounts

Virtual Accounts Overview

Creates a dedicated virtual account for one of your customers powered by the PalmPay direct clearing rail. Transfers into it are credited to your MonieFlex balance and appear as virtual_account transactions.

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.:

text
Futawe John Doe

(PalmPay appends its own platform suffix automatically after this.)

Idempotency

Safe to retry
Calling this endpoint again with the same customer_ref returns the SAME existing account instead of creating a duplicate.

Error responses

All errors follow this shape:

json
{
  "status": false,
  "code": "error_code_here",
  "message": "Human-readable explanation"

}
HTTP StatuscodeMeaning
422missing_fieldcustomer_ref or name was not provided
422invalid_referencecustomer_ref must be at least 3 characters
403kyc_requiredYour own business KYC isn't verified yet — contact support
502account_failedPalmPay could not create the account — try again
429too_many_requestsRate limit exceeded — slow down your requests
POST /virtual-accounts

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
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"
  }'
Node.js
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
<?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"
}