Creates a temporary virtual account for the checkout, named - CHECKOUT. The payer transfers the amount to it. The checkout must have been initiated within the last 30 minutes.
This is a payer facing endpoint used by the hosted checkout page. It needs no token.
Auth: Bearer token
Errors
| code | HTTP | message | when |
|---|---|---|---|
| 26 | 400 | Invalid payment reference | No checkout with that reference in the last 30 minutes. |
| 21 | 400 | Validity must be between 10 and 30 minutes. | validity out of range. |
| 21 | 400 | Unable to provision virtual account with the provider, please try again | Temporary provider failure. |
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/checkout/create-account' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"paymentReference": "ORDER-2026-1122-0001",
"amount": 2500,
"validity": 30
}'{
"isSuccessful": true,
"code": "00",
"message": "Operation successful",
"data": {
"accountNumber": "9901234567",
"accountName": "ACME LTD - CHECKOUT",
"bank": "Digitvant MFB",
"expiryDate": "2026-11-22T12:35:12.4"
}
}