AI agents: this site is available as Markdown at /llms.txt. Each page has a Markdown version at its URL with a .md suffix, and the full API is described in /api/v3/openapi.json.

Create a virtual account

Create a virtual account

Last updated 19 October 2026

post

https://developersandbox-api.flutterwave.com/virtual-accounts

authorization string required

Pass your OAuth access token as a bearer token in the request header to authorize this call

FILL IN ALL REQUIRED FIELDS

X-Trace-Id string
A unique identifier to track this operation. It must be between 12 and 255 characters in length.

X-Idempotency-Key string
A unique identifier to prevent duplicate requests. It must be between 12 and 255 characters in length.

X-Scenario-Key string
An optional scenario key that can be used to simulate specific behaviors or test different scenarios within the API. Providing this header allows you to trigger predefined responses or alter data based on the key's value, which can be useful for testing, development, or demonstrating specific functionalities. The key should be a string of 1 to 1000 characters.

FILL IN ALL REQUIRED FIELDS

reference string required
A custom identifier to track the transaction, This must be unique across all your transactions. min length 6. max length 42. pattern ^[a-zA-Z0-9\-]+$

customer_id string required
The customer id

amount number (decimal)
The amount to be collected. Specify 0 for static accounts.

expiry integer
The expiry time of the virtual account. minimum 60. maximum 31536000

currency any required
ISO 4217 currency code. Allowed values: NGN, GHS, EGP, KES, MAD, ZAR

account_type string required
The type of virtual account. Allowed values: static, dynamic

meta object

narration string
This allows you specify the name shown when the account is resolved.

bvn string
This is the customer's Bank Verification Number. pattern ^[1-9][0-9]{10}$

nin string
This is the customer's National Identity Number. pattern ^[1-9][0-9]{10}$

customer_account_number string
This is the bank account the transfer will originate from. required for EGP and KES

merchant_vat_amount number (decimal)

bank_code string
This allows you to specify the bank issuing the virtual account. For NGN: Flutterwave MFB (090567). For GHS: Firstbank (GH200100)

FILL IN ALL REQUIRED FIELDS

status string
Allowed values: success, failed

message string

data object

FILL IN ALL REQUIRED FIELDS

id string
The virtual account ID.

amount number (decimal)
The amount to be collected. Specify 0 for static accounts.

account_number string
The bank account number.

reference string
A custom identifier to track the transaction, This must be unique across all your transactions.

account_bank_name string
The name of the bank.

account_type string
The type of virtual account. Allowed values: static, dynamic

status string
The status of the virtual account. Allowed values: active, inactive

account_expiration_datetime string, (date-time)
The expiry date and time of the virtual account.

note string
A message providing instructions for the bank transfer, which includes the narration provided in the request.

customer_id string
The ID of the customer.

created_datetime string (date-time)
The date and time when the virtual account was created..

meta object

customer_reference string
This is the reference the customer sends as narration when making the bank transfer

currency string
ISO 4217 currency code.

narration string
This allows you specify the name shown when the account is resolved.

FILL IN ALL REQUIRED FIELDS

status string
Allowed values: failed

error object
The request cannot be accepted and is malformed and/or missing required parameters.

FILL IN ALL REQUIRED FIELDS

type string

code string

message string

validation_errors array of object

FILL IN ALL REQUIRED FIELDS

field_name string

message string

FILL IN ALL REQUIRED FIELDS

status string
Allowed values: failed

message string
Invalid API key provided

error object

FILL IN ALL REQUIRED FIELDS

type string

code string

message string

FILL IN ALL REQUIRED FIELDS

status string
Allowed values: failed

message string
API key doesn't have permission to access this resource

error object

FILL IN ALL REQUIRED FIELDS

type string

code string

message string

FILL IN ALL REQUIRED FIELDS

status string
Allowed values: failed

message string
The request conflicts with another request

error object

FILL IN ALL REQUIRED FIELDS

type string

code string

message string

Shell

1
1


FL.AI

Answers from the Flutterwave docs

Hi, I’m FL.AI

Ask anything about Flutterwave’s APIs, guides and coverage.

FL.AI can make mistakes. Check important details in the docs.

Get API Keys