Refund Transaction

Info

Restores all or part of the funds from an settled transaction to the cardholder's card. If the transaction is not yet settled, please please refer to Void. Unlike Void, after a Refund there is a record of both the initial charge and the refund on the cardholder's statement.

Endpoint

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

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
refundAmountyInt100in cents
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
amountyInt100in cents
payTypeyStringrefundfixed to refund for successful refund transaction
refundableyInt0refund order cannot be refunded further (original order can still be refunded if funds are still available)
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: