Check order status

2021-03-23 14:41:13


Type:

POST

URL:

https://api.modenpay.io/pay/inquire/order_status

Request parameter


parametertypeRequireddescriptionReference
snstringYesOrder number in your system9621755adecdc83eb69143f73882e380

 

Request example


 

curl -X POST https://api.modenpay.io/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


 

Codedescription
WaitPaymentwaiting for payment
UnconfirmedPayment not confirmed
ConfirmedTransaction complete
RevokedThe order is cancelled
ExpiredThe order has expired
FreezeOrder 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