Stock levels with fulfillment service with multiple warehouses

Topic summary

A developer has built a Fulfillment Service app with inventory management enabled, which requires responding to Shopify’s fetch_stock endpoint with stock levels for each SKU.

Core Challenge:

  • Products are stored across 3 physical warehouses globally
  • Fulfillment location depends on buyer’s geographic location
  • The fetch_stock API only accepts a single stock number per SKU
  • Each SKU actually has 3 different stock values (one per warehouse)

Desired Outcome:
The ability to mark a product variant as “out of stock for selling to Country X” (when depleted at one warehouse) while still showing “in stock for Country Y” (where other warehouses have inventory).

Current Status:
No solution has been found yet for handling multi-market, multi-warehouse inventory within the fulfillment service framework.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

I have created a Fulfillment service app with the setting “inventory_management” set to true. This means that shopify will periodically call me on my “fetch_stock” endpoint and ask for the stock level for a specific sku.
However the goods that we sell (using the fulfillment service) are stored in 3 different physical warehouses around the world. Depending on where the buyer of the goods are they will be delivered from one of the warehouses. So I don’t really have a single stock value for each sku, instead I have 3, one fore each warehouse.

I want to be able to set a variant “out of stock for selling to country X” (when i’m out of stock in one of the warehouses), but still “in stock for selling to country Y”. I have not managed to do this yet.
How can I handle stock for multiple markets for a fulfillment service app? In the fetch stock call I can only give a single stock number as answer.

1 Like