> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commenda.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List locations

> List locations for a corporation

Retrieve all locations associated with a corporation. Supports cursor-based pagination and optional filtering by jurisdiction.

## Query parameters

<ParamField query="corporation_id" type="string" required>
  The unique identifier (UUID) for the corporation.
</ParamField>

<ParamField query="limit" type="integer">
  Number of results per page. Default: `10`, maximum: `100`.
</ParamField>

<ParamField query="cursor" type="string">
  Pagination cursor from a previous response.
</ParamField>

<ParamField query="jurisdiction_ids" type="string">
  Comma-separated list of jurisdiction IDs to filter by.

  Example: `JUR_US_STATE_CA,JUR_US_STATE_TX`
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://transaction-tax.api.in.commenda.io/api/v1/locations?corporation_id=550e8400-e29b-41d4-a716-446655440000&limit=20' \
    --header 'Authorization: Bearer <your_token>'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "message": "Successfully fetched locations.",
    "data": {
      "locations": [
        {
          "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
          "corporation_id": "550e8400-e29b-41d4-a716-446655440000",
          "address": {
            "address_line_1": "123 Main Street",
            "city": "San Francisco",
            "state": "CA",
            "postal_code": "94105",
            "country": "US"
          },
          "location_types": ["HEADQUARTERS", "REGISTERED_OFFICE"],
          "is_primary": true,
          "is_active": true,
          "start_date": "2024-01-01",
          "created_at": "2024-01-15T10:30:00Z",
          "updated_at": "2024-01-15T10:30:00Z"
        }
      ],
      "cursor": "eyJpZCI6ImIyYzNkNGU1..."
    }
  }
  ```

  ```json 200 - Empty theme={null}
  {
    "message": "Successfully fetched locations.",
    "data": {
      "locations": [],
      "cursor": null
    }
  }
  ```
</ResponseExample>
