Use this transaction to void a previously submitted transaction.
Endpoint : /void
Void Request
{
"refid":"1234567890",
"siteid":"123456",
"terminalserialnumber":"6789654678",
"txndate":"2023-02-01:16:13:20",
"type":"void"
}
Request field specification
| Field | Format | Description | |
| Required | refid | String (min length: 1) e.g. 1234567890  | 
 The unique identifier of a previous transaction that is being refunded/voided.  | 
| Required | siteid | String (min length: 1) e.g. 1234  | 
 Unique identification code supplied by Trust Payments.  | 
| Required | txndate | String e.g. 2020-03-01:10:20:05  | 
 Unique timestamp for the transaction.  | 
| Required | type | String | 
 You must submit "void", as shown in the request example.  | 
| Optional | terminalserialnumber | String (min length: 1) e.g. 1234567890  | 
 The unique terminal identifier for the PIN Entry Device (PED) supplying the card details. This is the serial number of the PED.  | 
Void Response
{
"refid":"1234567890",
"resultcode":"Approved",
"siteid":"123456"
}
Response field specification
| Field | Format | Description | |
| Returned | refid | String e.g. 1234567890  | 
 The unique identifier of the previous transaction being voided.  | 
| Returned | resultcode | String e.g. Approved  | 
 The result of the transaction from the acquirer. Possible values are: 
  | 
| Returned | siteid | String e.g. 1234  | 
 Unique code to identify the Trust Payments site used to process the request.  | 
| Conditional | error | String e.g. Invalid amount  | 
 The field returns details of an error if a request was not processed successfully. Info on error handling. Only returned if an error has occurred.  | 
| Conditional | errorcode | Integer e.g. 1006  | 
 This code helps you identify the error if a request was not processed successfully. Info on error handling. Only returned if an error has occurred.  |