Get Replenishment Index Status
Returns the publication lifecycle of the Warehouse’s Replenishment Index. From API version
2026-08 this is the normalized publication summary — status of building, catching_up,
fresh, or failed, the requested/building/built revisions, the dirty and poison backlog with
its age, the last rotating reconciliation sample-pass time, and the sanitized error with its support request
ID. The same operations snapshot backs the report collection meta, so the two never disagree.
Poll this endpoint until status is fresh, then read the published report at
/v1/inventory/warehouses/{id}/replenishment-report — its meta.built_revision carries the
same revision. catching_up means published rows are readable but incremental recomputation
is still draining (or, immediately after a deployment introducing the lane-keyed index, that
the promoted snapshot is not serving yet).
Requests pinned to version 2025-07 keep the previous generation vocabulary and lifecycle
fields; poll generation_current = true with status = idle there. Before the lane-keyed
index is promoted, legacy rows are frozen and generation_current remains false, so clients
must wait for cutover rather than treating the shadow build state as legacy-row freshness.
A Warehouse that has never had a rebuild requested returns NULL status and NULL revisions;
only an unknown Warehouse is 404.
A client Bearer token may read status only for Warehouses configured in its Merchant Website’s
Allowed Warehouses setting. Requests for any other Warehouse return 404 without
disclosing whether it exists.
Authorizations
Response
The Warehouse's current Replenishment Index rebuild status.
Publication lifecycle of one Warehouse's Replenishment Index. A Warehouse that has never had a rebuild requested reads as NULL status and NULL revisions/generations, whether or not internal bookkeeping has already created a state row for it, unless a recovery failure described below overrides the status in API version 2026-08 or later.
From API version 2026-08 the resource uses the normalized publication vocabulary — status is one of building, catching_up, fresh, or failed (or NULL when never published) — plus the requested/building/built revisions, the dirty and poison backlog counts and age, the last full reconciliation time, and the sanitized error with its support request ID. These values come from the same operations snapshot as the report collection meta, so the two can never disagree.
Requests pinned to version 2025-07 keep the previous vocabulary: status is one of idle, building, superseded, or failed (a published generation reads idle whether or not its catch-up backlog is drained), generation_current continues to mean the built revision satisfies the newest request, and the generation/timestamp fields below are returned instead of the revision/backlog fields. Before the lane-keyed index is promoted, the legacy report rows are frozen: published_generation and generation_published_at are NULL and generation_current is false when rebuild state exists even though the shadow build state continues to advance.