Skip to main content

Void


  • Description: Void payment order
  • Path: /direct/void
  • Request Header: Content-Type: application/json

Request Parameters#

ParameterTypeRequiredDescription
merchantIdstringRequiredMerchant identifier
orderIdnumberOptionalOrder identifier
merchantReferencestringOptionalA reference that you provided in Sale order

Example:#

{
"request": "{\"merchantId\":\"3000001\",\"merchantReference\":\"s22tring\",}",
"signature":"c1hTR2RBNHRSNEIwd25GNk5yOFNocGZOTXRISVNXdXpMcGRLb05Xc2tJZ0Njc3BNVkZGemdrZXo0QnJtdFlYa01xWmgxdHl6LzhzTk5VM0YyVlR1MGZPeCtaUDRDbm1Wak51OGJjaXU0aFR0bnl0QTNZMUdaL3lYQVVEK21WWUdYZXlETzNmSHJxRGRJN2szeFYvUThGQ09kMGN1bFRzTjZSUk14TVpxK29xUjJ4K0VqT1hWb2ZwN0JaSndoUUU4VXM0QWw1NzNGUXo1RUhEdkNMeDM1bHEyaG9NaFhMQ1ZMVkRCSGNwQ2dvdHVZNG1nOTFNWGgvcXFjRkdZL2hRS2hHZFdBYlo5dGNwMlE1czJFU2gzN3JxeG5Pd1pycmVwSzhOQzZ2TUJQVWlTUHhRZWZwZXYybkcwSnpBSE9qUlBiQlhZdzFYQlM2UkJZS0FtdWZaWmlRPT0="
}

Response Parameters#

ParameterTypeRequiredDescription
responseCodestringRequiredPayment Gateway response code
messagestringRequiredPayment Gateway response message
orderobjectRequired 
order.idnumberRequiredOrder identifier
order.merchantReferencestringRequiredMerchant identifier which own this order
order.currencystringRequired3-Letters ISO currency code of the order
order.statusstringRequiredStatus of the order. Maintained by the Payment Gateway
order.amountnumberRequiredOrder amount
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

Example:#

{
"responseCode": "0000",
"message": "SUCCESS",
"order":{
"id": "1076",
"merchantReference": "s22tring",
"currency": "HKD",
"amount": 76.19,
"status": "VOIDED"
}
}