---
title: "Cancel An Order on the NGX"
method: POST
path: "/api/lsx/ng/order/:order_id/cancel"
tags: ["NG Stock Trading"]
---

# Cancel An Order on the NGX

`POST /api/lsx/ng/order/:order_id/cancel`

## Request

- Base URL: `https://powered-by-bamboo-sandbox.investbamboo.com`
- URL: `https://powered-by-bamboo-sandbox.investbamboo.com/api/lsx/ng/order/:order_id/cancel`
- Auth: none declared. Required headers: `content-type`, `accept-language`, `x-user-id`, `x-subject-type`, `x-client-token`

This endpoint is used to cancel an order. Kindly note that only pending orders can be cancelled.

## Path parameters

- `order_id` string, required

## Headers

- `content-type` string, required
- `accept-language` string, required
- `x-user-id` string, required
- `x-subject-type` string, required
- `x-client-token` string, required

## Response `200`

Cancel an order

- LsxngcancelOrdersResponse
  - `message` string, required: Order cancellation message

## Other responses

- `401`: Token have expired or invalid token
- `422`: Error response

---

[API](https://skmtc.dev/investbamboo/apis/investbamboo-bamboo-api.md) - [All operations](https://skmtc.dev/investbamboo/apis/investbamboo-bamboo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/investbamboo/apis/investbamboo-bamboo-api/revisions/063521e8d924?raw)
