**Version: 202701**

# Location

Manage warehouse and retail locations used for inventory and fulfillment

A location is a physical or virtual site such as a warehouse or store that holds the merchant's inventory. Merchants and apps use locations to organize stock distribution and routing of orders to fulfillment sites.

Provides endpoints to list, retrieve, count, and query inventory levels of locations, manage the default location, deactivate a location, and adjust location priority.

- [List locations](/api/202701/locations) `GET /openapi/2027-01/locations`: List all locations for shipping, inventory, and order fulfillment.

- [Get location](/api/202701/location-detail) `GET /openapi/2027-01/locations/:location_id`: Get location for shipping, inventory, and order fulfillment by id

- [Count locations](/api/202701/location-count) `GET /openapi/2027-01/locations/count`: Count all locations for shipping, inventory, and order fulfillment.

- [List inventory levels](/api/202701/location-inventory-levels) `GET /openapi/2027-01/locations/:location_id/inventory_levels`: List all inventory information of this location.

- [Get default location](/api/202701/location-get-default) `GET /openapi/2027-01/locations/default`: Get default location.

- [Change default location](/api/202701/location-change-default) `POST /openapi/2027-01/locations/default`: change default location

- [Deactivate location](/api/202701/location-deactivate) `POST /openapi/2027-01/locations/deactivate`: Deactivate location

- [Edit location priority](/api/202701/location-edit-priority) `POST /openapi/2027-01/locations/priority`: edit location priority
