# Cancel Bag

{% hint style="warning" %}
Bag cancellation is in beta. Please report any errors to Violet.
{% endhint %}

Cancel a single `Bag` from an `Order`. This action will attempt to cancel the external order in the merchants system. The total amount paid for this `Bag` will be refunded to the shopper upon successful cancellation.

{% hint style="info" %}
The `Bag` must be in a cancellable state. Any `Bag`'s that have a status of `IN_PROGRESS`, `REFUNDED`, or `CANCELED` cannot be cancelled.
{% endhint %}

{% openapi src="/files/6wHrOR6auqy1RgLt3CZI" path="/orders/{order\_id}/bags/{bag\_id}/cancel" method="post" expanded="true" %}
[order-service.yaml](https://3937396275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8lXIp71Ct5qCUhXjko2q%2Fuploads%2Fgit-blob-b77a2b241ffb937bc7e7164b2dd2c53cb538ac3c%2Forder-service.yaml?alt=media)
{% endopenapi %}


---

# 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://docs.violet.io/api-reference/orders-and-checkout/order-cancellations/cancel-bag.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.
