Squarespace Developer Platform: APIs, Apps, and Docs
Commerce API

AcceptsMarketing

Marketing subscription state for the contact's email.
acceptsMarketing
​boolean

Whether the contact accepts marketing email.

joinedOn
​string · date-time

The date and time the contact was added to the marketing list.The value returned in the creation response is a near-real-time estimate; the Get Contact endpoint should be used to verify the exact persisted timestamp.

leftOn
​string · date-time

The date and time the contact left Marketing list

AcceptsMarketingWithDate

Contact's marketing settings with joined on date
acceptsMarketing
​boolean

If contact's email accepts marketing

​DateFilter

Object for filtering by before and after dates

Address

Customer's shipping address provided at checkout or, for recurring subscription orders, the customer's current mailing address.
address1
​string

Primary street address

Example: 459 Broadway
address2
​string

Secondary address line

city
​string

City

Example: New York
countryCode
​string

ISO 3166-1 alpha-2 country code

Example: US
firstName
​string

First name

Example: Bob
lastName
​string

Last name

Example: Loblaw
phone
​string

Phone number

Example: 5553334444
postalCode
​string

Postal or ZIP code

Example: 10003
state
​string

State or province

Example: NY

AddressBook

Address settings for a contact. When there is at least one address book entry, exactly one is the default shipping address; default shipping address is always returned on the first page of paginated results).
​AddressBookEntry[]

List of Address Book Entries

defaultShippingAddressId
​string

The id of the address book entry that is the default shipping address.

AddressBookEntry

An address book entry for a contact.
​ContactAddress

Address properties for a contact.

defaultShipping
​boolean

Whether this entry is the current default shipping address. When the contact has any address book entries, exactly one entry has this value set to true.

id
​string · readOnly

The address book entry's ID.

Example: 5f8d0d55b54764421b7156aa

AddressCreateData

The address data for the created address book entries.
​AddressBookEntry[] · required

The address book entries that were created.

contactId
​string · required

The contact's ID.

Example: 64a7e3d2c8f1b95e30a14d2b
createdOn
​string · date-time

Creation date and time in UTC (ISO 8601 format) of the address book entries.

Example: 2024-01-28T10:44:00Z

AddressCreatePayload

createdOn
​string · date-time · required

Creation date and time in UTC (ISO 8601 format) of this message.

Example: 2024-01-28T10:44:00Z
id
​string · required

Unique notification id.

Example: 5c2ba184b63ed3cb411ce2b1
subscriptionsId
​string · required

Unique Webhook Subscriptions id.

Example: 5f3c2155d947844beedda991
topic
​string · enum · required

Description of the event that triggered the notification.

  • order.create - always value for OrderCreatePayload.topic ref
  • order.update - always value for OrderUpdatePayload.topic
  • extension.uninstall - always value for ExtensionUninstallPayload.topic
  • contact.create - always value for ContactCreatePayload.topic
  • contact.update - always value for ContactUpdatePayload.topic
  • contact.delete - always value for ContactDeletePayload.topic
  • address.create - always value for AddressCreatePayload.topic
  • address.update - always value for AddressUpdatePayload.topic
  • address.delete - always value for AddressDeletePayload.topic
Enum values:
address.create
Example: address.create
Default: address.create
websiteId
​string · required

Squarespace website id that triggered the notification.

Example: 5f3c3d55ac435e1a051f77b3

The address data for the created address book entries.

AddressDeleteData

Identifiers and metadata for the deleted address book entries.
addressBookEntryIds
​string[] · required

The IDs of the deleted address book entries.

contactId
​string · required

The contact's ID.

Example: 64a7e3d2c8f1b95e30a14d2b
deletedOn
​string · date-time

Deletion date and time in UTC (ISO 8601 format) of the address book entries.

Example: 2024-01-28T10:44:00Z

AddressDeletePayload

createdOn
​string · date-time · required

Creation date and time in UTC (ISO 8601 format) of this message.

Example: 2024-01-28T10:44:00Z
id
​string · required

Unique notification id.

Example: 5c2ba184b63ed3cb411ce2b1
subscriptionsId
​string · required

Unique Webhook Subscriptions id.

Example: 5f3c2155d947844beedda991
topic
​string · enum · required

Description of the event that triggered the notification.

  • order.create - always value for OrderCreatePayload.topic ref
  • order.update - always value for OrderUpdatePayload.topic
  • extension.uninstall - always value for ExtensionUninstallPayload.topic
  • contact.create - always value for ContactCreatePayload.topic
  • contact.update - always value for ContactUpdatePayload.topic
  • contact.delete - always value for ContactDeletePayload.topic
  • address.create - always value for AddressCreatePayload.topic
  • address.update - always value for AddressUpdatePayload.topic
  • address.delete - always value for AddressDeletePayload.topic
Enum values:
address.delete
Example: address.delete
Default: address.delete
websiteId
​string · required

Squarespace website id that triggered the notification.

Example: 5f3c3d55ac435e1a051f77b3

Identifiers and metadata for the deleted address book entries.

AddressRequest

Customer's shipping address.
address1
​string
address2
​string
city
​string
countryCode
​string
firstName
​string
lastName
​string
phone
​string
postalCode
​string
state
​string

AddressUpdateData

The address data after the update.
​AddressBookEntry[] · required

The address book entries after the update.

contactId
​string · required

The contact's ID.

Example: 64a7e3d2c8f1b95e30a14d2b
createdOn
​string · date-time

Creation date and time in UTC (ISO 8601 format) of the address book entries.

Example: 2024-01-28T10:44:00Z
updatedOn
​string · date-time

Last update date and time in UTC (ISO 8601 format) of the address book entries.

Example: 2024-02-15T14:30:00Z

AddressUpdatePayload

createdOn
​string · date-time · required

Creation date and time in UTC (ISO 8601 format) of this message.

Example: 2024-01-28T10:44:00Z
id
​string · required

Unique notification id.

Example: 5c2ba184b63ed3cb411ce2b1
subscriptionsId
​string · required

Unique Webhook Subscriptions id.

Example: 5f3c2155d947844beedda991
topic
​string · enum · required

Description of the event that triggered the notification.

  • order.create - always value for OrderCreatePayload.topic ref
  • order.update - always value for OrderUpdatePayload.topic
  • extension.uninstall - always value for ExtensionUninstallPayload.topic
  • contact.create - always value for ContactCreatePayload.topic
  • contact.update - always value for ContactUpdatePayload.topic
  • contact.delete - always value for ContactDeletePayload.topic
  • address.create - always value for AddressCreatePayload.topic
  • address.update - always value for AddressUpdatePayload.topic
  • address.delete - always value for AddressDeletePayload.topic
Enum values:
address.update
Example: address.update
Default: address.update
websiteId
​string · required

Squarespace website id that triggered the notification.

Example: 5f3c3d55ac435e1a051f77b3

The address data after the update.

AnyOrderCriteria

Discount applies to any order. No additional conditions.
type
​string · required

AssociateProductImageToVariantRequest

​ChangeString · required

Optional; HTTPS URL to receive webhook notifications.

AutoTrigger

Trigger for a discount that is automatically applied; no promo code required.
type
​string · required

BuyXGetYCriteria

Discount applies when the cart contains a required quantity of qualifying items (buy side), granting a discount on a quantity of eligible items (reward side).
type
​string · required
eligibleForDiscountQuantity
​integer · int32 · min: 1 · required

Quantity of eligible items the discount applies to.

requiredFullPriceQuantity
​integer · int32 · min: 1 · required

Quantity of qualifying items required at full price.

criteriaAppliesTo
​string · enum

Specifies the possible targets for a BuyXGetYCriteria buy-side.

Enum values:
PRODUCT
criteriaProductIds
​string[] · unique

Product ids the cart must contain. Required if criteriaAppliesTo=PRODUCT.

rewardAppliesTo
​string · enum

Specifies the possible targets for a BuyXGetYCriteria reward-side.

Enum values:
PRODUCT
rewardProductIds
​string[] · unique

Product ids eligible for the reward. Required if rewardAppliesTo=PRODUCT.

BuyXGetYFixedAmountTemplate

Apply a fixed monetary amount off each reward item in a BUY_X_GET_Y discount.
type
​string · required
​MonetaryAmount · required

A monetary amount with currency code and decimal value.

maxApplicationsPerCart
​integer · int32 · min: 0

Caps how many times the discount can be applied per cart. 0 means unlimited.

BuyXGetYPercentageTemplate

Apply a percentage discount off each reward item in a BUY_X_GET_Y discount.
type
​string · required
discountPercentage
​number · max: 100 · required

Percentage to subtract from each reward item. Range (0, 100].

maxApplicationsPerCart
​integer · int32 · min: 0

Caps how many times the discount can be applied per cart. 0 means unlimited.

CarrierService

Carrier service identifier and display name.
description
​string · required

Human-readable carrier service name.

Example: FedEx Ground®
name
​string · required

Carrier service identifier.

Example: FEDEX_GROUND

CartTotalCriteria

Discount applies when the cart total meets or exceeds a minimum.
type
​string · required
​MonetaryAmount · required

A monetary amount with currency code and decimal value.

ChangeBoolean

present
​boolean
value
​boolean

ChangeListString

Optional; list of event topics that trigger a webhook notification. Possible values include: extension.uninstall, order.create, order.update.
present
​boolean
value
​string[]

ChangeMapStringString

Specifies attribute-value pairs for the variant. Supported for PHYSICAL products only.
present
​boolean
​object

ChangeMonetaryAmount

present
​boolean

A monetary amount with currency code and decimal value.

ChangeProductDimensions

present
​boolean

Physical dimensions of the variant.

ChangeProductWeight

present
​boolean

Weight of the variant.

ChangeSeoOptions

Options for search engine optimization.
present
​boolean
​SeoOptions

Options for search engine optimization.

ChangeString

Optional; HTTPS URL to receive webhook notifications.
present
​boolean
value
​string

ChangeUpdateProductMeasurements

Measurements of the variant when it's shipped. Supported for PHYSICAL products only.
present
​boolean

ChangeUpdateProductPricing

Pricing data for the product.
present
​boolean

Contact

A contact.
createdOn
​string · date-time · readOnly

The date and time when the contact was created.

​AddressBookEntry

An address book entry for a contact.

firstName
​string

The contact's first name.

id
​string · readOnly

The contact's ID.

Example: 64a7e3d2c8f1b95e30a14d2b
lastName
​string

The contact's last name.

locale
​string

The contact's locale.

Example: en-US
​Email

The contact's primary email.

ContactAddress

Address properties for a contact.
countryCode
​string · enum · required

ISO 3166 alpha-2 country code string.

Enum values:
AF
AX
AL
DZ
AS
AD
AO
AI
Example: US
city
​string

Address' city

Example: Springfield
firstName
​string

Contact's first name

Example: John
lastName
​string

Contact's last name

Example: Doe
line1
​string

First line of address

Example: 100 Main St
line2
​string

Second line of address

Example: Apt 1A
phoneNumber
​string

Contact's phone number

Example: 215-555-4321
postalCode
​string

zip/postal code

Example: 10900
region
​string

General region (State, Province, County, etc...)

Example: IL

ContactCreatePayload

createdOn
​string · date-time · required

Creation date and time in UTC (ISO 8601 format) of this message.

Example: 2024-01-28T10:44:00Z
id
​string · required

Unique notification id.

Example: 5c2ba184b63ed3cb411ce2b1
subscriptionsId
​string · required

Unique Webhook Subscriptions id.

Example: 5f3c2155d947844beedda991
topic
​string · enum · required

Description of the event that triggered the notification.

  • order.create - always value for OrderCreatePayload.topic ref
  • order.update - always value for OrderUpdatePayload.topic
  • extension.uninstall - always value for ExtensionUninstallPayload.topic
  • contact.create - always value for ContactCreatePayload.topic
  • contact.update - always value for ContactUpdatePayload.topic
  • contact.delete - always value for ContactDeletePayload.topic
  • address.create - always value for AddressCreatePayload.topic
  • address.update - always value for AddressUpdatePayload.topic
  • address.delete - always value for AddressDeletePayload.topic
Enum values:
contact.create
Example: contact.create
Default: contact.create
websiteId
​string · required

Squarespace website id that triggered the notification.

Example: 5f3c3d55ac435e1a051f77b3
​Contact

A contact.

ContactDeleteData

Identifiers and metadata for the deleted contact.
deletedOn
​string · date-time · required

Deletion date and time in UTC (ISO 8601 format) of the contact.

Example: 2024-01-28T10:44:00Z
id
​string · required

The contact's ID.

Example: 64a7e3d2c8f1b95e30a14d2b

ContactDeletePayload

createdOn
​string · date-time · required

Creation date and time in UTC (ISO 8601 format) of this message.

Example: 2024-01-28T10:44:00Z
id
​string · required

Unique notification id.

Example: 5c2ba184b63ed3cb411ce2b1
subscriptionsId
​string · required

Unique Webhook Subscriptions id.

Example: 5f3c2155d947844beedda991
topic
​string · enum · required

Description of the event that triggered the notification.

  • order.create - always value for OrderCreatePayload.topic ref
  • order.update - always value for OrderUpdatePayload.topic
  • extension.uninstall - always value for ExtensionUninstallPayload.topic
  • contact.create - always value for ContactCreatePayload.topic
  • contact.update - always value for ContactUpdatePayload.topic
  • contact.delete - always value for ContactDeletePayload.topic
  • address.create - always value for AddressCreatePayload.topic
  • address.update - always value for AddressUpdatePayload.topic
  • address.delete - always value for AddressDeletePayload.topic
Enum values:
contact.delete
Example: contact.delete
Default: contact.delete
websiteId
​string · required

Squarespace website id that triggered the notification.

Example: 5f3c3d55ac435e1a051f77b3

Identifiers and metadata for the deleted contact.

ContactUpdatePayload

createdOn
​string · date-time · required

Creation date and time in UTC (ISO 8601 format) of this message.

Example: 2024-01-28T10:44:00Z
id
​string · required

Unique notification id.

Example: 5c2ba184b63ed3cb411ce2b1
subscriptionsId
​string · required

Unique Webhook Subscriptions id.

Example: 5f3c2155d947844beedda991
topic
​string · enum · required

Description of the event that triggered the notification.

  • order.create - always value for OrderCreatePayload.topic ref
  • order.update - always value for OrderUpdatePayload.topic
  • extension.uninstall - always value for ExtensionUninstallPayload.topic
  • contact.create - always value for ContactCreatePayload.topic
  • contact.update - always value for ContactUpdatePayload.topic
  • contact.delete - always value for ContactDeletePayload.topic
  • address.create - always value for AddressCreatePayload.topic
  • address.update - always value for AddressUpdatePayload.topic
  • address.delete - always value for AddressDeletePayload.topic
Enum values:
contact.update
Example: contact.update
Default: contact.update
websiteId
​string · required

Squarespace website id that triggered the notification.

Example: 5f3c3d55ac435e1a051f77b3
​Contact

A contact.

CreateAddressBookEntryRequest

​ContactAddress · required

Address properties for a contact.

defaultShipping
​boolean

Whether this entry should be the default shipping address. If this is the only address book entry for the contact after creation, it becomes the default even when set to false.

CreateAddressBookEntryResponse

​AddressBookEntry

An address book entry for a contact.

CreateContactRequest

firstName
​string · required

Contact's first name

Example: john
lastName
​string · required

Contact's last name

Example: doe
locale
​string · required

Contact's locale

Example: en-US
​CreateEmail · required

Primary email supplied when creating a contact.

CreateContactResponse

​Contact

A contact.

CreateDiscountLineRequest

Array of discount line items. Describes the promotions redeemed during checkout.

A monetary amount with currency code and decimal value.

name
​string
promoCode
​string

CreateDiscountRequest

Request body for creating a discount.
​required
name
​string · required

Display name for the discount.

​required
​required
validFrom
​string · date-time · required

When the discount becomes active.

isLimitedUses
​boolean

If true, the discount can only be used maxUsesAllowed times site-wide.

isOncePerCustomer
​boolean

If true, a given customer can only use this discount once.

maxUsesAllowed
​integer · int32

Maximum site-wide redemptions. Required when isLimitedUses=true; null otherwise.

​PaymentPlanOptions

Payment-plan applicability settings for this discount. When omitted from a create or update request, defaults to NONE.

​SubscriptionOptions

Subscription applicability settings for this discount. When omitted from a create or update request, defaults to EXCLUDED.

validTo
​string · date-time

When the discount expires. Null = no expiry.

CreateEmail

Primary email supplied when creating a contact.
email
​string · email · required

The email address.

acceptsMarketing
​boolean

If contact's email accepts marketing

Default: false

CreateGiftCardProductRequest

Request payload to create a GIFT_CARD product.
description
​string
isVisible
​boolean
name
​string
storePageId
​string
tags
​string[]
type
​string
urlSlug
​string

CreateGiftCardProductVariantRequest

sku
​string

CreateInventoryAdjustmentRequest

​InventoryQuantityExpression[]

Optional; array of objects. Subtracts stock quantity for InventoryItems.

​InventoryQuantityExpression[]

Optional; array of objects. Increments stock quantity for InventoryItems.

​InventoryQuantityExpression[]

Optional; array of objects. Sets the exact stock quantity for InventoryItems.

setUnlimitedOperations
​string[]

Optional; array of InventoryItem ids. Marks stock quantity as "unlimited" for the given InventoryItems.

CreateLineItemRequest

Array of purchased line items; cannot be empty.
lineItemType
​OrderCreateLineItemType · enum · required

Product type sold; values may be PHYSICAL_PRODUCT or CUSTOM.

Enum values:
PHYSICAL_PRODUCT
CUSTOM
quantity
​integer · int32 · required

Amount of the item purchased. 1,000,000 limit.

​MonetaryAmount · required

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

title
​string

Title of the custom line item.

variantId
​string

Required if lineItemType is PHYSICAL_PRODUCT. Unique id of the ProductVariant sold.

CreateOrderInventoryBehavior

string · enum
Enum values:
DEDUCT
SKIP

Indicates whether to deduct stock quantity for the product variant upon Order creation. Values may be DEDUCT or SKIP. Defaults to SKIP.

CreateOrderRequest

channelName
​string · maxLength: 30 · required

Name of third-party sales channel.

createdOn
​string · date-time · required

ISO 8601 UTC date and time string. Represents the date and time when the order was placed through the third-party sales channel.

externalOrderReference
​string · maxLength: 200 · required

Order reference identifier used by the third-party sales channel.

​CreateOrderShipmentRequest[] · required

Array of shipping fulfillments; up to 100 entries. Describes shipment information for the order.

​MonetaryAmount · required

A monetary amount with currency code and decimal value.

​CreateLineItemRequest[] · required

Array of purchased line items; cannot be empty.

priceTaxInterpretation
​TaxInterpretation · enum · required

Indicates that lineItems.unitPricePaid includes tax. Values may be EXCLUSIVE or INCLUSIVE.

Enum values:
INCLUSIVE
EXCLUSIVE
​AddressRequest

Customer's shipping address.

customerEmail
​string · email

Email address provided at checkout on the third-party sales channel.

Array of discount line items. Describes the promotions redeemed during checkout.

​MonetaryAmount

A monetary amount with currency code and decimal value.

fulfilledOn
​string · date-time

ISO 8601 UTC date and time string. Represents the moment the order was fulfilled. Required if fulfillmentStatus is FULFILLED.

fulfillmentStatus
​OrderCreateFulfillmentStatus · enum

Current fulfillment status of the order. Value may be PENDING or FULFILLED.

Enum values:
PENDING
FULFILLED
inventoryBehavior
​CreateOrderInventoryBehavior · enum

Indicates whether to deduct stock quantity for the product variant upon Order creation. Values may be DEDUCT or SKIP. Defaults to SKIP.

Enum values:
DEDUCT
SKIP
​AddressRequest

Customer's shipping address.

Array of shipping line items. Describes the shipping options chosen at checkout. Currently accepts only one shipping entry.

​MonetaryAmount

A monetary amount with currency code and decimal value.

shopperFulfillmentNotificationBehavior
​ShopperFulfillmentNotificationBehavior · enum

Indicates whether to send a fulfillment notification email to the customer. Value may be SEND or SKIP.

Enum values:
SEND
SKIP
​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

CreateOrderShipmentRequest

Array of shipping fulfillments; up to 100 entries. Describes shipment information for the order.
carrierName
​string · maxLength: 100 · required

Name of the carrier handling the shipment.

service
​string · maxLength: 100 · required

Carrier's level of service for shipping.

shipDate
​string · date-time · required

ISO 8601 UTC date and time string. Represents the moment the shipment occurred.

trackingNumber
​string · maxLength: 100 · required

Carrier's parcel tracking number.

trackingUrl
​string

URL provided by carrier to track the shipment; must adhere to valid URL formatting.

CreatePhysicalProductRequest

Request payload to create a PHYSICAL product.
description
​string
isVisible
​boolean
name
​string
storePageId
​string
tags
​string[]
type
​string
urlSlug
​string
variantAttributes
​string[]

CreatePhysicalProductVariantRequest

​object
gtin
​string

Global Trade Item Number (GTIN). Optional. Must be 8, 12, 13, or 14 numeric digits. Whitespace, hyphens, and underscores are stripped before validation.

mpn
​string

Manufacturer Part Number (MPN). Optional. Must be alphanumeric and 70 characters or fewer. Whitespace, hyphens, and underscores are stripped before validation.

​ProductMeasurements

Measurements of the variant when it's shipped. Present for PHYSICAL products only.

sku
​string
​ProductStock

Available stock for the variant. Present for PHYSICAL products only.

CreateProductRequest

storePageId
​string · required

Identifier of the product's Store Page.

type
​ProductType · enum · required

Product type indicator. Value may be: PHYSICAL or DIGITAL.

Enum values:
PHYSICAL
DIGITAL
​CreateProductVariantRequest[] · required

List of variants of the product. Array must contain at least one object but no more than 100 objects.

description
​string · maxLength: 102400

Long-form product description represented in HTML.

isVisible
​boolean

Indicates whether the product is available for purchase. If not specified, the new product is marked as Hidden.

name
​string · maxLength: 200

Product name.

​ProductPricing

Present for DIGITAL products only. Digital products don't have variants, so pricing is at the product level.

tags
​string[]

Keywords for search and organization purposes.

urlSlug
​string · maxLength: 200

URL slug for the new product. Value can only consist of alphanumeric characters and non-contiguous hyphens.

variantAttributes
​string[]

List of attributes to distinguish variants of the product. Supported for PHYSICAL products only.

CreateProductVariantRequest

​ProductPricing · required

Present for DIGITAL products only. Digital products don't have variants, so pricing is at the product level.

sku
​string · maxLength: 60 · required

Merchant-defined code that identifies the product variant. Value must be unique among variants. Leading and trailing whitespace is removed.

​object

Specifies attribute-value pairs for the variant. 100 char limit per key and per value with no more than six key-value pairs. Supported for PHYSICAL products only.

​ProductMeasurements

Measurements of the variant when it's shipped. Present for PHYSICAL products only.

​ProductStock

Available stock for the variant. Present for PHYSICAL products only.

CreateServiceProductRequest

Request payload to create a SERVICE product.
description
​string
isVisible
​boolean
name
​string
storePageId
​string
tags
​string[]
type
​string
urlSlug
​string
variantAttributes
​string[]

CreateServiceProductVariantRequest

​object
sku
​string
​ProductStock

Available stock for the variant. Present for PHYSICAL products only.

CreateShippingLineRequest

Array of shipping line items. Describes the shipping options chosen at checkout. Currently accepts only one shipping entry.
​MonetaryAmount · required

A monetary amount with currency code and decimal value.

method
​string · maxLength: 100 · required

Description of the shipping option.

CreateVariantRequestV2

​ProductPricing · required

Present for DIGITAL products only. Digital products don't have variants, so pricing is at the product level.

sku
​string · maxLength: 60 · required

Merchant-defined code that identifies the product variant. Value must be unique among variants. Leading and trailing whitespace is removed.

​object

Specifies attribute-value pairs for the variant. 100 char limit per key and per value with no more than six key-value pairs. Supported for PHYSICAL products only.

gtin
​string

Global Trade Item Number (GTIN). Optional. Must be 8, 12, 13, or 14 numeric digits. Whitespace, hyphens, and underscores are stripped before validation. Supported for PHYSICAL products only.

Example: 01234567890128
mpn
​string

Manufacturer Part Number (MPN). Optional. Must be alphanumeric and 70 characters or fewer. Whitespace, hyphens, and underscores are stripped before validation. Supported for PHYSICAL products only.

Example: MPN-1234
​ProductMeasurements

Measurements of the variant when it's shipped. Present for PHYSICAL products only.

​ProductStock

Available stock for the variant. Present for PHYSICAL products only.

DateFilter

Object for filtering by before and after dates
after
​string · date-time

Filter out any dates after

before
​string · date-time

Filter out any dates before

DigitalGood

Present for DIGITAL products only.
filename
​string

Filename of the downloadable file.

id
​string

Unique DigitalGood id.

DigitalProduct

A DIGITAL product.
createdOn
​string · date-time · required
id
​string · required
modifiedOn
​string · date-time · required
storePageId
​string · required
type
​ProductTypeV2 · enum · required
Enum values:
PHYSICAL
SERVICE
GIFT_CARD
DIGITAL
description
​string
isVisible
​boolean
name
​string
​SeoOptions

Options for search engine optimization.

tags
​string[]
url
​string
urlSlug
​string
​DigitalGood

Present for DIGITAL products only.

​ProductPricing

Present for DIGITAL products only. Digital products don't have variants, so pricing is at the product level.

Discount

Discount configured for a Commerce store.
​required
name
​string · required

Display name for the discount.

​required
​required
validFrom
​string · date-time · required

When the discount becomes active.

id
​string · readOnly

Discount id.

isLimitedUses
​boolean

If true, the discount can only be used maxUsesAllowed times site-wide.

isOncePerCustomer
​boolean

If true, a given customer can only use this discount once.

lastRedeemedAt
​string · date-time · readOnly

Timestamp of the most recent redemption. Null if never redeemed.

maxUsesAllowed
​integer · int32

Maximum site-wide redemptions. Required when isLimitedUses=true; null otherwise.

numberOfUses
​integer · int32 · readOnly

Number of times this discount has been redeemed.

​PaymentPlanOptions

Payment-plan applicability settings for this discount. When omitted from a create or update request, defaults to NONE.

status
​string · enum · readOnly

Defines the lifecycle status of a discount.

Enum values:
ACTIVE
SCHEDULED
EXPIRED
​SubscriptionOptions

Subscription applicability settings for this discount. When omitted from a create or update request, defaults to EXCLUDED.

validTo
​string · date-time

When the discount expires. Null = no expiry.

websiteId
​string · readOnly

24-char website id.

DiscountLine

Array of discount line items; describes the promotions redeemed during checkout.

A monetary amount with currency code and decimal value.

description
​string

A plain-English description of the promotion

Example: 20% off all orders over $50
name
​string

Name of the promotion

Example: Summer Sale - 20% Off
promoCode
​string

The user-entered promo code that triggered the discount

Example: SUMMER20

DiscountResponse

Envelope for a single discount response.
​Discount · required

Discount configured for a Commerce store.

Email

The contact's primary email.
​AcceptsMarketing

Marketing subscription state for the contact's email.

createdOn
​string · date-time · readOnly

The date and time when the email was created.

email
​string · email

The email address.

ExtensionUninstallData

The extension uninstall details.
clientId
​string · required

Third-party client id.

Example: A125dfPqdKJDqPAcJQgLo3A5mwcKIq2G

ExtensionUninstallPayload

createdOn
​string · date-time · required

Creation date and time in UTC (ISO 8601 format) of this message.

Example: 2024-01-28T10:44:00Z
id
​string · required

Unique notification id.

Example: 5c2ba184b63ed3cb411ce2b1
subscriptionsId
​string · required

Unique Webhook Subscriptions id.

Example: 5f3c2155d947844beedda991
topic
​string · enum · required

Description of the event that triggered the notification.

  • order.create - always value for OrderCreatePayload.topic ref
  • order.update - always value for OrderUpdatePayload.topic
  • extension.uninstall - always value for ExtensionUninstallPayload.topic
  • contact.create - always value for ContactCreatePayload.topic
  • contact.update - always value for ContactUpdatePayload.topic
  • contact.delete - always value for ContactDeletePayload.topic
  • address.create - always value for AddressCreatePayload.topic
  • address.update - always value for AddressUpdatePayload.topic
  • address.delete - always value for AddressDeletePayload.topic
Enum values:
extension.uninstall
Example: extension.uninstall
websiteId
​string · required

Squarespace website id that triggered the notification.

Example: 5f3c3d55ac435e1a051f77b3

The extension uninstall details.

ExternalCreateWebhookSubscriptionRequest

endpointUrl
​string · required

HTTPS URL to POST webhook notifications.

Example: https://example-extension.com/uninstall
topics
​string[]

List of event topics that trigger a webhook notification.

Enum values:
order.create
order.update
extension.uninstall
contact.create
contact.update
contact.delete
address.create
address.update

ExternalCreateWebhookSubscriptionResponse

clientId
​string · readOnly · required

Third-party client id.

Example: A125dfPqdKJDqPAcJQgLo3A5mwcKIq2G
createdOn
​string · date-time · readOnly · required

ISO 8601 UTC date and time string; represents when the webhook subscription was created.

Example: 2020-04-22T22:18:00Z
endpointUrl
​string · required

HTTPS URL to POST webhook notifications.

Example: https://example-extension.com/uninstall
id
​string · readOnly · required

Unique Webhook Subscription id.

Example: 7aff04bb-90e0-4002-96c2-69d8162c8dae
secret
​string · readOnly · required

Hexadecimal value used to generate a signature for a webhook notification; field is only returned when creating a new subscription or rotating a secret. Store the secret in a safe location to verify notifications from Squarespace. See the 'Verifying notifications' guide under Webhooks for details.

Example: F3F9B981C78E7A6187E42853F6CE2804177E98206164779423B02DEC981ACD6B
updatedOn
​string · date-time · readOnly · required

ISO 8601 UTC date and time string; represents when the webhook subscription was last modified.

Example: 2020-04-22T22:18:00Z
websiteId
​string · readOnly · required

Unique Webhook Subscription id.

Example: 7aff04bb-90e0-4002-96c2-69d8162c8dae
topics
​string[]

List of event topics that trigger a webhook notification.

Enum values:
order.create
order.update
extension.uninstall
contact.create
contact.update
contact.delete
address.create
address.update

ExternalRotateSecretResponse

secret
​string

Hexadecimal value used to generate a signature for a webhook notification; field is only returned when creating a new subscription or rotating a secret. Store the secret in a safe location to verify notifications from Squarespace.

ExternalSendTestNotificationRequest

topic
​string · required

Required; Squarespace event topic that triggers a webhook notification. Possible values include: extension.uninstall, order.create, order.update.

ExternalTestNotificationResponse

statusCode
​integer · int32

Status code returned by the subscribed webhook endpoint.

ExternalTransactionProperty

Array of properties for the payment transaction provided by the payment gateway. Properties are listed in key/value pairs.
key
​string
value
​string

ExternalUpdateWebhookSubscriptionRequest

​ChangeString

Optional; HTTPS URL to receive webhook notifications.

Optional; list of event topics that trigger a webhook notification. Possible values include: extension.uninstall, order.create, order.update.

ExternalWebhookSubscriptionListResponse

Array of Webhook Subscription resources. If the merchant site doesn't have any webhook subscriptions, this array is empty.

ExternalWebhookSubscriptionResponse

clientId
​string

Third-party client id.

createdOn
​string

ISO 8601 UTC date and time string; represents when the webhook subscription was created.

endpointUrl
​string

HTTPS URL that receives webhook notifications.

id
​string

Unique Webhook Subscription id.

topics
​string[]

List of event topics that trigger a webhook notification. Possible values include: extension.uninstall, order.create, order.update.

updatedOn
​string

ISO 8601 UTC date and time string; represents when the webhook subscription was last modified.

websiteId
​string

Unique website id.

FixedAmountTemplate

Apply a fixed monetary amount off the cart total.
type
​string · required
​MonetaryAmount · required

A monetary amount with currency code and decimal value.

FormItem

Array of form data submitted via the checkout page.
label
​string

The name of the form field

Example: How did you hear about us?
value
​string

The value of the field, as entered by the shopper

Example: Facebook

FreeShippingTemplate

Waive shipping cost for eligible carts.
type
​string · required
appliesToFulfillmentOptionType
​string · enum

Fulfillment channel a free-shipping discount applies to.

Enum values:
SHIPPING
PICKUP
LOCAL_DELIVERY
​SelectedShippingOption

A shipping option targeted by a free-shipping discount.

Fulfillment

Array of shipping fulfillments; describes shipment information for the order.
carrierName
​string

Name of the carrier handling the shipment.

Example: FedEx
service
​string

Carrier's level of service for shipping.

Example: Same-Day Delivery
shipDate
​string · date-time

ISO 8601 UTC date and time string; represents the moment the fulfillment was shipped.

Example: 2017-01-29T22:19:26.98Z
trackingNumber
​string

Carrier's parcel tracking number.

Example: 103932814692659
trackingUrl
​string

URL provided by the carrier to track the shipment.

Example: https://www.fedex.com/apps/fedextrack/?tracknumbers=103932814692659

FulfillmentOption

Fulfillment option IDs and carrier services for a website.
​CarrierService[] · required

Available carrier services.

id
​string · required

Fulfillment option id.

name
​string · required

Display name for the option.

Example: Standard Shipping
type
​string · enum · required

Fulfillment channel for this option.

Enum values:
SHIPPING
PICKUP
LOCAL_DELIVERY

FulfillmentOptionsList

List of fulfillment option IDs and carrier services.
​FulfillmentOption[] · required

Fulfillment option IDs and carrier services for this website.

FulfillmentStatus

string · enum
Enum values:
PENDING
FULFILLED
CANCELED

Current fulfillment status of the order. Value may be: PENDING, FULFILLED, or CANCELED.

FullProductPricing

​MonetaryAmount

A monetary amount with currency code and decimal value.

onSale
​boolean
​MonetaryAmount

A monetary amount with currency code and decimal value.

GetAddressBookEntryResponse

​AddressBookEntry

An address book entry for a contact.

GetAddressBookResponse

​AddressBook

Address settings for a contact. When there is at least one address book entry, exactly one is the default shipping address; default shipping address is always returned on the first page of paginated results).

​PaginationDetails

GetContactResponse

​Contact

A contact.

GiftCardProduct

A GIFT_CARD product.
createdOn
​string · date-time · required
id
​string · required
modifiedOn
​string · date-time · required
storePageId
​string · required
type
​ProductTypeV2 · enum · required
Enum values:
PHYSICAL
SERVICE
GIFT_CARD
DIGITAL
description
​string
isVisible
​boolean
name
​string
​SeoOptions

Options for search engine optimization.

tags
​string[]
url
​string
urlSlug
​string

GiftCardProductVariant

A variant of a GIFT_CARD product.
id
​string
​ProductImage

Product image assigned to the variant.

sku
​string

ImageProcessingStatus

string · enum
Enum values:
QUEUED
PROCESSING
READY
ERROR

IntegerFilter

Object for filtering by a min and max integer
max
​integer · int32

Filter out any numbers greater

min
​integer · int32

Filter out any numbers lower

InventoryItem

Array of InventoryItem resources. If the merchant site doesn't have any physical or service products, this array is empty.
descriptor
​string

Generated description using the product's title and any available variant attributes including, but not limited to, color and size.

isUnlimited
​boolean

Indicates whether stock is currently tracked for the item.

quantity
​integer · int32

Current amount in stock, or the last known stock amount prior to becoming unlimited. This value is modified by purchases and returns only when isUnlimited is false.

sku
​string

Stock keeping unit (SKU) code assigned by the Squarespace merchant for the variant; used to identify an exact variant of a product using a naming scheme preferred by the merchant.

variantId
​string

The product variant id, which also serves as a unique id for the InventoryItem.

InventoryItemListResponse

​InventoryItem[]

Array of InventoryItem resources. If the merchant site doesn't have any physical or service products, this array is empty.

InventoryQuantityExpression

Optional; array of objects. Sets the exact stock quantity for InventoryItems.
quantity
​integer · int32

Quantity value for the inventory operation.

variantId
​string

Unique id for the InventoryItem.

LineItem

Array of purchased line items; line items describe what product or product variant was purchased, how many of that item were purchased, and additional details.
​FormItem[]

Array of form data submitted via a product's custom form prior to being added to the cart.

height
​number · float

Shipping height of the physical product variant. 0.0 when not specified or when the variant is not a physical product.

Example: 4
id
​string

Unique line item id.

Example: 585d4975dee9f31a60284a16
imageUrl
​string

URL of the primary image for the item.

Example: https://static.squarespace.com/universal/commerce/images/brine-32oz-spring-mix-v2.jpg?format=300w
length
​number · float

Shipping length of the physical product variant. 0.0 when not specified or when the variant is not a physical product.

Example: 3
lineItemType
​string

Product type of the item.

Example: PHYSICAL_PRODUCT
productId
​string

Unique product id; unless null, every line item with a variantId is a variant of a product with productId.

Example: 565c8f3da7c8a3cf71d5fd0a
productName
​string

Name of the purchased product.

Example: Product
quantity
​integer · int32

Amount of the item purchased.

Example: 1
sku
​string

Stock keeping unit (SKU) code assigned by the Squarespace merchant for a variant. Null for digital products.

Example: SQ3381024
​MonetaryAmount

A monetary amount with currency code and decimal value.

variantId
​string

Unique id of the ProductVariant sold. Populated for physical, service, or gift card line items created on or after May 28, 2019.

Example: 88c16ee4-547b-445e-a392-bded9991ae30
​VariantOption[]

Array of variant options; represents variant choices made by the customer. Null for download and gift card products.

weight
​number · float

Shipping weight of the physical product variant. 0.0 when not specified or when the variant is not a physical product.

Example: 1
width
​number · float

Shipping width of the physical product variant. 0.0 when not specified or when the variant is not a physical product.

Example: 2

Location

country
​string
region
​string

MeasurementStandard

string · enum
Enum values:
IMPERIAL
METRIC

MemberProfile

email
​string

Profile email address.

firstName
​string

Profile first name.

id
​string

Unique Profile id.

lastName
​string

Profile last name.

MonetaryAmount

A monetary amount with currency code and decimal value.
​object

ISO 4217 currency code.

Example: USD
value
​number

Decimal monetary value.

Example: 49.99

Order

​Address

Customer's shipping address provided at checkout or, for recurring subscription orders, the customer's current mailing address.

channel
​string

Where the order originated; possible values are: web and pos.

Example: web
channelName
​string

Name of the third-party sales channel.

Example: Faire Wholesale
createdOn
​string · date-time

ISO 8601 UTC date and time string; represents the moment when the order was placed.

Example: 2016-12-23T15:58:07.187Z
customerEmail
​string

Email address entered at checkout or, for recurring subscription orders, the customer's current email address.

customerId
​string

Unique customer id.

Example: 585d498fdee9f31a60284a38
​DiscountLine[]

Array of discount line items; describes the promotions redeemed during checkout.

​MonetaryAmount

A monetary amount with currency code and decimal value.

externalOrderReference
​string

Order reference identifier used by the third-party sales channel.

Example: EXT-98765
​FormItem[]

Array of form data submitted via the checkout page.

fulfilledOn
​string · date-time

ISO 8601 UTC date and time string; represents the moment the order was fulfilled.

fulfillmentStatus
​FulfillmentStatus · enum

Current fulfillment status of the order. Value may be: PENDING, FULFILLED, or CANCELED.

Enum values:
PENDING
FULFILLED
CANCELED
​Fulfillment[]

Array of shipping fulfillments; describes shipment information for the order.

​MonetaryAmount

A monetary amount with currency code and decimal value.

id
​string

Unique Order id.

Example: 585d498fdee9f31a60284a37
​OrderNote[]

Array of internal notes added to the order by the merchant.

​LineItem[]

Array of purchased line items; line items describe what product or product variant was purchased, how many of that item were purchased, and additional details.

modifiedOn
​string · date-time

ISO 8601 UTC date and time string; represents when the order was last modified.

Example: 2016-12-23T15:58:07.187Z
orderNumber
​string

Unique, sequential number for the Order.

Example: 3
paymentState
​PaymentState · enum

Current state of payment for the order.

Enum values:
NOT_CHARGED
AUTHORIZED
PAID
REFUNDED
PENDING
FAILED
REFUND_PENDING
REFUND_FAILED
priceTaxInterpretation
​string

Indicates whether lineItems.unitPricePaid includes tax. Values may be EXCLUSIVE or INCLUSIVE.

Example: EXCLUSIVE
​MonetaryAmount

A monetary amount with currency code and decimal value.

​Address

Customer's shipping address provided at checkout or, for recurring subscription orders, the customer's current mailing address.

​ShippingLine[]

Array of shipping line items; describes the shipping options chosen at checkout.

shippingOptionName
​string

the specific shipping service name selected at checkout (e.g. "USPS Ground Advantage", "Royal Mail Tracked 48").

shippingOptionServiceType
​string · enum

The carrier service type identifier.

Enum values:
FEDEX_GROUND
FEDEX_GROUND_HOME_DELIVERY
FEDEX_PRIORITY_OVERNIGHT
FEDEX_STANDARD_OVERNIGHT
FEDEX_2_DAY
FEDEX_2_DAY_AM
FEDEX_EXPRESS_SAVER
FEDEX_FIRST_FREIGHT
​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

testmode
​boolean

If true, the order is a test order created using a payment method in test mode.

OrderCreateData

The created order details.
orderId
​string · required

Unique order id.

Example: 5f3c39ce69e11e796f19990e

OrderCreateFulfillmentStatus

string · enum
Enum values:
PENDING
FULFILLED

Current fulfillment status of the order. Value may be PENDING or FULFILLED.

OrderCreateLineItemType

string · enum
Enum values:
PHYSICAL_PRODUCT
CUSTOM

Product type sold; values may be PHYSICAL_PRODUCT or CUSTOM.

OrderCreatePayload

createdOn
​string · date-time · required

Creation date and time in UTC (ISO 8601 format) of this message.

Example: 2024-01-28T10:44:00Z
id
​string · required

Unique notification id.

Example: 5c2ba184b63ed3cb411ce2b1
subscriptionsId
​string · required

Unique Webhook Subscriptions id.

Example: 5f3c2155d947844beedda991
topic
​string · enum · required

Description of the event that triggered the notification.

  • order.create - always value for OrderCreatePayload.topic ref
  • order.update - always value for OrderUpdatePayload.topic
  • extension.uninstall - always value for ExtensionUninstallPayload.topic
  • contact.create - always value for ContactCreatePayload.topic
  • contact.update - always value for ContactUpdatePayload.topic
  • contact.delete - always value for ContactDeletePayload.topic
  • address.create - always value for AddressCreatePayload.topic
  • address.update - always value for AddressUpdatePayload.topic
  • address.delete - always value for AddressDeletePayload.topic
Enum values:
order.create
Example: order.create
Default: order.create
websiteId
​string · required

Squarespace website id that triggered the notification.

Example: 5f3c3d55ac435e1a051f77b3

The created order details.

OrderFulfillmentRequest

Array of shipment data.

shouldSendNotification
​boolean

Indicates whether the customer should receive an email notification about the added shipments.

OrderListResponse

​object
​Order[]

OrderNote

Array of internal notes added to the order by the merchant.
content
​string

Content for the note

Example: First note

OrderUpdateData

The updated order details.
orderId
​string · required

Unique order id.

Example: 5f3c39ce69e11e796f19990e
update
​string · enum · required

The type of update on the order.

Enum values:
FULFILLED
REFUNDED
CANCELED
MARKED_PENDING
EMAIL_UPDATED
Example: FULFILLED

OrderUpdatePayload

createdOn
​string · date-time · required

Creation date and time in UTC (ISO 8601 format) of this message.

Example: 2024-01-28T10:44:00Z
id
​string · required

Unique notification id.

Example: 5c2ba184b63ed3cb411ce2b1
subscriptionsId
​string · required

Unique Webhook Subscriptions id.

Example: 5f3c2155d947844beedda991
topic
​string · enum · required

Description of the event that triggered the notification.

  • order.create - always value for OrderCreatePayload.topic ref
  • order.update - always value for OrderUpdatePayload.topic
  • extension.uninstall - always value for ExtensionUninstallPayload.topic
  • contact.create - always value for ContactCreatePayload.topic
  • contact.update - always value for ContactUpdatePayload.topic
  • contact.delete - always value for ContactDeletePayload.topic
  • address.create - always value for AddressCreatePayload.topic
  • address.update - always value for AddressUpdatePayload.topic
  • address.delete - always value for AddressDeletePayload.topic
Enum values:
order.update
Example: order.update
Default: order.update
websiteId
​string · required

Squarespace website id that triggered the notification.

Example: 5f3c3d55ac435e1a051f77b3

The updated order details.

PaginatedDiscountListResponse

Offset-paginated list of discounts for a website.
​Discount[] · required

Discounts for this page.

hasNextPage
​boolean

True when more results exist after the current window.

hasPreviousPage
​boolean

True when a page of results exists before the current window.

PaginatedGetContactsResponse

​Contact[]

paginated list of contacts retrieved

​object

PaginatedInventoryItemListResponse

​InventoryItem[]

Array of InventoryItem resources. If the merchant site doesn't have any physical or service product variants, this array is empty.

​object

PaginatedProductListResponse

​object
​Product[]

PaginatedProductListResponseV2

​object
​array

PaginatedProfileListResponse

​object
​Profile[]

PaginatedQueryContactsResponse

​Contact[]

paginated list of contacts retrieved

​object

PaginatedStorePagesResponse

​object
​StorePage[]

PaginatedTransactionListResponse

Array of Document resources. If the merchant site doesn't have any payment transactions for orders or donations, this array is empty.

​object

PaginationDetails

hasNextPage
​boolean
nextPageCursor
​string
nextPageUrl
​string

PatchContactRequest

Fields to update on an existing contact.
firstName
​string

The contact's first name.

Example: John
lastName
​string

The contact's last name.

Example: Smith
locale
​string

The contact's locale.

Example: en-US
​PatchEmail

Primary email fields for an update request.

Example: {"email":"[email protected]","acceptsMarketing":true}

PatchContactResponse

​Contact

A contact.

PatchEmail

Primary email fields for an update request.
acceptsMarketing
​boolean

If contact's email accepts marketing

Example: true
email
​string · email

The email address.

PaymentGatewayError

string · enum
Enum values:
GATEWAY_FEE_PROCEESING_ERROR
GATEWAY_API_PERMISSION_ERROR
GATEWAY_DISCONNNECTED

Captures errors from the payment gateway; value is null if not applicable.

PaymentPlanOptions

Payment-plan applicability settings for this discount. When omitted from a create or update request, defaults to NONE.
type
​string · enum · required

Defines how the discount applies to payment-plan payments.

Enum values:
NONE
ALL_PAYMENTS

PaymentState

string · enum
Enum values:
NOT_CHARGED
AUTHORIZED
PAID
REFUNDED
PENDING
FAILED
REFUND_PENDING
REFUND_FAILED

Current state of payment for the order.

PercentageTemplate

Apply a percentage discount off the cart total.
type
​string · required
percentage
​number · max: 100 · required

Percentage to subtract from the cart total. Range (0, 100].

PhysicalProduct

A PHYSICAL product.
createdOn
​string · date-time · required
id
​string · required
modifiedOn
​string · date-time · required
storePageId
​string · required
type
​ProductTypeV2 · enum · required
Enum values:
PHYSICAL
SERVICE
GIFT_CARD
DIGITAL
description
​string
isVisible
​boolean
name
​string
​SeoOptions

Options for search engine optimization.

tags
​string[]
url
​string
urlSlug
​string
variantAttributes
​string[]

PhysicalProductVariant

A variant of a PHYSICAL product.
​object
gtin
​string
id
​string
​ProductImage

Product image assigned to the variant.

mpn
​string
​ProductMeasurements

Measurements of the variant when it's shipped. Present for PHYSICAL products only.

sku
​string
​ProductStock

Available stock for the variant. Present for PHYSICAL products only.

Product

createdOn
​string · date-time

ISO 8601 UTC date and time string; represents when the Product was created.

description
​string

Long-form product description represented in HTML.

​DigitalGood

Present for DIGITAL products only.

id
​string

Unique Product id.

List of product images.

isVisible
​boolean

Indicates whether the product is available for purchase.

modifiedOn
​string · date-time

ISO 8601 UTC date and time string; represents when the Product was last modified.

name
​string

Product name.

​ProductPricing

Present for DIGITAL products only. Digital products don't have variants, so pricing is at the product level.

​SeoOptions

Options for search engine optimization.

storePageId
​string

Identifier of the product's Store Page.

tags
​string[]

Keywords for search and organization purposes.

type
​ProductType · enum

Product type indicator. Value may be: PHYSICAL or DIGITAL.

Enum values:
PHYSICAL
DIGITAL
url
​string

Absolute URL of the product details page.

urlSlug
​string

URL slug for the new product.

variantAttributes
​string[]

List of attributes to distinguish variants of the product. Present for PHYSICAL products only.

​ProductVariant[]

List of variants of the product. Present for PHYSICAL and GIFT_CARD products only.

ProductCriteria

Discount applies when the cart contains a specific product.
type
​string · required
productId
​string

Identifier of the product the discount targets.

productName
​string

Display-time snapshot of the product name at the time the discount was created.

ProductDimensions

Physical dimensions of the variant.
height
​number · float

Height of the variant.

length
​number · float

Length of the variant.

unit
​ProductDimensionsUnit · enum

Unit of measurement. Supported values: INCH, CENTIMETER.

Enum values:
CENTIMETER
INCH
width
​number · float

Width of the variant.

ProductDimensionsUnit

string · enum
Enum values:
CENTIMETER
INCH

Unit of measurement. Supported values: INCH, CENTIMETER.

ProductImage

Product image assigned to the variant.
altText
​string

Alt text for the image; impacts SEO and appears in search results.

availableFormats
​string[]

Available image sizes. Use with images.url and a format query parameter to retrieve the image at a particular width.

id
​string

Unique ProductImage id.

orderIndex
​integer · int32

Position of the image in the product's image list.

originalSize
​object

Image size when first uploaded.

url
​string

Absolute URL of the image hosted on Squarespace.

ProductImageProcessingStatus

id
​string
status
​ImageProcessingStatus · enum
Enum values:
QUEUED
PROCESSING
READY
ERROR

ProductListResponse

​Product[]

ProductListResponseV2

​array

ProductMeasurements

Measurements of the variant when it's shipped. Present for PHYSICAL products only.
​ProductDimensions

Physical dimensions of the variant.

​ProductWeight

Weight of the variant.

ProductPricing

Present for DIGITAL products only. Digital products don't have variants, so pricing is at the product level.
​MonetaryAmount

A monetary amount with currency code and decimal value.

onSale
​boolean

Indicates whether the variant is sold according to its sale price. Present for PHYSICAL products only.

​MonetaryAmount

A monetary amount with currency code and decimal value.

ProductStock

Available stock for the variant. Present for PHYSICAL products only.
quantity
​integer · int32

Number of units that can be purchased.

unlimited
​boolean

Indicates whether the variant has unlimited stock.

ProductType

string · enum
Enum values:
PHYSICAL
DIGITAL

Product type indicator. Value may be: PHYSICAL or DIGITAL.

ProductTypeV2

string · enum
Enum values:
PHYSICAL
SERVICE
GIFT_CARD
DIGITAL

ProductV2

createdOn
​string · date-time · required
id
​string · required
modifiedOn
​string · date-time · required
storePageId
​string · required
type
​ProductTypeV2 · enum · required
Enum values:
PHYSICAL
SERVICE
GIFT_CARD
DIGITAL
description
​string
isVisible
​boolean
name
​string
​SeoOptions

Options for search engine optimization.

tags
​string[]
url
​string
urlSlug
​string

ProductVariant

List of variants of the product. Present for PHYSICAL and GIFT_CARD products only.
attributes
​object

Specifies attribute-value pairs for the variant. Present for PHYSICAL products only.

id
​string

Unique ProductVariant id.

​ProductImage

Product image assigned to the variant.

​ProductPricing

Present for DIGITAL products only. Digital products don't have variants, so pricing is at the product level.

​ProductMeasurements

Measurements of the variant when it's shipped. Present for PHYSICAL products only.

sku
​string

Merchant-defined code that identifies the product variant.

​ProductStock

Available stock for the variant. Present for PHYSICAL products only.

ProductVariantV2

A product variant. The shape depends on the product type.
id
​string
​ProductImage

Product image assigned to the variant.

sku
​string
oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object
type = object
type = object
Properties for PhysicalProductVariant:
A variant of a PHYSICAL product.
​object
gtin
​string
id
​string
​ProductImage

Product image assigned to the variant.

mpn
​string
​ProductMeasurements

Measurements of the variant when it's shipped. Present for PHYSICAL products only.

sku
​string
​ProductStock

Available stock for the variant. Present for PHYSICAL products only.

ProductWeight

Weight of the variant.
unit
​ProductWeightUnit · enum

Unit of measurement. Supported values: KILOGRAM, POUND.

Enum values:
KILOGRAM
POUND
value
​number · float

Weight amount.

ProductWeightUnit

string · enum
Enum values:
KILOGRAM
POUND

Unit of measurement. Supported values: KILOGRAM, POUND.

Profile

acceptsMarketing
​boolean

Indicates whether the profile opted to receive marketing.

​Address

Customer's shipping address provided at checkout or, for recurring subscription orders, the customer's current mailing address.

createdOn
​string · date-time

ISO 8601 UTC date and time string; represents when the profile was created.

email
​string

Profile email address.

firstName
​string

Profile first name.

hasAccount
​boolean

Indicates whether the profile has an account with the website.

id
​string

Unique Profile id.

isCustomer
​boolean

Indicates whether the profile has any commerce orders or donations with the website.

lastName
​string

Profile last name.

​TransactionsSummary

Summary of profile's commerce transactions. If a profile has no commerce transactions, the object is still returned with null or 0 values. This information is calculated asynchronously; there may be a slight delay between when an order is created, and when it's reflected in the object.

ProfileListResponse

​Profile[]

PromoCodeTrigger

Trigger for a discount that is unlocked by a shopper-entered promo code.
type
​string · required
promoCode
​string · pattern: ^[A-Za-z0-9_\-]{1,50… · required

Shopper-entered promo code. Required, non-empty, 1–50 characters; allowed characters: letters, digits, underscore, hyphen.

QueryContactsRequest

​AcceptsMarketingWithDate

Contact's marketing settings with joined on date

cursor
​string

The cursor for the next page of results. Use the value of pagination.nextPageCursor from the previous response.

​IntegerFilter

Object for filtering by a min and max integer

​IntegerFilter

Object for filtering by a min and max integer

​DateFilter

Object for filtering by before and after dates

​DateFilter

Object for filtering by before and after dates

​DateFilter

Object for filtering by before and after dates

​DateFilter

Object for filtering by before and after dates

​IntegerFilter

Object for filtering by a min and max integer

​IntegerFilter

Object for filtering by a min and max integer

pageSize
​integer · int32 · min: 1 · max: 1000

The number of contacts to return per request.

Default: 50
searchString
​string

Search string for Name and Email address

sortDirection
​string · enum

Direction to sort results, ASCENDING or DESCENDING

Enum values:
ASCENDING
DESCENDING
sortField
​string · enum

Field to sort results by

Enum values:
ID
CREATED_ON
EMAIL
ACCEPTS_MARKETING_JOINED_ON
FIRST_NAME
LAST_NAME
ORDER_COUNT
LAST_ORDER_ON

RetrieveTransactionsSummariesRequest

contactIds
​string[] · minItems: 1 · maxItems: 1000 · required
groupBy
​string · enum · minLength: 1 · required

Field to group results by, should be a contactId

Enum values:
contactId
Example: contactId

RetrieveTransactionsSummariesResponse

​TransactionsSummaryWrapper[]

List of transaction summary wrappers

SelectedShippingOption

A shipping option targeted by a free-shipping discount.
shippingOptionId
​string · required

Identifier of the shipping option.

shippingOptionName
​string · required

Display-time snapshot of the shipping option name.

isAllServicesSelected
​boolean

If true, all services within the shipping option are eligible.

selectedService
​string · enum

Carrier service eligible for a free-shipping discount.

Enum values:
FEDEX_GROUND
FEDEX_GROUND_HOME_DELIVERY
FEDEX_PRIORITY_OVERNIGHT
FEDEX_STANDARD_OVERNIGHT
FEDEX_2_DAY
FEDEX_2_DAY_AM
FEDEX_EXPRESS_SAVER
FEDEX_FIRST_OVERNIGHT

SeoOptions

Options for search engine optimization.
description
​string
title
​string

ServiceProduct

A SERVICE product.
createdOn
​string · date-time · required
id
​string · required
modifiedOn
​string · date-time · required
storePageId
​string · required
type
​ProductTypeV2 · enum · required
Enum values:
PHYSICAL
SERVICE
GIFT_CARD
DIGITAL
description
​string
isVisible
​boolean
name
​string
​SeoOptions

Options for search engine optimization.

tags
​string[]
url
​string
urlSlug
​string
variantAttributes
​string[]

ServiceProductVariant

A variant of a SERVICE product.
​object
id
​string
​ProductImage

Product image assigned to the variant.

sku
​string
​ProductStock

Available stock for the variant. Present for PHYSICAL products only.

ShippingLine

Array of shipping line items; describes the shipping options chosen at checkout.

A monetary amount with currency code and decimal value.

method
​string

Description of the shipping option

Example: UPS Ground

ShopperFulfillmentNotificationBehavior

string · enum
Enum values:
SEND
SKIP

Indicates whether to send a fulfillment notification email to the customer. Value may be SEND or SKIP.

SimpleProductPricing

​MonetaryAmount

A monetary amount with currency code and decimal value.

StandardErrorPayload

contextId
​string
details
​object
message
​string
subtype
​string · enum
Enum values:
MISSING_ARGUMENT
INVALID_ARGUMENT
INVALID_CONTENT_TYPE
CONCURRENT_MODIFICATION
INSUFFICIENT_STOCK
STOCK_NOT_TRACKED
STOCK_EXCEEDS_MAX
CURRENCY_MISMATCH
type
​string · enum
Enum values:
INVALID_REQUEST_ERROR
AUTHORIZATION_ERROR
WEBSITE_EXPIRED
METHOD_NOT_ALLOWED
CONFLICT
TOO_MANY_REQUESTS
SERVER_ERROR
SERVICE_UNAVAILABLE

StorePage

id
​string
isEnabled
​boolean
title
​string
urlSlug
​string

SubscriptionOptions

Subscription applicability settings for this discount. When omitted from a create or update request, defaults to EXCLUDED.
type
​string · enum · required

Defines how the discount applies to subscription payments.

Enum values:
EXCLUDED
ALL_PAYMENTS
LIMITED_PAYMENTS

TaxInterpretation

string · enum
Enum values:
INCLUSIVE
EXCLUSIVE

Indicates that lineItems.unitPricePaid includes tax. Values may be EXCLUSIVE or INCLUSIVE.

TransactionDiscount

Array of discounts for an order payment transaction; empty for donations.

A monetary amount with currency code and decimal value.

description
​string

Discount description.

Example: Discount description
name
​string

Discount name.

Example: Sales Discount

TransactionDocument

Array of Document resources.
createdOn
​string · date-time

ISO 8601 UTC date and time string; represents when the Document was created.

Example: 2019-11-18T21:20:05.354Z
customerEmail
​string · email

Customer or donor email address. May be null for point of sale orders because email wasn't collected.

Array of discounts for an order payment transaction; empty for donations.

id
​string

Unique Document id.

Example: a7e4c6b5-d1fe-4e42-a932-f185b4b86829
modifiedOn
​string · date-time

ISO 8601 UTC date and time string; represents when the Document was last modified.

Example: 2019-11-18T21:23:02.87Z
paymentGatewayError
​PaymentGatewayError · enum

Captures errors from the payment gateway; value is null if not applicable.

Enum values:
GATEWAY_FEE_PROCEESING_ERROR
GATEWAY_API_PERMISSION_ERROR
GATEWAY_DISCONNNECTED

Array of payment transactions for the order or donation.

Array of sales items for an order payment transaction; empty for donations.

salesOrderId
​string

Unique order id; not applicable if payment transaction is a donation.

Example: 5d71991aac180c3e7857e1df
​TransactionShippingLineItem[]

Array of shipping line items.

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

voided
​boolean

Flag; indicates order cancellation.

TransactionListResponse

Array of Document resources.

TransactionPayment

Array of payment transactions for the order or donation.

A monetary amount with currency code and decimal value.

creditCardType
​string

Payment credit card type; possible values: VISA, MASTERCARD, DISCOVER, AMEX, JCB, and OTHER. null if credit card processing isn't available for the payment gateway.

Example: VISA
externalCustomerId
​string

Unique customer id for the payment transaction provided by the payment gateway. Value is null if not available.

externalTransactionId
​string

Unique id for the payment transaction provided by the payment gateway.

Example: ch_1FFCJCLMG4qggZ0BzchTZjwR
​ExternalTransactionProperty[]

Array of properties for the payment transaction provided by the payment gateway. Properties are listed in key/value pairs.

giftCardId
​string · uuid

Unique id for a Squarespace gift card. Value is null if a gift card was not used.

Example: ece69479-50bc-4763-9067-4473f3abcf83
id
​string

Unique payment id.

Example: ece69479-50bc-4763-9067-4473f3abcf83
​MonetaryAmount

A monetary amount with currency code and decimal value.

paidOn
​string · date-time

ISO 8601 UTC date and time string; represents when the payment was made.

Example: 2019-09-05T23:24:09.845Z

Array of processing fees associated with the payment.

provider
​string

Payment gateway used for processing.

Example: STRIPE
​MonetaryAmount

A monetary amount with currency code and decimal value.

Array of refunds for the payment transaction.

TransactionProcessingFee

Array of processing fees associated with the payment.

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

exchangeRate
​number

Foreign exchange rate between the payment gateway's and payment's currencies; determined when the payment is processed.

Example: 1

Array of processing fee refunds for the payment.

id
​string

Unique processing fee id.

Example: 2Jdsno3mdk
​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

TransactionProcessingFeeRefund

Array of processing fee refunds for the payment.

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

exchangeRate
​number

Foreign exchange rate between the payment gateway's and payment's currencies; determined when the payment is processed.

Example: 1
externalTransactionId
​string

Unique id for the processing fee refund transaction provided by the payment gateway.

Example: 3fjowGck2f
id
​string

Unique processing fee refund id.

Example: c413a46c-b3e8-426d-8e0f-a4bc7a18cdd0
refundedOn
​string · date-time

ISO 8601 UTC date and time string; represents when the processing fee refund was issued.

Example: 2019-11-18T21:22:06.5Z

TransactionRefund

Array of refunds for the payment transaction.

A monetary amount with currency code and decimal value.

externalTransactionId
​string

Unique id for the refund transaction provided by the payment gateway.

Example: re_1Flhp8J4wh083J8f7qYtzU9m
id
​string

Unique refund id.

Example: cfdb6b87-64bf-461a-b48b-eca7bd2389fc
refundedOn
​string · date-time

ISO 8601 UTC date and time string; represents refund issue date.

Example: 2019-11-18T21:22:06.5Z

TransactionSalesLineItem

Array of sales items for an order payment transaction; empty for donations.
​MonetaryAmount

A monetary amount with currency code and decimal value.

id
​string

Unique id for the sales item.

Example: d93f9637-fba6-4e8b-a1f3-24008f60c774

Array of taxes for the sale item.

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

TransactionShippingLineItem

Array of shipping line items.

A monetary amount with currency code and decimal value.

description
​string

Description of the shipping line item as defined by the Squarespace merchant.

Example: USPS Flat Rate
​MonetaryAmount

A monetary amount with currency code and decimal value.

id
​string

Unique id for the shipping line item.

Example: bd63d55e-0066-400e-9aa9-e75d4e6215b0
​MonetaryAmount

A monetary amount with currency code and decimal value.

Array of taxes for the shipping line item.

TransactionTax

Array of taxes for the shipping line item.

A monetary amount with currency code and decimal value.

jurisdiction
​string

Tax jurisdiction in COUNTRY:{value},STATE:{value},LOCAL:{value} format. Examples: COUNTRY:US, COUNTRY:US,STATE:NY, and COUNTRY:US,STATE:NY,LOCAL:10001.

Example: COUNTRY:US,STATE:NY,LOCAL:10001
name
​string

Tax classification as defined by the Squarespace merchant.

Example: Local Sales Tax
rate
​string

Tax rate as a percent. For example, a value of 7.00 is a 7% tax.

Example: 10.0

TransactionsSummary

Summary of profile's commerce transactions. If a profile has no commerce transactions, the object is still returned with null or 0 values. This information is calculated asynchronously; there may be a slight delay between when an order is created, and when it's reflected in the object.
donationCount
​integer · int32

Count of donations submitted.

firstDonationSubmittedOn
​string · date-time

ISO 8601 UTC date and time string; represents when the profile's first donation was submitted.

firstOrderSubmittedOn
​string · date-time

ISO 8601 UTC date and time string; represents when the profile's first order was submitted.

lastDonationSubmittedOn
​string · date-time

ISO 8601 UTC date and time string; represents when the profile's latest donation was submitted.

lastOrderSubmittedOn
​string · date-time

ISO 8601 UTC date and time string; represents when the profile's latest order was submitted.

orderCount
​integer · int32

Count of orders submitted.

​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

​MonetaryAmount

A monetary amount with currency code and decimal value.

TransactionsSummaryWrapper

List of transaction summary wrappers
contactId
​string

Unique contact identifier

Example: a6e74e0c-2b4a-4b63-b4a3-9c5d1f3e8a7b
​TransactionsSummary

Summary of profile's commerce transactions. If a profile has no commerce transactions, the object is still returned with null or 0 values. This information is calculated asynchronously; there may be a slight delay between when an order is created, and when it's reflected in the object.

UpdateAddressBookEntryRequest

​ContactAddress · required

Address properties for a contact.

defaultShipping
​boolean

Whether this entry should be the default shipping address. When updating the entry that is currently the default, changing this value from true to false has no effect.

UpdateAddressBookEntryResponse

​AddressBookEntry

An address book entry for a contact.

UpdateProductImageOrderRequest

​ChangeString

Optional; HTTPS URL to receive webhook notifications.

UpdateProductImageRequest

​ChangeString

Optional; HTTPS URL to receive webhook notifications.

UpdateProductMeasurements

UpdateProductPricing

UpdateProductRequest

​ChangeString

Optional; HTTPS URL to receive webhook notifications.

​ChangeBoolean

Optional; HTTPS URL to receive webhook notifications.

Pricing data for the product.

​ChangeListString

Optional; list of event topics that trigger a webhook notification. Possible values include: extension.uninstall, order.create, order.update.

Options for search engine optimization.

Optional; list of event topics that trigger a webhook notification. Possible values include: extension.uninstall, order.create, order.update.

​ChangeString

Optional; HTTPS URL to receive webhook notifications.

UpdateProductVariantRequest

Specifies attribute-value pairs for the variant. Supported for PHYSICAL products only.

Pricing data for the product.

​ChangeUpdateProductMeasurements

Measurements of the variant when it's shipped. Supported for PHYSICAL products only.

Optional; HTTPS URL to receive webhook notifications.

UpdateVariantRequestV2

Specifies attribute-value pairs for the variant. Supported for PHYSICAL products only.

Optional; HTTPS URL to receive webhook notifications.

Optional; HTTPS URL to receive webhook notifications.

Pricing data for the product.

​ChangeUpdateProductMeasurements

Measurements of the variant when it's shipped. Supported for PHYSICAL products only.

Optional; HTTPS URL to receive webhook notifications.

UploadProductImageResponse

imageId
​string

Unique ProductImage id.

VariantOption

Array of variant options; represents variant choices made by the customer. Null for download and gift card products.
optionName
​string

The name of the option (e.g. color, size, material)

Example: Size
value
​string

The shopper-selected value for the option (e.g. red, small, cotton)

Example: Large

WebsiteProfile

currency
​string
id
​string
language
​string
​Location
measurementStandard
​MeasurementStandard · enum
Enum values:
IMPERIAL
METRIC
siteId
​string
timeZone
​string
title
​string
url
​string