Skip to main content

Cancel Order V3 Beta

This is an enhanced version of the Cancel Order API which includes latency information in the meta object of the response, providing insight into the time Upstox took to process your request.


Header Parameters

NameRequiredTypeDescription
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

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

Response Body

{
"status": "success",
"data": {
"order_id": "1644490272000"
},
"metadata": {
"latency": 30
}
}
NameTypeDescription
statusstringA string indicating the outcome of the request. Typically success for successful operations.
dataobjectResponse data for Cancel order request
data.order_idstringReference order ID
metadataobjectOrder metadata associated with successful cancelled order.
metadata.latencyintegerThe overall time taken by API platform to process the order cancellation request, measured in milliseconds.

Examples

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.

Loading...