Query Order
Query order API used for merchant/partner to query order status
EndPoint
POST /binancepay/openapi/v2/order/query
Request Parameters
Attributes | Type | Required | Limitation | Description |
---|---|---|---|---|
prepayId | string | N | letter or digit, no other symbol allowed, can not be empty if merchantTradeNo is empty | Binance unique order id |
merchantTradeNo | string | N | letter or digit, no other symbol allowed, can not be empty if prepayId is empty | The order id, Unique identifier for the request. Will be ignored if prepayId already provided |
Sample Request Body
Query order result by merchantTradeNo:
{
"merchantTradeNo": "9825382937292"
}
Query order result by prepayId:
{
"prepayId": "9825382937292"
}
Response Parameters
Attributes | Type | Required | Limitation | Description |
---|---|---|---|---|
status | string | Y | "SUCCESS" or "FAIL" | status of the API request |
code | string | Y | - | request result code, refer to |
data | QueryOrderResult | N | - | response body, refer to |
errorMessage | string | Y | - |