Skip to content

Squarespace - Update Inventory

This module allows modifying the inventory quantity of a product variant in Squarespace. It can increment, decrement, or set an exact value.

  • API Key: Squarespace API key
ParameterTypeRequiredDescription
credentials_idcredentialYesSquarespace credentials
inventory_idstringYesInventory ID (variant ID)
quantitynumberYesQuantity to adjust
adjustment_typeselectNoType: increment, decrement, set
  • increment: Adds the quantity to current stock
  • decrement: Subtracts the quantity from current stock
  • set: Sets the exact value
{
"success": true,
"inventory": {...},
"inventory_id": "5f3e...",
"new_quantity": 100,
"message": "Inventory 5f3e... updated successfully"
}
{
"inventory_id": "5f3e...",
"quantity": 100,
"adjustment_type": "set"
}
{
"inventory_id": "5f3e...",
"quantity": 50,
"adjustment_type": "increment"
}
{
"inventory_id": "5f3e...",
"quantity": 10,
"adjustment_type": "decrement"
}
  • The inventory_id corresponds to the product’s variantId
  • Only products with isFinite: true can have inventory adjustments
  • To get the inventory_id, first use the GetInventory module
  • Negative adjustments resulting in stock < 0 will be rejected
  • SquarespaceGetInventory - Get current inventory levels
  • SquarespaceGetProducts - Get product and variant data
  • SquarespaceGetOrders - Get orders that affect inventory