Getting started
Using Commerce APIs
Inventory API
Orders API
Overview
POST: Create an order
POST: Fulfill an order
GET: Retrieve all orders
GET: Retrieve a specific order
Products API
Overview
About product attributes
Managing attributes
POST: Create a product
POST: Create a product variant
POST: Upload a product image
GET: Retrieve all Store Pages
GET: Retrieve all products
GET: Retrieve specific products
GET: Product image upload status
POST: Assign a product image to variant
POST: Reorder a product image
POST: Update a product
POST: Update a product variant
POST: Update a product image
DEL: Delete a product
DEL: Delete a product variant
DEL: Delete a product image
Profiles API
Transactions API
Webhook Subscriptions API
About product attributes
What is an attribute?
Attributes are characteristics of a physical product that allow different variants of the same product. For example, a merchant may sell Pies as a product with "Flavor" as an attribute, where "Key Lime" and "Pecan" may be different variants of Pies.
When can I create attributes for a product?
When creating a physical product in the Squarespace UI, a variant without attributes is created by default. In order to distinguish any new variants from each other, attributes (known as "Options" in the UI) must be added to the product first.
A Product
must have at least one variant and attributes adhering to the following conditions.
# of Product.variants | Product.variantAttributes | # of attributes; min | # of attributes; max |
---|---|---|---|
1 | Not required | 0 | 6 |
2 or more | Required | 1 | 6 |
Further reading
- Learn how to Manage attributes of a product using the Products API