Check order status
2021-03-23 06:41:13
Type:
POST
URL:
https://api.payotc365.com/pay/inquire/order_status
Request parameter
parameter | type | Required | description | Reference |
sn | string | Yes | Order number in your system | 9621755adecdc83eb69143f73882e380 |
Request example
curl -X POST https://api.payotc365.com/pay/inquire/order_status \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic <Your Basic Auth>' \
-d '{
"sn" : "9621755adecdc83eb69143f73882e380"
}'
Example 200
response
{
"status": "success",
"data": {
"sn": "0d5c79ba1949c69ab738dc9015d1c896",
"orderStatus": "WaitPayment"
}
}
Order status reference
Code | description |
WaitPayment | waiting for payment |
Unconfirmed | Payment not confirmed |
Confirmed | Transaction complete |
Revoked | The order is cancelled |
Expired | The order has expired |
Freeze | Order is frozen |
Example 412
response
{
"status" : "fail",
"code" : 10000,
"message" : "xxxxxxx"
}
This is an error json return, you can find the corresponding error information according to the error code code. Error code reference table