Update Shopify Store Settings
set_shopify_store_settingsUpdate a Shopify store's sync configuration with preserve-on-omit semantics: only the arguments you pass change; everything else (including location mappings) is kept exactly as configured. orderStatusRules merges per key — keys you omit keep their current mapping. Validation matches the Spark settings screen exactly (same service seam). Returns the store's fresh configuration after the save. Requires an operator (unpinned) org token with write access.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_shopify_store_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pullInventory | No | Store-level switch: pull Shopify inventory into Spark. | |
| pushInventory | No | Store-level switch: push Spark inventory to Shopify. | |
| pushSalesOrders | No | Store-level switch: push order status write-back (fulfillments/tracking) Spark → Shopify. | |
| shopifyStoreUrl | No | The store to update (e.g. 'my-store.myshopify.com'). Optional when exactly one store is configured. | |
| orderStatusRules | No | Partial payment-status → Spark-status map to merge, e.g. {"paid": "approved", "pending": "doNotImport"}. Keys: paid, pending, authorized, partiallyPaid, partiallyRefunded, refunded, voided, expired, cancelled. Values: a Spark order status, or 'doNotImport' to skip orders in that payment status. Omitted keys keep their current mapping. | |
| orderHistoryMonths | No | How many months of pre-connect-date order history the historical backfill should import. One of: 3, 6, 12, 24, 36, or omit/null for all available history. Applied when the backfill is triggered. | |
| fulfilledImportStatus | No | How Shopify-fulfilled orders import: 'autoFulfill' (default behavior — import and auto-fulfill to shipped) or a Spark order status (e.g. 'issued') to import at that working status and let Spark perform fulfillment. | |
| pickupExcludedOrderTags | No | Shopify order tags that mark orders never collected at a store (e.g. 'employee', 'custom'). A tagged order is not classified as pickup: it stays off the Pickup Monitor queue and sends no pickup notifications, while still importing against its fulfillment location's store. Replaces the whole list; pass [] to clear; omit to keep it. | |
| rebalanceInventoryOnStoreTransfer | No | Opt-in: correct Shopify per-location inventory when an order transfers between stores in Spark (writes to the merchant's live Shopify stock). |
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 |