VantPay API Documentation
API Docs
API Docs
  1. Authentication
  • 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. Authentication

Authenticate

POST
/api/v1/merchant/authenticate
Exchanges your merchant ClientId and ClientSecret for a bearer access token. VantPay checks the secret against the stored credential, applies a lock out (five failures in fifteen minutes lock the client id for fifteen minutes), then gets the token from the SSO and returns it unchanged. The secret is never logged.
Send the returned access_token as Authorization: Bearer <access_token> on every other call. Cache it and refresh it about a minute before expires_in runs out instead of requesting one per call. Your merchant identity comes from the token, so you never send it in a body or query string.
Auth: Bearer token
Errors
codeHTTPmessagewhen
26400Invalid requestclientId or clientSecret missing or empty.
24400Too many failed attempts. Please try again laterClientId locked for 15 minutes after 5 failures.
21400Unable to generate tokenUnknown ClientId, inactive credential, wrong secret, or SSO refused. Counts toward the lock out.
20406We are unable to complete this action at the moment. Please try againSSO unreachable or unexpected error.
429Too many requests. Please retry later.More than 10 calls per minute from one IP.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Success
Bodyapplication/json

🟠400BusinessError
🟠429TooManyRequests
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/merchant/authenticate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "clientId": "{{clientId}}",
    "clientSecret": "{{clientSecret}}"
}'
Response Response Example
200 - Success
{
    "isSuccessful": true,
    "code": "00",
    "message": "Operation successful",
    "data": {
        "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjQ3Q0...",
        "expires_in": 3600,
        "token_type": "Bearer",
        "scope": "MerchantService"
    }
}
Modified at 2026-11-22 22:44:25
Next
Create static virtual account
Built with