Create a virtual account
curl --request POST \
--url https://{host}/v1/virtual-accounts \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"type": "static",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "Lekki branch",
"fee_bearer": "business",
"reference": "INV-2026-0042",
"amount_minor": 2500000,
"currency": "NGN",
"expiry_minutes": 60,
"payer_name": "Adaeze Okafor",
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'static',
customer_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
label: 'Lekki branch',
fee_bearer: 'business',
reference: 'INV-2026-0042',
amount_minor: 2500000,
currency: 'NGN',
expiry_minutes: 60,
payer_name: 'Adaeze Okafor',
collection_account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://{host}/v1/virtual-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v1/virtual-accounts"
payload = {
"type": "static",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "Lekki branch",
"fee_bearer": "business",
"reference": "INV-2026-0042",
"amount_minor": 2500000,
"currency": "NGN",
"expiry_minutes": 60,
"payer_name": "Adaeze Okafor",
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_number": "<string>",
"account_name": "<string>",
"type": "static",
"purpose": "<string>",
"owner_type": "<string>",
"status": "<string>",
"fee_bearer": "business",
"settles_to": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"name_status": "<string>",
"label": "Lekki branch",
"settlement_account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_number": "<string>",
"account_name": "<string>"
},
"payment_terms": {
"reference": "INV-2026-0042",
"currency": "NGN",
"amount_minor": 2500000,
"fee_minor": 123,
"vat_minor": 123,
"charge_minor": 123,
"total_payable_minor": 123,
"settlement_minor": 123,
"expires_at": "2023-11-07T05:31:56Z",
"held_payments": 123,
"payer_name": "Adaeze Okafor",
"received_minor": 123,
"paid_at": "2023-11-07T05:31:56Z",
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"fields": {}
},
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": null,
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": null,
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": null,
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": null,
"code": "13"
}Virtual accounts
Create a virtual account
Gives the business an account number: static, as a collection account of the business, or dynamic for one payment of a set amount (needs DYNAMIC_VIRTUAL_ACCOUNTS). A retry with the same Idempotency-Key and body returns the same account.
Required permission: feature:VIRTUAL_ACCOUNTS, virtual-accounts:write
POST
/
v1
/
virtual-accounts
Create a virtual account
curl --request POST \
--url https://{host}/v1/virtual-accounts \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"type": "static",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "Lekki branch",
"fee_bearer": "business",
"reference": "INV-2026-0042",
"amount_minor": 2500000,
"currency": "NGN",
"expiry_minutes": 60,
"payer_name": "Adaeze Okafor",
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'static',
customer_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
label: 'Lekki branch',
fee_bearer: 'business',
reference: 'INV-2026-0042',
amount_minor: 2500000,
currency: 'NGN',
expiry_minutes: 60,
payer_name: 'Adaeze Okafor',
collection_account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://{host}/v1/virtual-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v1/virtual-accounts"
payload = {
"type": "static",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "Lekki branch",
"fee_bearer": "business",
"reference": "INV-2026-0042",
"amount_minor": 2500000,
"currency": "NGN",
"expiry_minutes": 60,
"payer_name": "Adaeze Okafor",
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_number": "<string>",
"account_name": "<string>",
"type": "static",
"purpose": "<string>",
"owner_type": "<string>",
"status": "<string>",
"fee_bearer": "business",
"settles_to": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"name_status": "<string>",
"label": "Lekki branch",
"settlement_account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_number": "<string>",
"account_name": "<string>"
},
"payment_terms": {
"reference": "INV-2026-0042",
"currency": "NGN",
"amount_minor": 2500000,
"fee_minor": 123,
"vat_minor": 123,
"charge_minor": 123,
"total_payable_minor": 123,
"settlement_minor": 123,
"expires_at": "2023-11-07T05:31:56Z",
"held_payments": 123,
"payer_name": "Adaeze Okafor",
"received_minor": 123,
"paid_at": "2023-11-07T05:31:56Z",
"transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": {
"fields": {}
},
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": null,
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": null,
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": null,
"code": "13"
}{
"success": true,
"message": "<string>",
"request_id": "01a1775167aa7693a7acd8df7b596118",
"data": null,
"code": "13"
}Authorizations
Headers
Body
application/json