# Inventory Sync

**Scenario:** Inventory Not Synced from HotWax Commerce to Shopify

Sometimes retailers may encounter inventory disparities between HotWax Commerce and Shopify Inventory. For instance, inventory may appear out of stock in Shopify despite being available in HotWax Commerce.

## Steps to Troubleshoot

### Verify in HotWax Commerce

1. **Check Job Status:**
   * Navigate to the `HotWax Commerce Job Manager App`.
   * Locate the job named `Upload recent inventory change`. This job is responsible for updating all inventory changes in Shopify that have occurred in HotWax Commerce since the last time the job ran. If any inventory changes have been made after the last job execution, it is essential to run this job to ensure synchronization.
   * Ensure that the job is running. If not scheduled, schedule the job according to your preferred frequency.
   * You can also execute the `Hard Sync` job in HotWax Commerce. This job updates inventory for all the products irrespective of the inventory changes, eliminating any discrepancy between HotWax Commerce and Shopify. If inventory changes occurred before the completion of the last `Upload recent inventory change` job, execute the `Hard Sync` job.

{% tabs %}
{% tab title="Hard Sync" %}

<figure><img src="/files/wr7hofmrJBCmfKmhqhRt" alt="" width="375"><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Upload recent inventory change" %}

<figure><img src="/files/51ToTnM4rveKSu3QL9Oc" alt="" width="375"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

1. **Inspect Inventory Configurations:**

Retailers can set rules such as safety stocks, thresholds, and exclude facilities to prevent overselling on Shopify. Follow these steps to verify the online ATP of the inventory that is being synchronized between HotWax Commerce and Shopify:

* In HotWax Commerce, Go to `Products` > `Find Products` > `Product Detail page` > `Product Inventory View` page.
* Check inventory configurations, including safety stocks, thresholds, reserved inventory, and excluded facilities.
* Verify the `online ATP` of products on the inventory dashboard and make sure that the `online ATP` inventory count matches with the inventory in Shopify.

### Verify in Shopify

1. **Check Online ATP in Inventory Dashboard:**
   * Navigate to Shopify Admin Panel.
   * Go to `Products` > `Product detail` page.
   * Click on the variant of the product that requires inventory verification.
2. **Verify Inventory Adjustment History:**
   * Within the variant's `inventory` section, click on the `adjustment history` button.
   * Examine historical inventory adjustments. Ensure they reflect recent changes.
   * If historical changes display outdated records or no inventory records, proceed to the HotWax Commerce Job Manager App. If inventory changes occurred after the last execution of the Upload recent inventory change job, run the Upload recent inventory change job. Alternatively, if the changes happened before the completion of the last Upload recent inventory change job, execute the Hard Sync job.
   * Wait for a few minutes and revisit the inventory history on Shopify.
3. If the inventory is still not updated, and discrepancies persist, contact the HotWax Commerce support team for assistance.


---

# 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.hotwax.co/documents/learn-shopify/synchronization-flows/troubleshooting/inventory.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.
