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 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.