# Cancel Orders

This documentation guides you through the process of canceling a one or more `pending` order within the Fincart platform. By specifying the order ID, merchants can update the order status to canceled.

## Get Order Status

<mark style="color:yellow;">`POST`</mark> `/v4/orders/cancel`

This endpoint allows you to change  order status to canceled.&#x20;

<details>

<summary>Base URL</summary>

[https://api.fincart.io](https://api.fincart.io/)

</details>

**Headers**

| Name          | Value                                                                             |
| ------------- | --------------------------------------------------------------------------------- |
| Content-Type  | `application/json`                                                                |
| Authorization | [<mark style="color:blue;">`<token>`</mark>](/fincart-api/access/access-token.md) |

**Body**

```json
{
  "filters": {
    "ids": ["<order_id_1>", "<order_id_2>", "..."]
  }
}
```

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "statusCode": 200,
    "message": "Bulk Orders cancelled successfully",
    "data": {
        "status": "success",
        "msg": "Orders have been successfully canceled."
    }
}
```

{% endtab %}

{% tab title="403" %}

```json
{
    "statusCode": 403,
    "timestamp": "2025-07-16T15:29:54.151Z",
    "path": "/v4/orders/cancel",
    "message": "User is not authorized",
    "errors": [
        "User is not authorized"
    ]
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fincart.gitbook.io/fincart-api/apis/cancel-orders.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
