# Company locations

Section: Team settings. Part of the [API reference](https://developer.yoprint.com/reference.md). Web page: https://developer.yoprint.com/reference/company-locations/

This page and all 10 operation pages, in 2 files: https://developer.yoprint.com/llms/company-locations.txt (operations 1 to 6), https://developer.yoprint.com/llms/company-locations-2.txt (operations 7 to 10)

The team's own addresses: the primary location, warehouses, the default warehouse and tax nexus.

## Operations (10)

- [Create a company location](https://developer.yoprint.com/reference/company-locations/v1-location-store.md): `POST /v1/api/store/{team_slug}/setting/location`. Adds a company location and returns it.
- [List company locations](https://developer.yoprint.com/reference/company-locations/v1-location-index.md): `GET /v1/api/store/{team_slug}/setting/location`. Returns all the team's company locations in one list.
- [Show a company location](https://developer.yoprint.com/reference/company-locations/v1-location-show.md): `GET /v1/api/store/{team_slug}/setting/location/{hash_id}`. Returns one company location, deleted or not.
- [Update a company location](https://developer.yoprint.com/reference/company-locations/v1-location-update-put.md): `PUT /v1/api/store/{team_slug}/setting/location/{hash_id}`. 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.
- [Update a company location without checks](https://developer.yoprint.com/reference/company-locations/v1-location-update-patch.md): `PATCH /v1/api/store/{team_slug}/setting/location/{hash_id}`. Use PUT to change a company location.
- [Set the default warehouse](https://developer.yoprint.com/reference/company-locations/v1-location-default-warehouse.md): `PATCH /v1/api/store/{team_slug}/setting/location/{id}/default_warehouse`. Makes this warehouse the team's default warehouse and returns it.
- [Set a location as a warehouse](https://developer.yoprint.com/reference/company-locations/v1-location-hold-stock.md): `PATCH /v1/api/store/{team_slug}/setting/location/{id}/hold_stock`. Turns a company location into a warehouse that can hold stock (`hold_stock: true`) and returns it.
- [Set the primary location](https://developer.yoprint.com/reference/company-locations/v1-location-primary.md): `PATCH /v1/api/store/{team_slug}/setting/location/{id}/primary`. Makes this company location the team's primary location (its primary billing address) and returns it.
- [Delete a company location](https://developer.yoprint.com/reference/company-locations/v1-location-destroy.md): `DELETE /v1/api/store/{team_slug}/setting/location/{hash_id}`. Deletes a company location.
- [Restore a company location](https://developer.yoprint.com/reference/company-locations/v1-location-restore.md): `PATCH /v1/api/store/{team_slug}/setting/location/{id}/restore`. Brings back a deleted company location.
