> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/send-inventory-with-the-external-sku-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Send inventory with the External SKU API

Set the available units for a SKU with POST /inventory on the Private API.

`POST /inventory` sets how many units of a SKU Purple Dot treats as available when it exports pre-orders. Shopify and SFCC connections update stock themselves. Use this call for another platform.

## Before you start

* The caller is your server. The private access token must not be in storefront code.
* You can send `X-Purple-Dot-Access-Token`. See [Private API](https://docs.getpurpledot.com/purple-dot-apis/private-api.md).

## Steps

1. Send an absolute count. `available_units` replaces the previous count. Sending the same count again does not add units.

```bash
curl -X POST 'https://www.purpledotprice.com/admin/api/v1/inventory' \
  -H 'X-Purple-Dot-Access-Token: YOUR_PRIVATE_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"sku":"SKU-1","available_units":25}'
```

`updated_at` is optional. It defaults to the time of the request.

2. Repeat the request when the available count changes.

A `201` response echoes `sku` and `available_units`. That means Purple Dot stored the count. If automatic release is on, check the Merchant Portal to see whether an order was released. The response does not say that an order was released.

## Verify

The response body `data.available_units` matches the count you sent. After a stock change, a later request shows the new count.

## Troubleshooting

* A missing token or a missing `sku` or `available_units` returns `400`. An invalid token returns `401`.
* [My integration is not syncing](https://docs.getpurpledot.com/troubleshooting/orders-and-inventory/integration-is-not-syncing.md)

## Related

* **Concept:** [What you need to build](https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/what-you-need-to-build.md)
* **Look up:** [Private API](https://docs.getpurpledot.com/purple-dot-apis/private-api.md)
* **Fix it:** [Inventory is out of sync with my platform](https://docs.getpurpledot.com/troubleshooting/orders-and-inventory/inventory-is-out-of-sync-with-my-platform.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/send-inventory-with-the-external-sku-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
