The Void Transaction is used to cancel a prior sale transaction. When a transaction is voided, the authorization for that transaction is released, and it no longer appears on the cardholder's monthly statement. The voided transaction is essentially reversed, and the funds that were initially authorized are not captured or transferred from the cardholder's account.

📘

Void can be performed using the transaction ID and nonce of parent Sale transaction (Auth Only, Auth and Capture, Prior Auth Capture).

Sample Request:

{   
   "type":"5", 
   "nonce":"12345645", 
   "reference_transaction_id":"1032699", 
   "amount":"65.85", 
   "card":{   
      "number":"1111" 
   }
} 
{ 
    "amount":"51.09",
    "method":"CC",
    "type":"5", 
    "nonce":"1683798523", 
    "card":{
        "number":"9407"
           }
}

{ 
    "amount":"11.11",
    "method":"ACH",
    "type":"5", 
    "nonce":"12345645", 
    "reference_transaction_id": "19212159",
    "check":{
        "account_number":"1234"
           }
           
}

Sample Response:

{
  "transaction_response": {
    "result_code": 1,
    "result_sub_code": "000",
    "result_text": "APPROVED",
    "transaction_id": "19209036",
    "transaction_uid": "b42affbc-f59d-44cd-b96a-9453244a2c74",
    "transaction_datetime": "20230511T094612Z",
    "account_type": "VI",
    "account_last_4": "1111",
    "amount": "65.85",
    "approved_amount": "65.85",
    "method": "CC",
    "auth_code": "OK644C",
    "code_result": "",
    "type": "5",
    "expiration_date": "1225",
    "token": "",
    "emv": "",
    "emv_tag_data": "",
    "entry_mode": "02"
  },
  "nonce": "12345645",
  "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": "T",
    "product_id": "K",
    "prepaid_indicator": "P",
    "detailcard_indicator": "M",
    "debitnetwork_indicator": ""
  }
}
{
  "transaction_response": {
    "result_code": 1,
    "result_sub_code": "000",
    "result_text": "APPROVED",
    "transaction_id": "19209038",
    "transaction_uid": "9d26cbab-03e4-4903-9d1a-44dca72a2ad9",
    "transaction_datetime": "20230511T094827Z",
    "account_type": "MC",
    "account_last_4": "9407",
    "amount": "51.09",
    "approved_amount": "51.09",
    "method": "CC",
    "auth_code": "OK6641",
    "avs_result_code": "Y",
    "code_result": "",
    "type": "2",
    "expiration_date": "1023",
    "token": "eb0b0d14f81e4001b64b1c35ee572b03",
    "emv": "",
    "emv_tag_data": "",
    "entry_mode": "01"
  },
  "nonce": "1683798523",
  "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": ""
  }
}
{
  "transaction_response": {
    "result_code": 1,
    "result_sub_code": "000",
    "result_text": "APPROVED",
    "transaction_id": "19212160",
    "transaction_uid": "4a8186f5-ae41-4023-a436-ccea5a1b455d",
    "transaction_datetime": "20230530T114421Z",
    "account_type": "Business Checking",
    "account_last_4": "1234",
    "amount": "11.11",
    "approved_amount": "11.11",
    "method": "ACH",
    "auth_code": "",
    "avs_result_code": "",
    "code_result": "",
    "type": "5",
    "expiration_date": "",
    "token": "",
    "emv": "",
    "emv_tag_data": "",
    "entry_mode": ""
  },
  "nonce": "12345645",
  "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": ""
  }
}

Partial Void

The Partial Void Request is used to void a sale or refund transaction partially. Unlike a full void that cancels the entire transaction, a partial void allows you to void only a portion of the original transaction.

Sample Request:

{ 
    "amount":"10.00",
    "method":"CC",
    "type":"5", 
    "nonce":"12345645", 
    "reference_transaction_id": "19209040",
    "card":{
        "number":"0002"
            }
}

{ 
    "amount":"10.00",
    "method":"CC",
    "type":"5", 
    "nonce":{{$timestamp}}, 
    "reference_transaction_id": "19209040",
    "card":{
        "number":"0002"
            }
}

Sample Response:

{
  "transaction_response": {
    "result_code": 1,
    "result_sub_code": "000",
    "result_text": "APPROVED",
    "transaction_id": "19209040",
    "transaction_uid": "ba25f0bc-926d-485b-b62f-f6eb972b1c67",
    "transaction_datetime": "20230511T095903Z",
    "account_type": "AX",
    "account_last_4": "0002",
    "amount": "10.00",
    "approved_amount": "0.00",
    "method": "CC",
    "auth_code": "OK7861",
    "code_result": "",
    "type": "6",
    "expiration_date": "0425",
    "token": "",
    "emv": "",
    "emv_tag_data": "",
    "entry_mode": "01"
  },
  "nonce": "12345645",
  "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": "X",
    "debitnetwork_indicator": ""
  }
}
{
  "transaction_response": {
    "result_code": 1,
    "result_sub_code": "000",
    "result_text": "APPROVED",
    "transaction_id": "19209083",
    "transaction_uid": "6ea33675-f412-4d14-af1a-392631a50d6e",
    "transaction_datetime": "20230511T100331Z",
    "account_type": "AX",
    "account_last_4": "0002",
    "amount": "10.00",
    "approved_amount": "0.00",
    "method": "CC",
    "auth_code": "OK9541",
    "code_result": "",
    "type": "6",
    "expiration_date": "0425",
    "token": "",
    "emv": "",
    "emv_tag_data": "",
    "entry_mode": "01"
  },
  "nonce": "1683799424",
  "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": "X",
    "debitnetwork_indicator": ""
  }
}