About the Stores Locations API

The Stores Locations API is read-only and provides access to inventory locations for Wix Stores.

To create or update locations, use the Wix Locations API. Only locations with INVENTORY in the locationTypes array will appear in this API.

Each inventory item is associated with a location. A location can be a physical place like a warehouse or retail store, or a virtual location for online-only stores.

When a store is created, a default Stores location is automatically created. This default location is used for all inventory items that don't have a specific location assigned.

Creating inventory locations

To create a new inventory location:

  1. Call Create Location in the Wix Locations API.
  2. Include "INVENTORY" in the locationTypes array.

The location will then automatically appear in the Stores Locations API.

All updates and deletions must be done through the Wix Locations API and will be reflected in the Stores Locations API.

Before you begin

It's important to note the following points before starting to code:

  • The site owner must have the Wix Stores app installed.

Use cases

Terminology

  • Stores Location: A location configured for inventory management in Wix Stores.
  • Virtual Location: A location that is not a physical place, used for online-only stores without a warehouse.
  • Default Location: The automatically created Stores Location used for inventory items without a specific location assigned.
  • Wix Location: A location managed through the Wix Locations API, which can serve multiple purposes including inventory.
Did this help?