Company locations
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/company-locations.md. Index of every page and the rules for every call: /llms.txt. Guides and concepts in one file: /llms-full.txt. OpenAPI: /openapi.json.
The team's own addresses: the primary location, warehouses, the default warehouse and tax nexus.
10 operations
- POSTCreate a company location
/Adds a company location and returns it.v1/ api/ store/ {team_slug}/ setting/ location - GETList company locations
/Returns all the team's company locations in one list.v1/ api/ store/ {team_slug}/ setting/ location - GETShow a company location
/Returns one company location, deleted or not.v1/ api/ store/ {team_slug}/ setting/ location/ {hash_id} - PUTUpdate a company location
/Changes a location's address, label, note or tax nexus in place: the id stays the same, so every order, purchase order and stock record that uses it shows the new address.v1/ api/ store/ {team_slug}/ setting/ location/ {hash_id} - PATCHUpdate a company location without checks
/Use PUT to change a company location.v1/ api/ store/ {team_slug}/ setting/ location/ {hash_id} - PATCHSet the default warehouse
/Makes this warehouse the team's default warehouse and returns it.v1/ api/ store/ {team_slug}/ setting/ location/ {id}/ default_warehouse - PATCHSet a location as a warehouse
/Turns a company location into a warehouse that can hold stock (v1/ api/ store/ {team_slug}/ setting/ location/ {id}/ hold_stock hold_stock: true) and returns it. - PATCHSet the primary location
/Makes this company location the team's primary location (its primary billing address) and returns it.v1/ api/ store/ {team_slug}/ setting/ location/ {id}/ primary - DELETEDelete a company location
/Deletes a company location.v1/ api/ store/ {team_slug}/ setting/ location/ {hash_id} - PATCHRestore a company location
/Brings back a deleted company location.v1/ api/ store/ {team_slug}/ setting/ location/ {id}/ restore
