Skip to main content

Cancel Order

The Cancel order API lets you cancel a pending order.

🛣️Path Parameters

FieldsTypeRequiredDescriptionExample/Enum
ExachangestringYesExchange segmentsNSE EQ
order_idstringYesOrder ID is in URL encode formNWSYF00005>3

🟢Success Response - 200 Ok

FieldsTypeDescriptionExample/Enum
statusstringIndicates the result of API Call"success"
codestringResponse code corresponding to the request"s-101"
messagestringDescriptive message for the response"Success Message"

🔴 Error Response - 400 Bad Request

FieldTypeDescriptionExample
statusstringStatus of the API call Default Error"error"
codestringError code indicating the failure"e-101"
messagestringSpecific message explaining the reason for failed request."Error Message"

Notes 💬

  • Use URL encoding for order_id if it contains special characters (e.g., > becomes %3E).
  • Only pending orders can be cancelled.
  • Validity and validity_days are only required for parent order cancellations.
delete/transactional/v1/orders/regular/{exchange}/{order_id}