> 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/understanding-purple-dot/releasing-and-fulfilling-pre-orders/stock-allocation.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Stock allocation

How Purple Dot assigns arriving stock to waiting pre-orders under First-in, First-out and Fulfillable-first, with worked examples and what each line item shows.

When stock arrives, Purple Dot decides which waiting pre-orders gets that stock by **allocating** units to specific pre-order line items. How the pre-orders are selected depends on your store's allocation method. **First-in, First-out** serves line items one by one by promised ship date. **Fulfillable-first** serves whole shipments, oldest first, and only when it can complete them.

## What allocation does

Allocation reserves units of arriving stock for specific line items. It doesn't ship anything. Releasing is a separate step: with automation on, allocation releases the line items it reserves stock for, and without it you release the waitlist yourself. See [Releasing and fulfilling pre-orders](https://docs.getpurpledot.com/understanding-purple-dot/releasing-and-fulfilling-pre-orders.md).

A pass runs when the stock level of a variant changes. It considers the variants that changed, and the stock of every other variant in a particular [Shipment](https://docs.getpurpledot.com/understanding-purple-dot/glossary.md#shipment), and determines whether or not to allocate to that particular pre-order.

## First-in, First-out

First-in, First-out is the default. It works through line items in order of promised ship date, earliest first. A line item without a date uses the date its order was placed. When two line items tie, the older order goes first. A shipment's line items are served together rather than mixed with other orders'.

Each line item takes whatever stock exists, even if that's fewer units than it needs. First-in, First-out never holds stock back on purpose. A line item gets nothing only when nothing is left.

This keeps ship-date promises, but a shipment can hold stock it can't use. If an order needs two shirts and a hat, and only shirts have arrived, it holds the shirts while it waits for the hat. Another order that needs one shirt can wait behind it, even though it could ship now.

## Fulfillable-first

Fulfillable-first works through shipments, oldest order first. It ignores promised ship dates. For each shipment it asks one question: is there enough stock to complete every line item that still needs stock?

* **Yes:** the shipment takes all of it, and its line items are allocated together.
* **No:** Purple Dot passes the shipment over and reserves nothing for it. The stock it could have taken stays free for the next shipment.

It never gives a shipment part of what it needs. A unit handed to an order that still can't ship would block a later order that could. Fulfillable-first also doesn't look ahead. It serves the oldest shipment it can complete, even if skipping it would let two newer shipments complete instead.

The storefront doesn't resell stock that was passed over. Purple Dot subtracts it from the availability it offers, because an older order is first in line for it.

Fulfillable-first is available on request. See the [Automation rules reference](https://docs.getpurpledot.com/managing-pre-orders/fulfillment-and-inventory/automation-rules-reference.md).

## Example: a shipment that's missing an item

Three orders wait, placed in the order A, B, C. Three shirts arrive in week 1, then a hat and two more shirts in week 2.

* **A** needs 2 shirts, promised for week 1, and 1 hat, promised for week 2.
* **B** needs 2 shirts, promised for week 2.
* **C** needs 1 shirt, promised for week 1.

Under First-in, First-out, A's and C's shirts are due first, so they take all three shirts. A holds two shirts it can't ship until the hat arrives, B waits, and only C ships in week 1.

<div data-full-width="true"><figure><picture><source srcset="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-cc56e769e441fa88f1b90541fd43274544866cce%2Fallocation-fifo-who-ships-first-dark.svg?alt=media" media="(prefers-color-scheme: dark)"><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-3392e6d876b951949ab2165a519af7fbab8d6226%2Fallocation-fifo-who-ships-first.svg?alt=media" alt="Animated: under First-in, First-out, A holds two of the three week 1 shirts while it waits for a hat, so only C ships in week 1"></picture><figcaption></figcaption></figure></div>

Under Fulfillable-first, A can't be completed without a hat, so it's passed over and the shirts stay free. B and C take them and ship in week 1, and A ships in week 2 when the hat arrives.

<div data-full-width="true"><figure><picture><source srcset="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-107395797beae164401362ca0261ffb639d5b333%2Fallocation-fulfillable-first-who-ships-first-dark.svg?alt=media" media="(prefers-color-scheme: dark)"><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-ccb082f2d582da25f82dafd02ea05493525400fd%2Fallocation-fulfillable-first-who-ships-first.svg?alt=media" alt="Animated: under Fulfillable-first, A is passed over in week 1, so B and C ship in week 1 and A ships in week 2"></picture><figcaption></figcaption></figure></div>

A ships in week 2 either way. Fulfillable-first ships B in week 1 instead of week 2, because A's shirts aren't held while it waits for the hat.

## Example: ship dates

Order A was placed first and promised for week 2. Order B was placed later and promised for week 4. A needs a shirt and a hat, and B needs a shirt. One shirt arrives in week 1, the hat in week 2, and a second shirt in week 4.

* **First-in, First-out:** A takes the first shirt, because its promise is earliest. The hat completes A in week 2. The second shirt completes B in week 4. Both orders ship as promised.
* **Fulfillable-first:** A can't be completed in week 1 because it has no hat, so it's passed over. B takes the first shirt and ships in week 1. When the hat arrives in week 2, the only free shirt is gone, so A waits for the second shirt and ships in week 4, two weeks late.

<div data-full-width="true"><figure><picture><source srcset="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-b7e0d949a4f5e170d2a8eec703ce56170f0faa9e%2Fallocation-ship-date-promises-dark.svg?alt=media" media="(prefers-color-scheme: dark)"><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-33710ec0534bbfccb2cbd24a3bcb00b8dc2fd65e%2Fallocation-ship-date-promises.svg?alt=media" alt="Animated comparison: First-in, First-out gives the first shirt to order A, which ships in week 2, and B ships in week 4 as promised; Fulfillable-first gives the first shirt to order B, so A ships in week 4, two weeks late"></picture><figcaption></figcaption></figure></div>

Choose Fulfillable-first when shipping as many complete orders as early as possible matters more than keeping each order's promised date.

## What each line item shows

The Merchant Portal shows a status on each line item. See [Pre-order and fulfillment statuses](https://docs.getpurpledot.com/managing-pre-orders/pre-orders-and-orders/pre-order-statuses.md#line-and-shipment-states).

* **Open:** the line item is waiting, with no stock allocated.
* **Stock available** `Fulfillable-first`: the line item has no stock allocated, but its variant has free stock that covers it. Purple Dot passed over its shipment because the shipment couldn't be completed, or an older shipment has first claim on the stock. Nothing is reserved yet.
* **Ready to fulfill:** stock is allocated and the line item is released, but its shipment hasn't gone to your platform. This includes line items you release yourself when automation is off.
* **Released** `Native checkout` or **Exported** `Purple Dot checkout`: the shipment is with your platform.

The check looks at each line item on its own, so two line items can both show **Stock available** for the same free units.

First-in, First-out never shows **Stock available**, because it allocates stock to line items instead of passing them over.

## Changing the allocation method

When you switch methods, Purple Dot takes back the allocated stock on every shipment that hasn't been sent to your platform, then allocates again under the new method. Stock that Fulfillable-first was holding back becomes available to allocate straight away. Shipments already on their way to your platform keep their stock.

## Related

* **Concept:** [Releasing and fulfilling pre-orders](https://docs.getpurpledot.com/understanding-purple-dot/releasing-and-fulfilling-pre-orders.md), [Inventory and virtual locations](https://docs.getpurpledot.com/understanding-purple-dot/inventory-and-virtual-locations.md), [Glossary](https://docs.getpurpledot.com/understanding-purple-dot/glossary.md#allocation)
* **Do this:** [Set up automated exports](https://docs.getpurpledot.com/managing-pre-orders/fulfillment-and-inventory/set-up-automated-exports.md), [Export pre-orders manually](https://docs.getpurpledot.com/managing-pre-orders/fulfillment-and-inventory/export-pre-orders-manually.md)
* **Look up:** [Automation rules reference](https://docs.getpurpledot.com/managing-pre-orders/fulfillment-and-inventory/automation-rules-reference.md), [Pre-order and fulfillment statuses](https://docs.getpurpledot.com/managing-pre-orders/pre-orders-and-orders/pre-order-statuses.md)
* **Fix it:** [A pre-order is stuck in a status](https://docs.getpurpledot.com/troubleshooting/orders-and-inventory/pre-order-is-stuck-in-a-status.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/understanding-purple-dot/releasing-and-fulfilling-pre-orders/stock-allocation.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.
