Squarespace - Get Inventory
Description
Section titled “Description”This module allows querying inventory levels of all products in a Squarespace store. It includes filters to search by product, SKU, or detect low-stock products.
Configuration
Section titled “Configuration”Required Credentials
Section titled “Required Credentials”- API Key: Squarespace API key
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
| credentials_id | credential | Yes | Squarespace credentials |
| product_id | string | No | Filter by product ID |
| sku | string | No | Filter by SKU |
| low_stock_threshold | number | No | Show only items with stock below this value |
| cursor | string | No | Pagination cursor |
Output
Section titled “Output”{ "success": true, "inventory": [...], "count": 50, "total_count": 150, "hasNextPage": true, "nextCursor": "abc123...", "message": "50 inventory items retrieved"}Inventory Fields
Section titled “Inventory Fields”variantId: Variant IDsku: Product SKUproductId: Parent product IDquantity: Available quantityisFinite: Whether stock is finiteisUnlimited: Whether stock is unlimited
Usage Example
Section titled “Usage Example”Get all inventory
Section titled “Get all inventory”{}Specific product inventory
Section titled “Specific product inventory”{ "product_id": "5f3e..."}Low stock products
Section titled “Low stock products”{ "low_stock_threshold": 10}Search by SKU
Section titled “Search by SKU”{ "sku": "CAM-001"}API Used
Section titled “API Used”- Endpoint:
GET /1.0/commerce/inventory - Documentation: Squarespace Inventory API
- Inventory is managed at the variant level, not the product level
- Product and SKU filters are applied locally after fetching the data
isFinite: trueindicates the product has limited stockisUnlimited: trueindicates infinite stock (not tracked)
Related Nodes
Section titled “Related Nodes”- SquarespaceUpdateInventory - Adjust inventory levels
- SquarespaceGetProducts - Get full product data
- SquarespaceGetOrders - Get orders that affect inventory