Set Shopify Location Sync Mode
set_shopify_location_sync_modeSet the inventory sync mode (none | pull | push | both) for one mapped Shopify location. The effective inventory flow is the store-level switch AND the location mode — e.g. pushInventory on the store plus a 'pull' location means nothing is pushed for that location. A location must be mapped to a Spark warehouse before any mode other than 'none' applies; order routing is independent of this setting. All other settings are preserved. Returns the store's fresh configuration. Requires an operator (unpinned) org token with write access.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shopifyLocationId": "<shopifyLocationId>",
"syncMode": "<syncMode>"
},
"name": "set_shopify_location_sync_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| syncMode | Yes | Inventory sync direction: none | pull | push | both. | |
| shopifyStoreUrl | No | The store the location belongs to (e.g. 'my-store.myshopify.com'). Optional when exactly one store is configured. | |
| shopifyLocationId | Yes | The Shopify location id, as returned by get_shopify_store_settings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locations | No | ||
| pullInventory | No | ||
| pushInventory | No | ||
| pushSalesOrders | No | ||
| shopifyStoreUrl | No | ||
| orderStatusRules | No | ||
| orderHistoryMonths | No | ||
| fulfilledImportStatus | No | ||
| pickupExcludedOrderTags | No | ||
| rebalanceInventoryOnStoreTransfer | No |