Void a Transaction
The Void Transaction cancels a prior sale transaction. Once the transaction is voided, the authorization falls off the cardholder’s card and does not appear on their monthly statement.
Full Void
Example Request:
{
"type":"5",
"nonce":{{$timestamp}},
"reference_transaction_id":"1032699",
"amount":"12.12",
"card":{
"number":"1111"
}
}
Example Response:
{
"transaction_response": {
"result_code": 1,
"result_sub_code": "000",
"result_text": "APPROVAL",
"transaction_id": "1038540",
"transaction_uid": "2673b521-a796-4788-9f1d-d484c1e0f9c9",
"transaction_datetime": "20200921T101113Z",
"account_type": "VI",
"account_last_4": "1111",
"amount": "12.12",
"approved_amount": "12.12",
"method": "CC",
"auth_code": "OK5834",
"code_result": "",
"type": "5",
"expiration_date": "0421",
"token": "",
"emv": "",
"emv_tag_data": "",
"entry_mode": ""
},
"nonce": "1600683069",
"test": "0",
"customer": {
"first_name": "",
"last_name": "",
"street_1": "",
"street_2": "",
"city": "",
"state": "",
"zip": "",
"country": "",
"phone_number": "",
"company": "",
"customer_id": "",
"email": "",
"email_receipt": "",
"notes": "",
"action_code": ""
},
"card_info": {
"card_class": "",
"product_id": "",
"prepaid_indicator": "",
"detailcard_indicator": "",
"debitnetwork_indicator": ""
}
}
Only those transactions which have not been settled by bank yet can be voided.
Partial Void
Example Request:
{
"type":"5",
"nonce":{{$timestamp}},
"reference_transaction_id":"1038514",
"amount":"10.09",
"card":{
"number":"1111"
}
}
Example Response:
{
"transaction_response": {
"result_code": 1,
"result_sub_code": "000",
"result_text": "APPROVAL",
"transaction_id": "1038514",
"transaction_uid": "2e60b519-0c58-45f5-9322-0c2fc1c23d6b",
"transaction_datetime": "20200921T101736Z",
"account_type": "VI",
"account_last_4": "1111",
"amount": "10.09",
"approved_amount": "10.09",
"method": "CC",
"auth_code": "OK0103",
"code_result": "",
"type": "6",
"expiration_date": "0221",
"token": "",
"emv": "",
"emv_tag_data": "",
"entry_mode": ""
},
"nonce": "1600683454",
"test": "0",
"customer": {
"first_name": "",
"last_name": "",
"street_1": "",
"street_2": "",
"city": "",
"state": "",
"zip": "",
"country": "",
"phone_number": "",
"company": "",
"customer_id": "",
"email": "",
"email_receipt": "",
"notes": "",
"action_code": ""
},
"card_info": {
"card_class": "",
"product_id": "",
"prepaid_indicator": "",
"detailcard_indicator": "",
"debitnetwork_indicator": ""
}
}