Cancel All Orders
This API cancels either speific orders (by passing order IDs) or all open orders (by setting a flag)
| Fields | Type | Required | Description | Example |
|---|
| Authorization | string | yes | Bearer token for authentication | access_token |
| Content_type | string | yes | MIME Type | application/JSON |
| x-api-key | string | Yes | API key provided by bearer | x-api-key |
📦Request Body Schema: application/json
| Fields | Type | Required | Description | Example/ENUM |
|---|
| orders | array of string | Optional | List of order Ids with Exchange segments to cancel specific orders. Format: <exchange>_<orderId> | [ "NSE_EQ" , "NXWA00026L3" ] |
| flag | boolean | Yes | Flag to cancel all orders if true; if false, cancel only orders in ordersarray. | true |
🟢Responses - 200 K
| Fields | Type | Description | Example |
|---|
| status | string | API call status | "success" |
| code | string | Internal response | "s-101" |
| message | string | Result message | "Order cancelled." |
| data | array of objects | Array containing cancellation status of each order | See table below |
📘Data array object
| Fields | Type | Description | Example/ENUM |
|---|
| status | string | Order cancellation status | "true" |
| message | string | success message | "Order cancellation send to OMS" |
| order_id | string | System generated order identification number | "NXWA000987" |