---
title: "Cart warehouse updated"
method: POST
path: "cart-warehouse.updated"
---

# Cart warehouse updated

`POST cart-warehouse.updated` (webhook)

When a Warehouse is updated.

## Payload

- union
  - CartWarehousesUpdatedFullWebhook
    - `connection_id` string, required
    - `data` CartWarehouseApiItemSchema, required
      - `id` string, required: The unique ID of the warehouse.
      - `created_date` string, date-time, required: The date the warehouse was created.
      - `updated_date` string, date-time, required: The date the warehouse was last updated.
      - `name` string, required: The name of the warehouse.
      - `code` string, nullable, required: The warehouse code.
      - `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
      - `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
      - `trackstar_created_date` string, date-time, required
      - `trackstar_updated_date` string, date-time, required
    - `event_type` 'cart-warehouse.updated', required
    - `integration_name` string, required
    - `integration_type` string, required
    - `previous_attributes` CartWarehousesUpdatedPreviousAttributes, required
      - `id` string: The unique ID of the warehouse.
      - `created_date` string, date-time: The date the warehouse was created.
      - `updated_date` string, date-time: The date the warehouse was last updated.
      - `name` string: The name of the warehouse.
      - `code` string, nullable: The warehouse code.
      - `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
      - `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
      - `trackstar_created_date` string, date-time
      - `trackstar_updated_date` string, date-time
  - CartWarehousesUpdatedTruncatedWebhook
    - `connection_id` string, required
    - `data` CartWarehousesUpdatedTruncatedData, required
      - `id` string: The record this event is about. Absent on connection webhooks, which carry dates rather than a row.
    - `event_type` 'cart-warehouse.updated', required
    - `integration_name` string, required
    - `integration_type` string, required
    - `previous_attributes` CartWarehousesUpdatedTruncatedPreviousAttributes, 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)
