Void Credit Authorization

Void an existing credit card authorization before capture
post
https://<PayEngine-host>
/api/payment/void

Sample Request / Response

Request
Response

Example Request

{
"id": "a447b0b8-0dbb-4e07-bfc2-c35bba8d71e8",
}

Example Response

{
"data": {
"ID": "5de1f3f1-65c0-4363-9387-c59131e6fb6d",
"MerchantID": "b0ad3bfe-d8b2-4def-9840-6c8f2570d2ce",
"TransactionID": "e236488f-56f7-4c29-8809-5a3e1e663ff5",
"VoidResponse": {
"status": "PASS",
"responseCode": "1",
"responseMessage": "Transaction Void Successful",
"authCode": "224574",
"hostReferenceNumber": "7320666621",
"hostResponseCode": "100",
"taskID": "7320666621",
"transactionID": "7320555621",
"transactionTimestamp": "2022-06-13T17:53:22",
"transactionAmount": "0.01",
"processedAmount": "0.01",
"totalAmount": "0.01",
"addressVerificationCode": "",
"cardHolderVerificationCode": "N",
"cardType": "Mastercard",
"maskedCardNumber": "5xxxxxxxxxxx1344",
"customerReceipt": "<Printable Receipt>",
"merchantReceipt": "<Printable Receipt>"
}
}
}
Webhook event: PAYMENT_VOIDED

Webhook Payload Example

{
event_uid: 'a8a27e7a91559581c5b48e020f9250bd',
event: 'PAYMENT_VOIDED',
data: {
account_id: '5e62f6da-8399-4ca7-a521-3ff27f6d9485',
payment_id: '5de1f3f1-65c0-4363-9387-c59131e6fb6d',
merchant_id: 'b0ad3bfe-d8b2-4def-9840-6c8f2570d2ce',
void_response: {
status: 'PASS',
taskID: '62076827',
authCode: 885680,
cardType: 'V',
responseCode: 'A0000',
voidedAmount: '0.01',
transactionID: '81960579',
customerReceipt: '',
merchantReceipt: '',
responseMessage: 'Success',
hostResponseCode: '00',
maskedCardNumber: '1111',
transactionAmount: '0.01',
hostReferenceNumber: '468581147130',
transactionTimestamp: '2022-06-13T18:19:23'
},
transaction_id: 'e236488f-56f7-4c29-8809-5a3e1e663ff5'
}
}