Void Transaction

Info

Void cancels a transaction that has NOT been settled yet. If the transaction is already settled, please please refer to Refund. Unlike Refund, after voiding a transaction there is neither record of the initial charge nor the void on the cardholder's statement.

Endpoint

https://ccapi.iotpaycloud.com/v3/cc_void

Method

POST

Content-Type: application/json;charset=UTF-8

Request
namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
mchRefundNoyString(30)R1234567890abcassigned by merchant
loginNameyString(12)jack_chenassigned by merchant,equals to jobNo
payOrderIdyString(30)
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm
Response
namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, order detailed info returned
retData contains order information:
namerequiredtypesampledescription
payOrderIdyStringRP20240101215009579871439079generated by IOTPay
mchIdyString10000701assigned by IOTPay
mchOrderNoyStringR1234567890abcrepresents the mchRefundNo assigned by merchant
originalOrderIdyStringPC20240101215009579871439079original pay order id for refund
currencyyStringCADonly 'CAD' supported
amountyInt1500in cents
payTypeyStringrefundfixed to refund for successful void transaction
refundableyInt0order that has been voided cannot be refunded further
statusyInt0,1,2,90 = pending order, 1 = unknown, 2 = success, 9 = fail
paySuccTimeyString2021-04-07 19:44:51time stamp for the moment when the payment succeeded
cardNumyString432567******2266card number of the card used for the transaction
expiryDateyString0725expiry date of the card used for the transaction
invoiceNumyString
authNumyString
transNumyString
channelyStringPF_CCPF_CC or UPI_EX
Last Updated: