expiryDate, set by validityMinutes (10 to 30, default 10). Pass your own paymentReference; it comes back as paymentRef on the collection notification so you can match the payment to your order.| code | HTTP | message | when |
|---|---|---|---|
| 26 | 400 | Required fields are missing | firstName or lastName blank. |
| 26 | 400 | Invalid amount | amount below 0. |
| 26 | 400 | Validity must be between 10 and 30 minutes. | validityMinutes out of range. |
| 26 | 400 | Invalid prefix | Merchant has no ACTIVE register. |
| 21 | 400 | Unable to provision virtual account with the provider, please try again | Provider returned no number. |
| 409 | Idempotency conflict | Idempotency-Key reused with a different body. |
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/virtual-accounts/create/dynamic' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "Chidi",
"lastName": "Okafor",
"phoneNumber": "08031234567",
"paymentReference": "INV-2026-000912",
"amount": 15000,
"validityMinutes": 20
}'{
"isSuccessful": true,
"code": "00",
"message": "Operation successful",
"data": {
"accountNumber": "9901234567",
"accountName": "ACME/CHIDI OKAFOR",
"bank": "Digitvant MFB",
"expiryDate": "2026-11-22T12:35:12"
}
}