Appearance
VOID
VOID cancels a transaction that has been previously authorized but not captured.
There is a special case for technical failures. A void time window is provided for captured transactions to allow a void request due to technical errors and technical failures. Captured transactions must be voided within the allowed void time window. After the void time window expires for the captured transaction, that transaction cannot be voided and must be refunded.
Successful requests will be indicated with a 2xx HTTP response code and the Approved attribute set to 'true'.
NOTE
It is possible to receive a 2xx HTTP response code and have the Approved attribute set to 'false'.
Void Window
There is a 10 minute void window provided for captured transactions that require voiding due to technical errors.
Voids for captured transactions are denied when initiated after the 10 minute void window. After the void window, void requests receive a response that says the void timeframe has ended. After the void window timeframe ends, captured transactions must be refunded.
NOTE
Uncaptured transactions do not have a void window and may be voided at any time.
Available Functions
Perform a 'void' transaction
POST, /v0/transaction/void
REQUEST Object Attributes
Attribute | Data Type | Description | Required |
---|---|---|---|
TransactionID | ksuid | TransactionID from AUTH response | True |
Reason | string | True | |
Payment Method | object | Transaction Payment Method | True |
Card | object | Card info Card is aKey/Value of the "Payment Method" Object. | True |
ICC | object | See Attributes in Integrated Circuit Card Data Section ICC is aKey/Value of the "Card" Object. | False |
Detail | object | Transaction Details | False |
MerchantData | object | Merchant Defined Transaction Data (supports 1 or more Merchant Defined Keys) MerchantData is aKey/Value of the "Detail" Object. | False |
MerchantDefinedKey1 | string | Merchant - defined transaction data (field 1) MerchantDefinedKey1 is aKey/Value of the "MerchantData" Object. | False |
MerchantDefinedKey2 | string | Merchant - defined transaction data (field 2) MerchantDefinedKey2 is aKey/Value of the "MerchantData" Object. | False |
TransactionEntry | object | (Information about transaction entry) | False |
REQUEST Example
Code Sample using CURL
sh
URL=https://api.qa.paynetworx.net/v0/transaction/void
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
"TransactionID": "1XSnl0X7GC44qPT2CVV8BCz0bQi",
"Reason": "customer-cancellation",
"Detail": {
"MerchantData": {
"OrderNumber": "22-1111",
"CustomerID": "991111",
"VoidReason": "Customer cancelled the transaction"
}
}
}'
RESPONSE Object Attributes
Attribute | Data Type | Description |
---|---|---|
TransactionID | ksuid | Unique transaction lifetime system ID |
EventID | ksuid | Unique transaction event system ID |
RequestID | ksuid | Unique transaction request system ID |
Approved | boolean | Request approval indicator |
RESPONSE Example
JSON Response Object
json
{
"TransactionID": "1XSnl0X7GC44qPT2CVV8BCz0bQi",
"EventID": "1XSnvq7J5ggxZg70sWuRg4kEBcu",
"RequestID": "1XSnzEjZ4IBh5Nj0OEVPTWpwYo8",
"Approved": true
}