VoidTransaction
Use this procedure to void a transaction that was previously authorized but has not yet been settled. Only unsettled transactions can be voided.
Stored Procedure-Specific Information
To execute this stored procedure, enter:EXEC VoidTransaction RefTransId='1234567890'
Input
| Name | Type | Required | Description |
| RefId | String | False | Merchant-assigned reference ID for the request. If included, this value is returned in the response. |
| TerminalNumber | String | False | The merchant's in-store terminal number. Can identify the cashiers or kiosks used. |
| RefTransId | String | True | The payment gateway assigned identification number of the original transaction to void. |
Result Set Columns
| Name | Type | Description |
| RefId | String | Merchant-assigned reference ID for the request. |
| Code | String | Response code that represents the status. |
| Message | String | Text description of the status. |
| ResponseCode | Integer | Overall status of the transaction. Possible values are 1 = Approved, 2 = Declined, 3 = Error, 4 = Held for Review. |
| AuthCode | String | The authorization or approval code for the transaction. |
| AvsResultCode | String | Address Verification Service (AVS) response code. Indicates the result of the AVS filter. |
| CvvResultCode | String | Card code verification (CCV) response code. |
| CavvResultCode | String | Cardholder authentication verification value (CAVV) response code. |
| TransId | String | The payment gateway assigned identification number for the transaction. Use this value for any follow-on transactions such as a credit, prior authorization and capture, or void. |
| RefTransId | String | The transaction ID of a related, previously settled transaction. |
| TransHash | String | An MD5 hash used to authenticate the response. |
| AccountNumber | String | The masked account number used for the transaction. |
| AccountType | String | The account type used for the transaction. |
| ErrorCode | String | The error code returned when the transaction results in an error. |
| ErrorText | String | The text description of the error. |
| SplitTenderPaymentTransId | String | The transaction ID of a payment in a split tender group. |
| SplitTenderPaymentResponseCode | String | The response code of a payment in a split tender group. |
| SplitTenderPaymentResponseToCustomer | String | The response message presented to the customer for a payment in a split tender group. |
| SplitTenderPaymentAuthCode | String | The authorization code of a payment in a split tender group. |
| SplitTenderPaymentAccountNumber | String | The masked account number of a payment in a split tender group. |
| SplitTenderPaymentAccountType | String | The account type of a payment in a split tender group. |
| SplitTenderPaymentRequestedAmount | String | The requested amount for a payment in a split tender group. |
| SplitTenderPaymentApprovedAmount | String | The approved amount for a payment in a split tender group. |
| SplitTenderPaymentBalanceOnCard | String | The remaining balance on the card for a payment in a split tender group. |
| TransHashSha2 | String | A SHA-256 hash used to authenticate the response. |