---
title: "Modify order"
method: PUT
path: "/globalstocks/orders/{order-id}"
tags: ["Global Stocks"]
---

# Modify order

`PUT /globalstocks/orders/{order-id}`

Modify an existing order.

## Path parameters

- `order-id` string, required

## Headers

- `access-token` string, required

## Request body

- InxModifyRequest
  - `dhanClientId` string — User specific identification generated by Dhan
  - `orderType` 'MARKET' | 'LIMIT' | 'STOP_LOSS' | 'STOP_LOSS_MARKET' | 'AMOUNT', required — Order type - MARKET, LIMIT, STOP_LOSS, STOP_LOSS_MARKET
  - `transactionType` 'BUY' | 'SELL', required — Transaction type - BUY or SELL
  - `securityId` string, required — Exchange standard identification for each scrip
  - `quantity` number, float — Number of shares for the order
  - `price` number, float — Price at which order is placed
  - `legName` 'ENTRY_LEG' | 'STOP_LOSS_LEG' | 'TARGET_LEG' | 'NA' | 'ENTRY_LEG' | 'STOP_LOSS_LEG' | 'TARGET_LEG' — Leg name - ENTRY_LEG, STOP_LOSS_LEG, TARGET_LEG

## Response `200`

Successful operation

- OrderStatusResponse
  - `orderId` string — Order specific identification generated by Dhan
  - `orderStatus` 'TRANSIT' | 'PENDING' | 'REJECTED' | 'CANCELLED' | 'PART_TRADED' | 'TRADED' | 'EXPIRED' | 'MODIFIED' | 'TRIGGERED' | 'INACTIVE' — | **Enum Values** | **Description** | |-----------------|---------------------------------------------| | TRANSIT | Did not reach the exchange server | | PENDING | Reached at exchange end, awaiting execution | | REJECTED | Rejected at exchange/broker’s end | | CANCELLED | Cancelled by user | | PART_TRADED | Partially Executed | | TRADED | Executed | | EXPIRED | Validity of order is expired |

---

[API](https://skmtc.dev/dhan/apis/dhanhq-api.md) · [All operations](https://skmtc.dev/dhan/apis/dhanhq-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dhan/dhanhq-api/revisions/2d368b9ed32d/schema)
