Skip to main content

Close Order

You can use the “Closer Order” API to cancel an open unpaid transaction.

By default an order will expire in an hour upon creation. This expiry time can also be customized by you, just set the orderExpireTime accordingly in milliseconds when calling the Create Order API.

This API allows you to manual expiry and close the active order

End Point#
POST   /binancepay/openapi/order/close
Request Example#

For 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 Example#

For full API specification, please go to API Request Reference.

{  "status": "SUCCESS",  "code": "000000",  "data": true,  "errorMessage": null}
Refund a Order#

You can monitor the status using the parameter . “Status”.

StatusDescription
SUCCESSThe transaction is closed.
FAILThe transaction cannot be closed.
Status
SUCCESS
Description
The transaction is closed.
Status
FAIL
Description
The transaction cannot be closed.