Close Order
You can use the “Closer Order” API to cancel an open unpaid transaction.
#
End PointPOST /binancepay/openapi/order/close
#
Request ExampleFor full API specification, please go to API Request Reference.
You can either use “merchantTradeNo” or “prepayId” to search for a specific order. Please input at least one of them.
{ "merchantId": 987321472, "subMerchantId": 987321472, "merchantTradeNo": "9825382937292", "prepayId": null}
#
Response ExampleFor full API specification, please go to API Request Reference.
{ "status": "SUCCESS", "code": "000000", "data": true, "errorMessage": null}
#
Refund a OrderYou can monitor the status using the parameter . “Status”.
Status | Description |
---|---|
SUCCESS | The transaction is closed. |
FAIL | The transaction cannot be closed. |
Status
SUCCESS
Description
The transaction is closed.
Status
FAIL
Description
The transaction cannot be closed.