---
title: "Get all locations"
method: GET
path: "/consumers/{consumer_id}/commerce/locations"
tags: ["eCommerce", "Locations"]
---

# Get all locations

`GET /consumers/{consumer_id}/commerce/locations`

Returns a list of all locations

## Path parameters

- `consumer_id` string, uuid, required

## Query parameters

- `page` integer
- `size` integer

## Response `200`

Successful Response

- ChiftPageCommerceLocationItemOut
  - `items` CommerceLocationItemOut[], required
    - `id` string, required — Technical id of the location in Chift
    - `name` string, required
    - `source_ref` Ref
      - `id` string, nullable — Technical id in the target software
      - `model` string, nullable — Name of the model/entity in the target software
  - `total` integer, required
  - `page` integer, required
  - `size` integer, required

## Other responses

- `400` — Bad Request
- `422` — Validation Error

---

[API](https://skmtc.net/chift/apis/chift-api.md) · [All operations](https://skmtc.net/chift/apis/chift-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chift/chift-api/versions/b5f1214a482a/schema)
