Activate/Deactivate Variant Fulfilment at Locations
shopify_set_variant_locationsActivate or deactivate a variant's fulfilment at multiple locations by SKU or variant GID. Deactivation discards the location's inventory for that variant.
Instructions
Turn location fulfilment ON or OFF for a variant, identified by SKU or variant GID.
activate: true → the location can stock and fulfil this variant (starts at 0 available; follow with shopify_set_inventory to set stock)
activate: false → the location no longer stocks the variant, and its stock there is discarded
Locations may be given as a GID or by name (e.g. "Melbourne Warehouse"), matched case-insensitively. Multiple locations are applied in a single call.
DEACTIVATION IS DESTRUCTIVE: it discards that location's inventory for the variant. Shopify refuses when the variant has committed stock or pending fulfilments there — check can_deactivate via shopify_get_variant_locations first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Exact variant SKU | |
| locations | Yes | Locations to activate or deactivate | |
| variantId | No | Variant GID — use instead of sku when the SKU is ambiguous |