---
title: "Erp location updated"
method: POST
path: "erp-location.updated"
---

# Erp location updated

`POST erp-location.updated` (webhook)

When a Location is updated.

## Payload

- union
  - ErpLocationsUpdatedFullWebhook
    - `connection_id` string, required
    - `data` ErpLocationApiItemSchema, required
      - `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
    - `event_type` 'erp-location.updated', required
    - `integration_name` string, required
    - `integration_type` string, required
    - `previous_attributes` ErpLocationsUpdatedPreviousAttributes, required
      - `id` string: The unique ID of the location in the ERP.
      - `created_date` string, date-time: The date the location was created.
      - `updated_date` string, date-time: The date the location was last updated.
      - `name` string: The name of the location as shown in the ERP.
      - `code` string, nullable: A short user-facing code for the location. Many ERPs do not distinguish a code from the name.
      - `active` boolean, nullable: Whether the location is active in the ERP.
      - `location_type` string, nullable: The ERP's classification for the location (e.g., Warehouse, Store, Office).
      - `full_path` string, nullable: 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: ID of the parent location in the ERP's location hierarchy.
      - `parent_location_name` string, nullable: Display name of the parent referenced by parent_location_id.
      - `address` ShipFromAddress
        - `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: 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: URL link to the location in the external system (WMS/Freight etc).
      - `trackstar_tags` unknown[], nullable: 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: Integration-specific fields
      - `trackstar_created_date` string, date-time
      - `trackstar_updated_date` string, date-time
  - ErpLocationsUpdatedTruncatedWebhook
    - `connection_id` string, required
    - `data` ErpLocationsUpdatedTruncatedData, required
      - `id` string: The record this event is about. Absent on connection webhooks, which carry dates rather than a row.
    - `event_type` 'erp-location.updated', required
    - `integration_name` string, required
    - `integration_type` string, required
    - `previous_attributes` ErpLocationsUpdatedTruncatedPreviousAttributes, required
    - `data_truncated` boolean, required: Always true on this shape. The event was too large to send in full, so `data` holds only the `id` and `previous_attributes` is empty.
    - `data_url` string, required: Called with your usual API key, it returns a download link for this event exactly as it would have been delivered.

## Acknowledgement `200`

Success

---

[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)
