Get Variant Location Fulfilment State
shopify_get_variant_locationsLook up a variant by SKU or GID to see which locations stock and fulfil it, with quantities and inventory item ID. Run before updating variant locations.
Instructions
Look up a variant by SKU (or variant GID) and see exactly which locations stock and fulfil it.
Returns:
active_locations: locations that CAN stock & fulfil this variant, with available/on_hand/committed/incoming quantities, plus can_deactivate and any deactivation_blocked_reason
inactive_locations: locations that CANNOT — activate one with shopify_set_variant_locations
inventory_item_id: needed by shopify_adjust_inventory / shopify_set_inventory
Call this before shopify_set_variant_locations to see the current state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Exact variant SKU e.g. 'TSHIRT-BLK-M' | |
| variantId | No | Variant GID — use instead of sku when the SKU is ambiguous or blank |