VantPay API Documentation
API Docs
API Docs
  1. Cards
  • Authentication
    • Authenticate
      POST
  • Virtual Account
    • Create static virtual account
      POST
    • Create dynamic virtual account
      POST
    • List static virtual accounts
      GET
    • List dynamic virtual accounts
      GET
    • Get account balance
      GET
  • Inward Transfers
    • Inward transaction query (TSQ)
      GET
    • List inward transactions
      GET
    • Collection notifications
      GET
  • Transactions
    • List transactions
      GET
  • Wallet
    • Get wallet balance
      GET
    • Account history
      GET
  • Customer Wallets
    • Withdraw to a bank account
      POST
    • Transfer between wallets
      POST
    • List customer wallets
      GET
    • List wallet transactions
      GET
    • Get customer wallet balance
      GET
  • Cards
    • Register a customer
      POST
    • Store a card
      POST
    • List a customer’s cards
      GET
    • Look up a card
      POST
    • Search cards
      GET
    • Remove a card
      DELETE
    • Charge a stored card
      POST
    • List charges
      GET
    • Submit the OTP
      POST
    • Resend the OTP
      POST
  • Checkout
    • Initiate checkout
    • Query access code
    • Create checkout account
    • Complete checkout
    • Initiate card payment
    • Verify card OTP
    • Resend card OTP
    • Card payment status
    • Initiate USSD payment
    • Complete USSD payment
  • Payouts
    • List banks
    • Name enquiry
    • Initiate a payout
    • Payout status
    • List payouts
  • Webhooks
    • Set notification URL
    • Collection notification
  • Schemas
    • AuthData
    • ApiResponseEnvelope
    • Envelope
    • ErrorEnvelope
    • StaticAccountData
    • AuthenticateResponse
    • CollectionNotification
    • DynamicAccountData
    • VirtualAccountStatic
    • StaticAccountListItem
    • Transaction
    • CreateStaticVirtualAccountResponse
    • VirtualAccountDynamic
    • PagedStaticAccounts
    • CreateDynamicVirtualAccountResponse
    • PagedTransactions
    • WalletBalanceData
    • VirtualAccountListItem
    • PagedVirtualAccountList
    • ListStaticVirtualAccountsResponse
    • PagedTransactionList
    • ListTransactionsResponse
    • WalletBalance
    • WalletBalanceResponse
    • SetNotificationUrlResponse
    • WebhookCollectionPayload
  1. Cards

Submit the OTP

POST
/api/v1/cards/transactions/{reference}/otp
Sends the cardholder’s OTP for a charge in OtpRequired. A wrong OTP returns 400 code 26 and the charge stays OtpRequired. A charge that is already final returns its outcome instead of an error. A confirmed approval returns Successful and books the collection.
Auth: Bearer token
Errors
codeHTTPmessagewhen
26400OTP could not be validatedWrong OTP. Collect it again or resend.
70400The processor’s decline messageProcessor failed the charge.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Success
Bodyapplication/json

🟠400BusinessError
🟠401Unauthorized
🟠403Forbidden
🟠429TooManyRequests
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/cards/transactions//otp' \
--header 'X-Timestamp: {{timestamp}}' \
--header 'X-Signature-Version: 2' \
--header 'X-Signature: {{signature}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "otp": "123456"
}'
Response Response Example
200 - Success
{
    "isSuccessful": true,
    "code": "00",
    "message": "Operation successful",
    "data": {
        "transactionReference": "ORDER-2026-11-08-0001",
        "reference": "CT5A3B9C1D2E4F60718293",
        "cardToken": "3f9a1c2e7b4d4e8f9a0b1c2d3e4f5a6b",
        "maskedPan": "539983******1238",
        "customerId": "CUSdaa52de",
        "amount": 2500,
        "fee": 37.5,
        "status": "Successful",
        "requiresOtp": false,
        "message": "Approved",
        "providerStatusCode": "00",
        "narration": "Monthly subscription",
        "createdAt": "2026-11-08T10:20:01",
        "completedAt": "2026-11-08T10:20:03"
    }
}
Modified at 2026-11-22 22:39:38
Previous
List charges
Next
Resend the OTP
Built with