How can I update product quantity using Shopify Flow?

Topic summary

Goal: Automatically set or adjust product inventory via Shopify Flow without third‑party apps.

Status and approach: Flow does not include a native “update inventory” action. The practical solution is to call the Shopify Admin API from Flow. Initially this used Send HTTP Request with the REST endpoint /admin/api/2023-01/inventory_levels/set.json (POST). More recently, the recommended method is Flow’s Send Admin API Request, which handles authentication and supports GraphQL.

Key implementation details:

  • Endpoint options: set to an absolute quantity (set.json) or adjust by a delta (adjust.json).
  • Required fields: location_id, inventory_item_id, and either available (set) or available_adjustment (adjust).
  • IDs: inventory_item_id is different from variant ID or line item ID; fetch via API or Liquid (e.g., productVariant.inventoryItem…).
  • Auth: use an Admin API access token with inventory permissions.

Common pitfalls and fixes: 404 Not Found from wrong store URL or IDs; 400 Bad Request from malformed JSON; permission errors if token scopes are missing.

Use cases shared: set quantity to 100; auto-set to 0 when stock ≤ threshold; daily overwrite from a metafield across all products using Liquid loops. Latest guidance suggests using Send Admin API Request with the inventoryAdjustQuantities GraphQL mutation to update multiple items at once. The thread converges on API-based solutions; no native Flow action is announced short-term.

Summarized with AI on December 21. AI used: gpt-5.

Hello Mussty,

I have been working on this for a few days, but can’t seem to get it to work. I want to create a flow that adjusts the inventory of an item once monthly, when I run the flow it get

{"errors":"Not Found"}

Same thing when I follow the link itself. Not sure what is wrong, I believe I followed everything mentioned in the thread. Were there any other steps you took?

Bit of a noob, appreciate any help!