Skip to main content

Cancel Order

API to cancel an open or pending which can be applied to both After Market Orders (AMO) and regular orders. It may also serve to exit a Cover Order (CO).

Header Parameters

AuthorizationtruestringRequires the format Bearer access_token where access_token is obtained from the Token API.
AccepttruestringDefines the content format the client expects, which should be set to application/json.

Query Parameters

order_idtruestringThe order ID for which the order must be cancelled. For the regex pattern applicable to this field, see the Field Pattern Appendix.

Response Body

"status": "success",
"data": {
"order_id": "1644490272000"
statusstringA string indicating the outcome of the request. Typically success for successful operations.
dataobjectResponse data for Cancel order request
data.order_idstringReference order ID


A comprehensive set of examples is provided to illustrate various use cases and implementation scenarios for this API. To view detailed examples and access sample code, please refer to: API Examples.