## Retrieves locations for a specific store.

`LocationListLocationsPageResponse Locations.ListLocations(LocationListLocationsParamsparameters, CancellationTokencancellationToken = default)`

**get** `/api/v2/public/stores/{store_number}/locations`

Retrieves locations for a specific store.

### Parameters

- `LocationListLocationsParams parameters`

  - `required string storeNumber`

    The store number to get locations for.

  - `string acceptLanguage`

  - `string appUsername`

  - `Boolean ignoreCustomerorderStock`

    When true, excludes customer order stock from results.

  - `Int pageSize`

  - `Int pageStart`

  - `string searchText`

### Returns

- `class LocationListLocationsPageResponse:`

  Generic paginated response wrapper.

  - `required Int PageSize`

    Maximum number of items returned per page.

  - `required Int PageStart`

    Current page number (1-based).

  - `required Long TotalCount`

    Total number of records matching the query across all pages.

  - `IReadOnlyList<LocationListLocationsResponse>? List`

    Collection of items for the current page.

    - `required Long ID`

      Internal location identifier.

    - `required Int Counter`

      Number of products counted at this location.

    - `required DateTimeOffset CreatedOn`

      Date and time the location was created.

    - `required Int LocationOrder`

      Order in which the location appears in walking sequences.

    - `IReadOnlyList<string>? CustomerOrders`

      Customer orders associated with this location.

    - `string? DefaultStockPool`

      Name of the default stock pool for this location.

    - `string? LocationCode`

      Code identifying the location within the store.

    - `Double? Quantity`

      Total stock quantity at this location.

    - `IReadOnlyList<Stock>? Stock`

      Per-product stock breakdown at this location.

      - `Int? CustomerOrderLineNumber`

        Customer order line number.

      - `string? CustomerOrderNumber`

        Associated customer order number.

      - `Int? CustomerOrderShipmentLineNumber`

        Customer order shipment line number.

      - `string? CustomerOrderShipmentNumber`

        Customer order shipment number.

      - `Double? Mostlikelypool1`

        Most likely quantity in stock pool 1.

      - `Double? Mostlikelypool10`

        Most likely quantity in stock pool 10.

      - `Double? Mostlikelypool2`

        Most likely quantity in stock pool 2.

      - `Double? Mostlikelypool3`

        Most likely quantity in stock pool 3.

      - `Double? Mostlikelypool4`

        Most likely quantity in stock pool 4.

      - `Double? Mostlikelypool5`

        Most likely quantity in stock pool 5.

      - `Double? Mostlikelypool6`

        Most likely quantity in stock pool 6.

      - `Double? Mostlikelypool7`

        Most likely quantity in stock pool 7.

      - `Double? Mostlikelypool8`

        Most likely quantity in stock pool 8.

      - `Double? Mostlikelypool9`

        Most likely quantity in stock pool 9.

      - `string? ProductDescription`

        Product description.

      - `string? ProductNumber`

        Product number.

      - `Double? Quantity`

        Live total quantity at this location.

    - `IReadOnlyList<string>? Tags`

      Tags applied to the location.

  - `IReadOnlyDictionary<string, JsonElement>? ListBody`

    Additional body-level metadata for the list.

  - `IReadOnlyDictionary<string, IReadOnlyList<string>>? ListFilters`

    Active filter criteria applied to the result set, keyed by field name.

  - `Int? NextPage`

    Next page number, or null when on the last page.

  - `Long? PreviousPage`

    Previous page number, or null when on the first page.

  - `string? ProjectLastModifiedDate`

    Last modified date/time of the project.

  - `string? ScrollID`

    Opaque scroll identifier for deep-pagination scenarios.

  - `string? ServerTime`

    Server UTC date/time when the response was generated.

  - `string? SortColumn`

    Column name the results are sorted by.

  - `string? SortOrder`

    Sort direction (asc or desc).

  - `string? TaskLastModifiedDate`

    Last modified date/time of the task.

### Example

```csharp
LocationListLocationsParams parameters = new() { StoreNumber = "store_number" };

var page = await client.Locations.ListLocations(parameters);
await foreach (var item in page.Paginate())
{
    Console.WriteLine(item);
}
```

#### Response

```json
{
  "page_size": 0,
  "page_start": 0,
  "total_count": 0,
  "list": [
    {
      "id": 0,
      "counter": 0,
      "created_on": "2019-12-27T18:11:19.117Z",
      "location_order": 0,
      "customer_orders": [
        "string"
      ],
      "default_stock_pool": "default_stock_pool",
      "location_code": "location_code",
      "quantity": 0,
      "stock": [
        {
          "customer_order_line_number": 0,
          "customer_order_number": "customer_order_number",
          "customer_order_shipment_line_number": 0,
          "customer_order_shipment_number": "customer_order_shipment_number",
          "mostlikelypool1": 0,
          "mostlikelypool10": 0,
          "mostlikelypool2": 0,
          "mostlikelypool3": 0,
          "mostlikelypool4": 0,
          "mostlikelypool5": 0,
          "mostlikelypool6": 0,
          "mostlikelypool7": 0,
          "mostlikelypool8": 0,
          "mostlikelypool9": 0,
          "product_description": "product_description",
          "product_number": "product_number",
          "quantity": 0
        }
      ],
      "tags": [
        "string"
      ]
    }
  ],
  "list_body": {
    "foo": "bar"
  },
  "list_filters": {
    "foo": [
      "string"
    ]
  },
  "next_page": 0,
  "previous_page": 0,
  "project_last_modified_date": "project_last_modified_date",
  "scroll_id": "scroll_id",
  "server_time": "server_time",
  "sort_column": "sort_column",
  "sort_order": "sort_order",
  "task_last_modified_date": "task_last_modified_date"
}
```
