accessCode and the hosted authorizationUrl. Redirect the payer there or embed it. It also registers the payer as your customer, keyed on email.paymentRef is this paymentReference.| code | HTTP | message | when |
|---|---|---|---|
| 26 | 400 | Email is required | email blank. |
| 26 | 400 | Amount must be greater than zero | amount zero or negative. |
| 26 | 400 | Invalid credentials | No merchant credential for the token. |
| 26 | 400 | Partner not found | No merchant register. |
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/checkout/initiate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "jane@example.com",
"phoneNumber": "08012345678",
"firstName": "Jane",
"lastName": "Doe",
"amount": 2500,
"paymentReference": "ORDER-2026-1122-0001",
"channels": [
"CARD",
"BANK",
"USSD"
]
}'{
"isSuccessful": true,
"code": "00",
"message": "Operation successful",
"data": {
"paymentReference": "ORDER-2026-1122-0001",
"authorizationUrl": "https://merchantportal-dev.vantpay.io/checkout/K7Q2ZP9X4M",
"accessCode": "K7Q2ZP9X4M",
"stage": "Initiated",
"channels": [
"CARD",
"BANK",
"USSD"
]
}
}