Inventory API overview
Current version: 1.0
For versioning details, read the Upgrade guide.
Use the Inventory API to read and adjust stock information for product variants on a Squarespace merchant site. Inventory can be limited ("tracked") or unlimited ("not tracked").
What information isn't available?
- Information for products that are not physical goods or services, e.g. gift cards, download products
- Product variant information such as color, size, and weight
- Whether the variant is visible for sale on the merchant site
API resources
The Inventory API returns InventoryItem
resource objects.
An InventoryItem
is always a variant of a physical product or service product
on a Squarespace merchant site, and provides stock information about an item.
For example, if a bakery on Squarespace sells Pies as a product, then "Key Lime" may be a product variant.
The "Key Lime" variant's stock information would be available in an InventoryItem
.
The resource also provides information like:
- The stock keeping unit (SKU) code set by a merchant
- The availability of the item, i.e. whether its unlimited or has a large enough quantity
- A human-readable descriptor for identifying an item by its attributes
Resource fields are described under Response example for each Inventory API endpoint.
Further reading
- Become familiar with common commerce terms and how they're related to the API
- Obtain an API key or use OAuth
- Read the FAQ guide for answers to common questions