Skip to content

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

voidTable
AttributeData TypeDescriptionRequired
TransactionIDksuid

TransactionID from AUTH response

True
Reasonstring

Reason for Void

True
Payment Methodobject

Transaction Payment Method

True
Cardobject

Card info


Card is aKey/Value of the "Payment Method" Object.

True
ICCobject

See Attributes in Integrated Circuit Card Data Section


ICC is aKey/Value of the "Card" Object.

False
Detailobject

Transaction Details

False
MerchantDataobject

Merchant Defined Transaction Data

(supports 1 or more Merchant Defined Keys)


MerchantData is aKey/Value of the "Detail" Object.

False
MerchantDefinedKey1string

Merchant - defined transaction data

(field 1)


MerchantDefinedKey1 is aKey/Value of the "MerchantData" Object.

False
MerchantDefinedKey2string

Merchant - defined transaction data

(field 2)


MerchantDefinedKey2 is aKey/Value of the "MerchantData" Object.

False
TransactionEntryobject

See Transaction Entry Section

(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

defaultResponseTable
AttributeData TypeDescription
TransactionIDksuid

Unique transaction lifetime system ID

EventIDksuid

Unique transaction event system ID

RequestIDksuid

Unique transaction request system ID

Approvedboolean

Request approval indicator

RESPONSE Example

JSON Response Object
json
{
    "TransactionID": "1XSnl0X7GC44qPT2CVV8BCz0bQi",
    "EventID": "1XSnvq7J5ggxZg70sWuRg4kEBcu",
    "RequestID": "1XSnzEjZ4IBh5Nj0OEVPTWpwYo8",
    "Approved": true
}