---
title: "Inventory_ledger created"
method: POST
path: "inventory_ledger.created"
---

# Inventory_ledger created

`POST inventory_ledger.created` (webhook)

When an Inventory Ledger is created.

## Payload

- union
  - WmsInventoryLedgerCreatedFullWebhook
    - `connection_id` string, required
    - `data` WmsInventoryLedgerApiItemSchema, required
      - `id` string, required: The unique ID of the inventory item.
      - `created_date` string, date-time, required: The date the inventory item was created.
      - `updated_date` string, date-time, required: The date the inventory item was last updated.
      - `entry_date` string, date-time, required: The timestamp of the inventory ledger entry.
      - `inventory_item_id` string, required: The unique ID of the inventory item.
      - `sku` string, required: The SKU of the inventory item.
      - `quantity` integer, required: The quantity of the inventory item being added or removed.
      - `raw_event_type` string, nullable, required: The raw event that occurred resulting in the inventory ledger entry.
      - `event_type` 'adjustment' | 'return_receipt' | 'inbound_receipt' | 'order_shipment' | 'supplier_return' | 'movement' | 'other', required: The event that occurred resulting in the inventory ledger entry.
      - `reason` string, nullable, required: The reason for the inventory ledger entry.
      - `object_id` string, nullable, required: The unique ID of the object that caused the inventory ledger entry.
      - `object_type` 'order' | 'inbound_shipment' | 'return', nullable, required: The type of object that caused the inventory ledger entry.
      - `warehouse_id` string, nullable, required: The unique ID of the source warehouse.
      - `location_id` string, nullable, required: The unique ID of the source location.
      - `additional_fields` object, required: Integration-specific fields
      - `trackstar_created_date` string, date-time, required
      - `trackstar_updated_date` string, date-time, required
    - `event_type` 'inventory_ledger.created', required
    - `integration_name` string, required
    - `integration_type` string, required
  - WmsInventoryLedgerCreatedTruncatedWebhook
    - `connection_id` string, required
    - `data` WmsInventoryLedgerCreatedTruncatedData, required
      - `id` string: The record this event is about. Absent on connection webhooks, which carry dates rather than a row.
    - `event_type` 'inventory_ledger.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)
