Setu Recipes: reusable digital workers across every app.Browse templates

Integrations / Squarespace

Squarespace

Squarespace Commerce: read orders, products, inventory, customer profiles and transactions, and adjust stock levels.

10 actions API key 9 read1 write Calls api.squarespace.com

Connect

TypeScript
const conn = await setu.connections.initiate({ userId: "user_1", toolkit: "squarespace" });
console.log(conn.connectUrl); // show this to your user
await conn.waitUntilActive();

Permissions requested

This toolkit uses a single credential and requests no scopes.

Actions

Adjust inventorywritesquarespace.adjust_inventoryChange stock: increment or decrement quantities, set exact quantities, or mark variants unlimited. Needs a unique idempotency_key per intended change; re-using a key applies nothing a second time.
InputTypeDescription
idempotency_keystringRequiredUnique key (a UUID) for this adjustment
incrementarray of objectOptional[{variantId, quantity}] to add stock
decrementarray of objectOptional[{variantId, quantity}] to remove stock
set_finitearray of objectOptional[{variantId, quantity}] to set exact quantities
set_unlimitedarray of stringOptionalVariant ids to mark as unlimited stock
TypeScript
await setu.execute({
  userId: "user_1",
  action: "squarespace.adjust_inventory",
  input: {
    "idempotency_key": "<idempotency_key>"
  },
});
Get inventory for a variantreadsquarespace.get_inventory_itemRead the stock level of one product variant by its variant id.
InputTypeDescription
variant_idstringRequiredProduct variant id
TypeScript
await setu.execute({
  userId: "user_1",
  action: "squarespace.get_inventory_item",
  input: {
    "variant_id": "<variant_id>"
  },
});
Retrieve orderreadsquarespace.get_orderRetrieve one order by id: number, customer, line items, totals and fulfillment status.
InputTypeDescription
order_idstringRequiredSquarespace order id
TypeScript
await setu.execute({
  userId: "user_1",
  action: "squarespace.get_order",
  input: {
    "order_id": "<order_id>"
  },
});
Retrieve productreadsquarespace.get_productRetrieve one product by id (Commerce Products API v2), including its variants.
InputTypeDescription
product_idstringRequiredSquarespace product id
TypeScript
await setu.execute({
  userId: "user_1",
  action: "squarespace.get_product",
  input: {
    "product_id": "<product_id>"
  },
});
Retrieve profilereadsquarespace.get_profileRetrieve one customer profile by id, with its order summary.
InputTypeDescription
profile_idstringRequiredSquarespace profile id
TypeScript
await setu.execute({
  userId: "user_1",
  action: "squarespace.get_profile",
  input: {
    "profile_id": "<profile_id>"
  },
});
List inventoryreadsquarespace.list_inventoryList stock levels for every product variant (SKU, descriptor, quantity, unlimited flag), 50 per page.
InputTypeDescription
cursorstringOptionalCursor from the previous response's pagination.nextPageCursor
TypeScript
await setu.execute({
  userId: "user_1",
  action: "squarespace.list_inventory",
  input: {},
});
List ordersreadsquarespace.list_ordersList orders, 50 per page, oldest modified first. Filter by fulfillment status or modified time window (modified_after and modified_before must be given together).
InputTypeDescription
fulfillment_statusstringOptionalPENDING, FULFILLED or CANCELED
modified_afterstringOptionalISO 8601 UTC time, e.g. 2026-09-01T00:00:00Z
modified_beforestringOptionalISO 8601 UTC time
customer_idstringOptionalOnly this customer's orders
cursorstringOptionalCursor from the previous response's pagination.nextPageCursor. Cannot be combined with other filters
TypeScript
await setu.execute({
  userId: "user_1",
  action: "squarespace.list_orders",
  input: {},
});
List productsreadsquarespace.list_productsList store products (Commerce Products API v2), 50 per page. Optionally search by text or filter by type and modified time.
InputTypeDescription
querystringOptionalText search over product names
typestringOptionalProduct type: PHYSICAL, SERVICE, GIFT_CARD or DIGITAL
modified_afterstringOptionalISO 8601 UTC time
modified_beforestringOptionalISO 8601 UTC time
cursorstringOptionalCursor from the previous response's pagination.nextPageCursor. Cannot be combined with other filters
TypeScript
await setu.execute({
  userId: "user_1",
  action: "squarespace.list_products",
  input: {},
});
List profilesreadsquarespace.list_profilesList customer, subscriber and donor profiles, 50 per page. The Profiles API is in maintenance mode at Squarespace but still works.
InputTypeDescription
filterstringOptionalSemicolon-separated: isCustomer, hasAccount, or email (email cannot combine with the others)
emailstringOptionalExact email to look up (use filter=email)
sort_fieldstringOptionalcreatedOn, id, email or lastName
sort_directionstringOptionalasc or dsc
cursorstringOptionalCursor from the previous response's pagination.nextPageCursor. Cannot be combined with other filters
TypeScript
await setu.execute({
  userId: "user_1",
  action: "squarespace.list_profiles",
  input: {},
});
List transactionsreadsquarespace.list_transactionsList financial transaction documents (payments, refunds, fees, taxes per order). Filter by order or modified window.
InputTypeDescription
order_idstringOptionalOnly transactions of this order
modified_afterstringOptionalISO 8601 UTC time
modified_beforestringOptionalISO 8601 UTC time
cursorstringOptionalCursor from the previous response's pagination.nextPageCursor. Cannot be combined with other filters
TypeScript
await setu.execute({
  userId: "user_1",
  action: "squarespace.list_transactions",
  input: {},
});