---
title: "Cart product created"
method: POST
path: "cart-product.created"
---

# Cart product created

`POST cart-product.created` (webhook)

When a Product is created.

## Payload

- union
  - CartProductsCreatedFullWebhook
    - `connection_id` string, required
    - `data` CartProductApiItemSchema, required
      - `id` string, required: The unique ID of the product.
      - `created_date` string, date-time, required: The date the cart product was created.
      - `updated_date` string, date-time, required: The date the cart product was last updated.
      - `name` string, required: The name of the product.
      - `description` string, nullable, required: The product's description as the source system stores it. May contain HTML.
      - `sku` string, nullable, required: The SKU of the product.
      - `gtin` string, nullable, required: The GTIN of the product.
      - `parent_product_id` string, required: If this is a variant, the ID of the parent product. If this is a parent product, this field should be the same as ID.
      - `is_kit` boolean, required
      - `active` boolean, required: Whether the product is active.
      - `image_url` string, nullable, required: The URL of the product's image.
      - `price` number, nullable, required: The price of the product if it is a variant. Not the source of truth for parent products.
      - `unit_cost` number, nullable, required: The unit cost of the product if it is a variant. Not the source of truth for parent products.
      - `currency_code` string, nullable, required: The ISO 4217 currency code for `price` and `unit_cost`.
      - `inventory` integer, nullable, required: The inventory of the product if it is a variant. Not the source of truth for parent products.
      - `inventory_by_warehouse_id` object, required: Inventory broken down by warehouse.
      - `measurements` ProductMeasurements, required
        - `length` number, nullable, required
        - `width` number, nullable, required
        - `height` number, nullable, required
        - `unit` 'cm' | 'in', nullable, required: The unit of measurement for the size of the product.
        - `weight` number, nullable, required
        - `weight_unit` 'kg' | 'oz' | 'lb', nullable, required: The unit of measurement for the weight of the product.
      - `tags` string[], required: A list of tags associated with the product. Tags that are represented as key-value pairs in the underlying system will be represented as a single string formatted as `key:value`.
      - `categories` string[], required: A list of category names the product belongs to. For platforms with a hierarchical category tree, each level is a separate element with the leaf last (e.g. ["Apparel", "Shoes", "Running"]). For platforms with a single scalar product type, a single-element list.
      - `external_system_url` string, nullable, required: URL link to the cart product 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` 'cart-product.created', required
    - `integration_name` string, required
    - `integration_type` string, required
  - CartProductsCreatedTruncatedWebhook
    - `connection_id` string, required
    - `data` CartProductsCreatedTruncatedData, required
      - `id` string: The record this event is about. Absent on connection webhooks, which carry dates rather than a row.
    - `event_type` 'cart-product.created', required
    - `integration_name` string, required
    - `integration_type` string, 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)
