Query Transaction API
Retrieve the payment transaction process status by order id
Last updated
Retrieve the payment transaction process status by order id
Last updated
Data Example(JSON Data,to be encrypted):
Response Example(JSON Data):
Data Example(JSON Data, after decrypted):
Params Name
Description
Required
Notes
action
Action name (Constant Value)
Y
"STATUS_QUERY"
version
Version number
Y
"1.0"
merchant_id
Merchant ID
Y
Provided by OTT Pay
data
Encrypted Transaction Data
Y
See "Data" table below
md5
Message Digest
Y
Params Name
Description
Required
Notes
order_id
Order ID
Y
OrderID could be generated by client's code, or generated by OTTPay as default
Params Name
Description
Required
Notes
rsp_code
Response code
Y
refer to Appendix B
rsp_msg
Response message
Y
data
Encrypted Data
Y
See "Data" table below
md5
Message Digest
Y
Params Name
Description
Required
Notes
order_status
Order status
Y
trade_time
Transaction time
N
order_id
Order ID
Y
payNo
Transaction reference code, same as bizpay_order_id
Y
e.g.WX31882313410964473
buyer_login_id
Buyer ID
N
total_amount
Order total amount
N
Number, 100 for 100 dollar
receive_amount
Merchant receive amount
N
Number, 100 for 100 dollar
pay_amount
User pay amount
N
Number, 100 for 100 dollar
tip
Tip Amount
N
Number, 100 for 100 dollar
refund_fee
Refund fee
N
Only exist for a refunded order