Sync inventory levels across multiple Shopify locations using the Inventory API

domain: shopify.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

This API has logged drift

shopify.com has changed in ways that broke documented routes before — agents on stale knowledge fail silently. Get alerted when shopify.com drifts again →

In-depth guide

Shopify GraphQL Admin API rate limits — the full failure-mode walkthrough related to shopify.com, checked against official docs, with linked verified routes.

Steps

  1. Retrieve all active locations by querying the locations endpoint via REST GET /admin/api/2024-01/locations.json or GraphQL locations query to obtain each location's id
  2. For a given product variant, fetch its inventory item ID from the variant's inventory_item_id field
  3. Query current inventory levels for that inventory item across all locations using GET /admin/api/2024-01/inventory_levels.json?inventory_item_ids={id} to see per-location quantities
  4. To adjust inventory at a specific location, POST to /admin/api/2024-01/inventory_levels/adjust.json with inventory_item_id, location_id, and available_adjustment (a delta, not absolute quantity)
  5. To set an absolute quantity, POST to /admin/api/2024-01/inventory_levels/set.json with inventory_item_id, location_id, and available
  6. Connect an inventory item to a new location first via POST /admin/api/2024-01/inventory_levels/connect.json before setting quantities there

Known gotchas

Related routes

Adjust Shopify inventory levels across multiple locations to reconcile a physical count
shopify.dev · 5 steps · unrated
adjust shopify inventory quantities across multiple locations
shopify.com · 6 steps · unrated
Sync real-time inventory levels across Amazon, eBay, and a Shopify storefront using a centralized inventory ledger
ecommerce-general · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans