Shopify
Manage products, orders, and customers in your Shopify store from Spala flows.
Shopify
The Shopify addon connects your Spala backend to a Shopify store. Query products, manage orders, update inventory, and sync customer data through the Shopify Admin API.
Installation
1. Enable the Shopify addon from the Addons panel 2. Create a custom app in your Shopify admin (Settings > Apps and sales channels > Develop apps) 3. Enter the store credentials in the addon configuration
Configuration
Available Steps
Get Products
Retrieves products from your Shopify store.
Get Order
Retrieves a single order by ID.
Update Inventory
Updates the inventory level for a product variant at a location.
Create Product
Creates a new product in your Shopify store.
Example: Sync Products to Local Database
// Scheduled task — runs every hour
// Step 1: Get Products (Shopify addon) // limit: 250 // status: 'active' // Output → vars.products
// Step 2: Loop - For each product // Step 3: Database Query - Upsert product // INSERT INTO products (shopify_id, title, price, inventory, updated_at) // VALUES (product.id, product.title, product.variants[0].price, // product.variants[0].inventory_quantity, NOW()) // ON CONFLICT (shopify_id) DO UPDATE SET // title = EXCLUDED.title, price = EXCLUDED.price, // inventory = EXCLUDED.inventory, updated_at = NOW()
Example: Low Inventory Alert
// Scheduled task — runs daily
// Step 1: Get Products (Shopify addon) // limit: 250 // Output → vars.products
// Step 2: Set Variable - Filter low stock // vars.lowStock = vars.products.filter(p => // p.variants.some(v => v.inventory_quantity < 10) // )
// Step 3: Condition - If any low stock items // If vars.lowStock.length > 0
// Step 4: Send Email or Slack notification // "Low inventory alert: " + vars.lowStock.length + " products below threshold"
The Shopify Admin API has rate limits of 2 requests per second for regular apps. The addon handles rate limiting automatically with request queuing, but be mindful of this when processing large catalogs.
Your Shopify store domain (e.g., "mystore.myshopify.com"). Admin API access token from your custom Shopify app. Number of products to return (default: 50, max: 250). Filter products by collection. 'active', 'draft', or 'archived'. The Shopify order ID. The inventory item ID. The location ID. Quantity adjustment (positive to add, negative to remove). Product title. Product description in HTML. Product vendor name. Product type for categorization. Array of variant objects with price, sku, and inventory details. Addons Overview /addons Browse available addons Installing Addons /addons/installing Enable and configure addons in your project