| code | HTTP | message | when |
|---|---|---|---|
| 26 | 400 | Invalid access code | Unknown or expired access code. |
| 26 | 400 | Invalid payment reference | Checkout not found or out of time. |
| 26 | 400 | Unable to initiate card payment | Processor declined or failed. |
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/checkout/card/initiate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"accessCode": "K7Q2ZP9X4M",
"paymentReference": "ORDER-2026-1122-0001",
"pan": "5399830000001238",
"expiryDate": "12/29",
"cvv": "000",
"pin": "0000",
"amount": 2500,
"description": "Order 0001"
}'{
"isSuccessful": true,
"code": "00",
"message": "Operation successful",
"data": {
"amount": 2500,
"invoiceRequestReference": "ORDER-2026-1122-0001",
"action": "OTP",
"status": "PENDING",
"message": "Enter the OTP sent to your phone",
"reference": "CLNX-7F3A9B",
"threeDSecure": {
"required": false,
"type": null,
"authUrl": null
}
}
}