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

Set notification URL

POST
/api/v1/virtual-accounts/set-notification-url
Registers the URL that receives your collection notifications. Leave out prefix to apply it to all your active prefixes. If you set authToken, VantPay sends it as Authorization: Bearer <authToken> on every notification; that is the only authentication, so compare it in constant time.
The URL must be a public https:// address (not localhost or a private network). Until a valid URL exists, credits wait as Deferred and are delivered once you set one.
What VantPay posts: a JSON body (see the CollectionNotification schema) to your URL. Return any 2xx within 20 seconds and process the work afterwards. 5xx and timeouts are retried; 400, 401, 403 and 404 are parked and not retried. The same transactionRef can arrive more than once, so make your handler idempotent and confirm the amount with Inward transaction query before you release value.
Auth: Bearer token | rate limit: default
Errors
codeHTTPmessagewhen
26400Notification URL must be a public https:// URLURL not public or not https.

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
🟠401Unauthorized
🟠429TooManyRequests
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/virtual-accounts/set-notification-url' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "notificationUrl": "https://api.yourcompany.com/vantpay/notifications",
    "authToken": "a-long-random-secret"
}'
Response Response Example
200 - Success
{
    "isSuccessful": true,
    "code": "00",
    "message": "Operation successful"
}
Modified at 2026-11-22 22:28:10
Previous
List payouts
Next
Collection notification
Built with