CANCEL ORDER
This API enables order cancellation for authorized end users through a middleware-based integration.
Only eligible pending orders can be cancelled.
🔗 Path Parameters
| Parameter | Type | Required | Description | Example |
|---|
| exchange | string | Yes | Exchange segment in which the order is placed | "MCX_FO" |
| order_id | string | Yes | Order ID of the order to be cancelled | "NXVZO00086K1" |
🔍 Query Parameters
| Parameter | Type | Required | Description | Example |
|---|
| userId | string | Yes | User ID (UCC) | "{{user_id}}" |
| Header | Type | Description | Example |
|---|
| Content-Type | string | Request payload format | application/json |
| Authorization | string | Access token for authenticated requests | {{access_token}} |
| x-api-key | string | API key used to authorize request | {{x-api-key}} |
🟢 Success Response - 200 OK
Content-Type: application/json
| Field | Type | Description | Example |
|---|
| status | string | Status of API call | "success" |
| code | string | Response code | "s-101" |
| message | string | Order cancellation success message | "Order cancelled successfully" |
| data | object | Order response details | Refer Data Object Fields |
📦 Data Object Fields
| Field | Type | Description | Example |
|---|
| orderId | string | System-generated order identification number | "NXVZO00086K1" |