> For the complete documentation index, see [llms.txt](https://docs.hotwax.co/documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hotwax.co/documents/learn-shopify/shopify-integration/order-cancellation/partial-order-cancellation.md).

# Partial Order Cancellation

**Partial Cancellations in Shopify and updated in HotWax Commerce**\\

When some items from an order are fulfilled and the rest are canceled, it is called partial cancellation. For partial cancellation, the order status in Shopify does not change, only the last updated date for the order changes. HotWax Commerce Cancels the order through the following steps:

* Import Canceled Order Items- Merchandisers can schedule 'Canceled Items' jobs which send an [API request](https://shopify.dev/docs/api/admin-rest/2023-04/resources/order#get-orders?status=any) to retrieve order information. The job checks the 'updated at' field in Order JSON and compares the time with the job’s last run time. All the orders which are updated after the job’s last run are imported in HotWax Commerce in files of 100 to ensure Shopify’s API limit is not exceeded.
* Processing in HotWax Commerce- When all these orders are imported, HotWax filters out the ones wherein an order item is canceled and marks the items as canceled. The order status is not canceled in HotWax Commerce, only the particular item’s status is canceled from the full order.

{% hint style="info" %}
Recommended time frequency is once an hour but the time interval is configurable through the Job Manager App.
{% endhint %}

<figure><img src="/files/ynGiYZoUk22j2t7Uk4Pg" alt=""><figcaption><p><em>Fig. 2: Cancel order items in HotWax Commerce</em></p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.hotwax.co/documents/learn-shopify/shopify-integration/order-cancellation/partial-order-cancellation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
