Query Transaction

To check the status of an order

Info

After you receive access credentials (merchant id, login name, merchant key). You can step through the demo Query Orderopen in new window which may help you when going through the documentation.

Endpoint

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

Method

POST

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

Request
namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
mchOrderNoyString(30)1234567890abcassigned by merchant
payOrderIdyString(30)PC20240101231256043886634219generated by IOTPay
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

Note

Only one of mchOrderNo and payOrderId is need for querying.

Response
namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, order detailed info returned
retData contains order information:
namerequiredtypesampledescription
payOrderIdyStringPC20240101231256043886634219generated by IOTPay
mchIdyString10000701assigned by IOTPay
mchOrderNoyString604567999assigned by merchant
originalOrderIdnStringoriginal pay order id for refund
currencyyStringCADonly 'CAD' supported
amountyInt1500in cents
payTypeyStringpay or refund
refundableyInt1500amount that can be refunded from this order in cents
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 purchase
expiryDateyString0725expiry date of the card used for the purchase
invoiceNumyString
authNumyString
transNumyString
channelyStringPF_CCPF_CC or UPI_EX
Last Updated: