---
title: "Get ERP Location"
method: GET
path: "/erp/locations/{location_id}"
tags: ["erp", "Locations"]
---

# Get ERP Location

`GET /erp/locations/{location_id}`

## Request

- Base URL: `https://production.trackstarhq.com`
- URL: `https://production.trackstarhq.com/erp/locations/{location_id}`
- Auth: none required

Returns a single Location for the ERP connection with the associated location id.

## Path parameters

- `location_id` string, required

## Headers

- `x-trackstar-api-key` string, required
- `x-trackstar-access-token` string, required

## Response `200`

Successful response

- ErpLocationsSingleItemEndpoint
  - `data` ErpLocationApiItemSchema
    - `id` string, required: The unique ID of the location in the ERP.
    - `created_date` string, date-time, required: The date the location was created.
    - `updated_date` string, date-time, required: The date the location was last updated.
    - `name` string, required: The name of the location as shown in the ERP.
    - `code` string, nullable, required: A short user-facing code for the location. Many ERPs do not distinguish a code from the name.
    - `active` boolean, nullable, required: Whether the location is active in the ERP.
    - `location_type` string, nullable, required: The ERP's classification for the location (e.g., Warehouse, Store, Office).
    - `full_path` string, nullable, required: The hierarchical path of the location (e.g., 'North America : West : Fresno DC'). Populated when the ERP nests locations under parents.
    - `parent_location_id` string, nullable, required: ID of the parent location in the ERP's location hierarchy.
    - `parent_location_name` string, nullable, required: Display name of the parent referenced by parent_location_id.
    - `address` ShipFromAddress, required
      - `address1` string, nullable, required
      - `address2` string, nullable, required
      - `address3` string, nullable, required
      - `city` string, nullable, required
      - `state` string, nullable, required
      - `postal_code` string, nullable, required
      - `country` string, nullable, required
    - `custom_fields` object, required: Per-account custom fields defined on the location. Keys are the field names as defined in the ERP; each value carries the raw value, its declared type, and a human-readable label.
    - `external_system_url` string, nullable, required: URL link to the location in the external system (WMS/Freight etc).
    - `trackstar_tags` unknown[], nullable, required: A list of custom tags associated with the resource. A tag can be either a string or a dictionary with one key-value pair.
      - unknown
    - `additional_fields` object, required: Integration-specific fields
    - `trackstar_created_date` string, date-time, required
    - `trackstar_updated_date` string, date-time, required

## Other responses

- `404`: Not found
- `422`: Validation error

## Changes

- **2026-11-03** `f9f948f2a7b3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trackstarhq/apis/trackstar-api/changes/erp/locations/:location_id/get.md)

---

[API](https://skmtc.dev/trackstarhq/apis/trackstar-api.md) - [All operations](https://skmtc.dev/trackstarhq/apis/trackstar-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trackstarhq/apis/trackstar-api/revisions/08647f790594?raw)
