linkWallet: true to create a customer wallet with the account in the same transaction (your merchant must have the wallet feature, otherwise code 60). The response then carries walletLinked: true and the walletId used by every Customer Wallets endpoint. Send an Idempotency-Key so a retry never opens a second account.| code | HTTP | message | when |
|---|---|---|---|
| 26 | 400 | Either BVN or NIN is required | Both missing. |
| 44 | 400 | Invalid BVN | bvn not 11 characters. |
| 26 | 400 | Invalid NIN | nin not 11 characters. |
| 26 | 400 | TerminalId is required for POS accounts | isPos true without terminalId. |
| 60 | 400 | Wallet feature is not enabled for this merchant | linkWallet true without the feature. |
| 26 | 400 | Daily limit of {N} new static accounts reached | Daily cap per merchant. |
| 26 | 400 | Invalid prefix | No active STATIC register with that prefix. |
| 26 | 400 | Invalid BVN/NIN | Identity lookup returned nothing. |
| 21 | 400 | Unable to provision virtual account with the provider | Provider returned no account number. Retry. |
| 21 | 400 | Unable to link the wallet, please try again | Wallet creation failed; account rolled back. |
| 20 | 400 | Error occurred while creating static account, please try again | Unexpected error; rolled back. |
| 409 | Idempotency conflict | Idempotency-Key reused with a different body. |
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/virtual-accounts/create/static' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"bvn": "22212345678",
"linkWallet": true
}'{
"isSuccessful": true,
"code": "00",
"message": "Operation successful",
"data": {
"accountNumber": "9000626241",
"accountName": "ACME/OKAFOR CHIDI",
"bank": "Digitvant MFB",
"walletLinked": true,
"walletId": "7c1f3e2a9b4d4f6e8a0b1c2d3e4f5a6b"
}
}