Skip to main content

Void


  • Description: Void the order if the payment method allows
  • Path: /tokenization/void
  • Method: POST
  • Request Header: Content-Type: application/json

Request Parameters

ParameterTypeRequiredDescription
merchantIdstringRequiredMerchant identifier
orderIdnumberConditionalOrder ID of the payment. Required when merchantReference is not given
merchantReferencestringConditionalUnique 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

parametertyperequiredescription
responseCodestringRequired
messagestringRequired
orderobjectRequired 
order.idnumberRequiredOrder identifier
order.merchantIdnumberRequiredMerchant identifier which own this order
order.merchantReferencestringRequiredYour reference for the order
order.currencystringRequired3-Letters ISO currency code of the order
order.amountnumberRequiredOrder amount
order.netAmountnumberRequiredNet amount of the order
order.cardTypestringRequiredCard type of the order
order.createTimedatetimeRequiredTimestamp when the order is created. Maintained by the Payment Gateway
order.updateTimedatetimeRequiredTimestamp when the order is last updated. Maintained by the Payment Gateway
order.statusstringRequiredStatus of the order. Maintained by the Payment Gateway
order.recurringbooleanRequiredFlags the order is a recurring order or not
transactionobjectRequired 
transaction.idnumberRequiredTransaction identifier for the void transaction
transaction.merchantIdnumberRequiredMerchant identifier which own this transaction
transaction.typestringRequiredTransaction type
transaction.amountstringRequiredTransaction amount
transaction.statusstringRequiredStatus of the transaction. Maintained by the Payment Gateway
transaction.maskedPanstringRequiredMasked card number of the original sale transaction if supported by the payment method
transaction.stanstringRequiredSystem 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"
  }
}