- Description: Void the order if the payment method allows
- Path:
/tokenization/void
- Method:
POST
- Request Header:
Content-Type: application/json
Request Parameters
Parameter | Type | Required | Description |
---|
merchantId | string | Required | Merchant identifier |
orderId | number | Conditional | Order ID of the payment. Required when merchantReference is not given |
merchantReference | string | Conditional | Unique reference of the order. Required when orderId is not given |
Example:
{
"request": "{\"merchantId\":3,\"orderId\":5800}",
"signature": "i25WiZAALHUnBEXX7dF2zlPs0XduBD3/qE13nVBn+gk22TScDdZ1rIHnrQ1x0OJ536uRlbANPJBoTcPfjvKUOkaBW3ExY6favEtwF70sfWRpBB79qVBj8OIxO/NdEMjXg37bQcZx47Yty1ChhIowyC3c2GAYwDMSGPCMg+zEzDB1tLh2DdDyxv1tjZs7IzjEbidusvvsp+FvhMKm3YkkN0Nor3AFI73C/l+zc15pmEi9vz2IInIoL70z1RGvRIcxrKVYhP0+K/LWzBonDlR5cLDU3DSZ5rSmdnrBTb7qds2cmSUKmNZ4Wk0rqu/RvsBOIXQV/V/Rwc2mJoL0GMVxWg=="
}
Response Parameters
parameter | type | require | description |
---|
responseCode | string | Required | |
message | string | Required | |
order | object | Required | |
order.id | number | Required | Order identifier |
order.merchantId | number | Required | Merchant identifier which own this order |
order.merchantReference | string | Required | Your reference for the order |
order.currency | string | Required | 3-Letters ISO currency code of the order |
order.amount | number | Required | Order amount |
order.netAmount | number | Required | Net amount of the order |
order.cardType | string | Required | Card type of the order |
order.createTime | datetime | Required | Timestamp when the order is created. Maintained by the Payment Gateway |
order.updateTime | datetime | Required | Timestamp when the order is last updated. Maintained by the Payment Gateway |
order.status | string | Required | Status of the order. Maintained by the Payment Gateway |
order.recurring | boolean | Required | Flags the order is a recurring order or not |
transaction | object | Required | |
transaction.id | number | Required | Transaction identifier for the void transaction |
transaction.merchantId | number | Required | Merchant identifier which own this transaction |
transaction.type | string | Required | Transaction type |
transaction.amount | string | Required | Transaction amount |
transaction.status | string | Required | Status of the transaction. Maintained by the Payment Gateway |
transaction.maskedPan | string | Required | Masked card number of the original sale transaction if supported by the payment method |
transaction.stan | string | Required | System trace audit number for the transaction |
Example:
{
"responseCode": "0000",
"order": {
"id": 5800,
"merchantId": 3,
"merchantReference": "merRef1656991269870",
"currency": "USD",
"amount": 30.00,
"netAmount": 0,
"cardType": "VISA",
"createTime": "2022-07-05T03:21:10.000+00:00",
"updateTime": "2022-07-05T03:21:12.000+00:00",
"status": "VOIDED",
"recurring": true
},
"transaction": {
"id": 3973,
"merchantId": 3,
"type": "SALE_VOID",
"amount": 30.00,
"currency": "USD",
"status": "SUCCESS",
"maskedPan": "470534XXXXXX8101",
"stan": "3971"
}
}