Skip to main content

VirtualPay CallBack

This API will be triggered to notify merchants in real-time whenever a transaction occurs on a virtual account


Callback API Specification

Sandbox Icon

API ARCHITECTURE: REST

Sandbox Icon

API Method: POST

Sandbox Icon

Endpoint: To be provided by client

Request Parameter

Parameter NameTypeDescription
customer_idstringThe unique identifier of the customer initiating the transaction.
virtual_account_nostringThe virtual account number involved in the transaction.
virtual_account_namestringThe name associated with the virtual account.
transaction_amountstringThe total amount involved in the transaction.
transaction_feestringFee charged for the transaction
transaction_referencestringA unique identifier for the transaction.
bo_referencenostringA reference number provided by the back office.
source_accountstringThe originating account number for the transaction.
source_account_namestringThe name associated with the source account.
source_bankstringThe bank name of the source account.
source_bank_codestringThe bank code of the source account's bank.
narrationstringA description or purpose of the transaction.
session_idstringSwitch session ID for the transaction.
transaction_datestringThe date of the transaction.
tran_response_codestringCode indicating the transaction response (e.g., "00" for success).
tran_response_messagestringA message providing information about the transaction's status.
channel_codestringAn identifier for the transaction channel, such as "VIRTUALPAY".
payment_statusstringThe status of the payment, indicating if the complete amount was paid ("Complete") or if there was an "Amount Mismatch" (for retail transactions).

SAMPLE REQUEST

{
"customer_id": "08123456789",
"virtual_account_no": "1578000000",
"virtual_account_name": "JOHN DOE",
"transaction_amount": "1500",
"transaction_fee": "0.84",
"transaction_reference": "VPAYTO1287139954",
"bo_referenceno": "099MJKL212640002",
"source_account": "0760261888",
"source_account_name": "RICE DUMO",
"source_bank": "Access Bank",
"source_bank_code": "044",
"narration": "TESTING",
"transaction_date": "06-07-2022",
"session_id": "100004241002184852120107569806",
"tran_response_code": "00",
"tran_response_message": "Successful Request",
"channel_code": "VIRTUALPAY",
"transaction_type": "static",
"payment_status": "Complete" // Values can be "Complete" or "Amount Mismatch"
}

SAMPLE RESPONSES

{
"response_code": "00",
"response_message": "Successful Request"
}
{
"response_code": "99",
"response_message": "Failed Request"
}
{
"response_code": "98",
"response_message": "Duplicate Transaction"
}