# Stock & transfers

Read unified stock levels, the movement ledger, and low-stock state; apply batched adjustments; manage transfers and restock demand through the Store API.

The inventory plane covers what no single catalog resource owns. Reads use `read_inventory`; writes use `write_inventory`.

A **SKU is a store-wide address**: simple products, variants, and inventory groups share one SKU registry, so `POST /inventory/adjustments` resolves any of the three from the SKU alone. Adjustments are **atomic batches** — an invalid row rejects the whole batch. Send an `Idempotency-Key` and reuse it with the identical body when retrying. For absolute counts, `expected_quantity` detects a concurrent change. Each applied row writes the movement ledger with your app as the actor, re-evaluates low-stock, and emits `inventory_levels/update`. Prefer `adjust` (signed delta, safe under concurrency) over `set` unless you are reconciling a physical count; reasons come from the same six-value enum merchants use.

Two fields are scope-gated for privacy. Movement `reference_type`/`reference_id` (the order behind a sale) appear only when your token also holds `read_orders`. Restock request contact details appear only with `read_customers` — otherwise they arrive redacted and `can_view_contact` is false.

Transfers move stock between locations: create (`pending`), then ship (`in_transit`) to reserve source stock. Record partial or full receipts with `POST /transfers/{transferId}/receive` and an `Idempotency-Key`. Received units move to the destination, short units release their source hold, and damaged units are written off at the source. Each receipt commits stock, history and webhook events atomically. The last receipt completes the transfer; the complete status action receives all remaining units. Cancellation releases only the outstanding hold and preserves recorded receipts. Only pending transfers can be deleted. Products, variants, and inventory groups referenced by pending or in-transit transfers cannot be deleted or switched away from their inventory source; the 409 response names the blocking TRF numbers. Completed and cancelled transfers remain immutable history after a catalog resource is deleted: each line keeps its title and SKU snapshot and returns `resource_deleted: true`.

## Endpoints

## Inventory limits

`GET /api/2025-01/inventory/limits`

Returns one section per inventory list — `levels`, `movements`, `transfers`, `low_stock`, `restock_requests`, `commitments` (current commitments and commitment activity, store-wide, per item and per inventory group) — plus `adjustments`. Every list section names its paging and sorting the same way: `list_page_size` (default rows per page), `list_max_limit` (largest `limit` accepted), `page_size_options`, `search_max_length`, `sort_columns`, `default_sort` and `default_sort_direction` (`asc` or `desc`). `transfers.bulk_max` caps a bulk status change or delete; `adjustments.max_batch_size` caps the rows of one stock write. `adjustments` also carries the quantity cap, the Idempotency-Key length limit and the user reasons (`user_reason_options`); `movements.retention_days` is the movement history window. Commitments and commitment activity page by cursor, newest first, so `commitments.sort_columns` is `created_at` only. `transfers.status_actions` gives each status action's button label and confirmation text in English. `low_stock.alert_cooldown_hours`: while an item stays at or below a low-stock threshold, its alert (the `inventory/low_stock` webhook and the store notification) repeats only once this many hours have passed since the last one. Every filter value list is labelled: `levels.item_type_options`, `adjustments.user_reason_options`, `movements.item_type_options` and `movements.reason_options`, `transfers.status_options`, `low_stock.type_options` and `low_stock.scope_options`, `restock_requests.status_options` and `restock_requests.contact_type_options`, and `commitments.event_type_options` are lists of `{value, label}`: send `value`, show `label` (in English). Rows carry the same wording in their `*_display` fields. Values come from the services that enforce them; read them instead of hardcoding.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/limits' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "adjustments": {
      "idempotency_key_max_length": 200,
      "max_batch_size": 1000,
      "max_quantity": 10000000,
      "user_reason_options": [
        {
          "value": "received",
          "label": "Received"
        },
        {
          "value": "returned",
          "label": "Returned"
        },
        {
          "value": "damaged",
          "label": "Damaged"
        },
        {
          "value": "shrinkage",
          "label": "Shrinkage"
        },
        {
          "value": "recount",
          "label": "Recount"
        },
        {
          "value": "correction",
          "label": "Correction"
        }
      ]
    },
    "commitments": {
      "default_sort": "created_at",
      "default_sort_direction": "desc",
      "event_type_options": [
        {
          "value": "provisional_held",
          "label": "Checkout held"
        },
        {
          "value": "committed",
          "label": "Committed"
        },
        {
          "value": "released",
          "label": "Released"
        },
        {
          "value": "reacquired",
          "label": "Reacquired"
        },
        {
          "value": "fulfilled",
          "label": "Fulfilled"
        },
        {
          "value": "fulfillment_reversed",
          "label": "Fulfillment cancelled, stock returned"
        }
      ],
      "list_max_limit": 100,
      "list_page_size": 50,
      "page_size_options": [
        10,
        20,
        50,
        100
      ],
      "search_max_length": 200,
      "sort_columns": [
        "created_at"
      ]
    },
    "levels": {
      "default_sort": "product_title",
      "default_sort_direction": "asc",
      "item_type_options": [
        {
          "value": "simple",
          "label": "Simple product"
        },
        {
          "value": "variant",
          "label": "Variant"
        },
        {
          "value": "group",
          "label": "Inventory group"
        }
      ],
      "list_max_limit": 200,
      "list_page_size": 20,
      "page_size_options": [
        20,
        50,
        100
      ],
      "search_max_length": 200,
      "sort_columns": [
        "product_title",
        "sku",
        "quantity",
        "available",
        "location_name"
      ]
    },
    "low_stock": {
      "alert_cooldown_hours": 24,
      "default_sort": "deficit",
      "default_sort_direction": "desc",
      "list_max_limit": 100,
      "list_page_size": 20,
      "page_size_options": [
        10,
        20,
        50,
        100
      ],
      "scope_options": [
        {
          "value": "location",
          "label": "Per location"
        },
        {
          "value": "overall",
          "label": "Overall"
        }
      ],
      "search_max_length": 100,
      "sort_columns": [
        "deficit",
        "available",
        "threshold",
        "updated_at"
      ],
      "type_options": [
        {
          "value": "simple",
          "label": "Simple product"
        },
        {
          "value": "variant",
          "label": "Variant"
        },
        {
          "value": "group",
          "label": "Inventory group"
        }
      ]
    },
    "movements": {
      "default_sort": "created_at",
      "default_sort_direction": "desc",
      "item_type_options": [
        {
          "value": "simple",
          "label": "Simple product"
        },
        {
          "value": "variant",
          "label": "Variant"
        },
        {
          "value": "group",
          "label": "Inventory group"
        }
      ],
      "list_max_limit": 100,
      "list_page_size": 20,
      "page_size_options": [
        10,
        20,
        50,
        100
      ],
      "reason_options": [
        {
          "value": "received",
          "label": "Received"
        },
        {
          "value": "returned",
          "label": "Returned"
        },
        {
          "value": "damaged",
          "label": "Damaged"
        },
        {
          "value": "shrinkage",
          "label": "Shrinkage"
        },
        {
          "value": "recount",
          "label": "Recount"
        },
        {
          "value": "correction",
          "label": "Correction"
        },
        {
          "value": "sold",
          "label": "Sold"
        },
        {
          "value": "transfer_out",
          "label": "Transfer out"
        },
        {
          "value": "transfer_in",
          "label": "Transfer in"
        },
        {
          "value": "transfer_damaged",
          "label": "Transfer damaged"
        },
        {
          "value": "initial",
          "label": "Initial stock"
        },
        {
          "value": "set_quantity",
          "label": "Set quantity"
        },
        {
          "value": "source_changed",
          "label": "Source changed"
        }
      ],
      "retention_days": 90,
      "search_max_length": 100,
      "sort_columns": [
        "created_at",
        "quantity_change"
      ]
    },
    "restock_requests": {
      "contact_type_options": [
        {
          "value": "email",
          "label": "Email"
        },
        {
          "value": "sms",
          "label": "Phone"
        }
      ],
      "default_sort": "requested_at",
      "default_sort_direction": "desc",
      "list_max_limit": 100,
      "list_page_size": 20,
      "page_size_options": [
        10,
        20,
        50,
        100
      ],
      "search_max_length": 100,
      "sort_columns": [
        "contact_type",
        "expires_at",
        "notified_at",
        "product_id",
        "requested_at",
        "status"
      ],
      "status_options": [
        {
          "value": "pending",
          "label": "Pending"
        },
        {
          "value": "queued",
          "label": "Queued"
        },
        {
          "value": "notified",
          "label": "Notified"
        },
        {
          "value": "failed",
          "label": "Failed"
        },
        {
          "value": "suppressed",
          "label": "Suppressed"
        },
        {
          "value": "cancelled",
          "label": "Cancelled"
        },
        {
          "value": "converted",
          "label": "Converted"
        },
        {
          "value": "expired",
          "label": "Expired"
        }
      ]
    },
    "transfers": {
      "bulk_max": 100,
      "default_sort": "created_at",
      "default_sort_direction": "desc",
      "deletable_statuses": [
        "pending"
      ],
      "list_max_limit": 100,
      "list_page_size": 20,
      "max_items_per_transfer": 50,
      "max_quantity": 10000000,
      "notes_max_length": 500,
      "page_size_options": [
        10,
        20,
        50,
        100
      ],
      "reference_number_max_length": 100,
      "search_max_length": 200,
      "sort_columns": [
        "transfer_number",
        "created_at",
        "status",
        "total_quantity"
      ],
      "status_actions": {
        "cancelled": {
          "label": "Cancel",
          "confirm_title": "Cancel transfer?",
          "confirm_description": "This cancels the transfer. Units still in transit are released back to the source; units already received stay received.",
          "bulk_confirm_title": "Cancel transfers?",
          "bulk_confirm_description": "This cancels the selected transfers. Units still in transit are released back to their sources; units already received stay received.",
          "destructive": true
        },
        "completed": {
          "label": "Complete",
          "confirm_title": "Complete transfer?",
          "confirm_description": "This receives every remaining unit as received and completes the transfer.",
          "bulk_confirm_title": "Complete transfers?",
          "bulk_confirm_description": "This receives every remaining unit of the selected transfers as received and completes them.",
          "destructive": false
        },
        "in_transit": {
          "label": "Ship",
          "confirm_title": "Mark as shipped?",
          "confirm_description": "This reserves the stock at the source location.",
          "bulk_confirm_title": "Mark transfers as shipped?",
          "bulk_confirm_description": "This reserves the stock at the source locations of the selected transfers.",
          "destructive": false
        }
      },
      "status_options": [
        {
          "value": "pending",
          "label": "Pending"
        },
        {
          "value": "in_transit",
          "label": "In transit"
        },
        {
          "value": "completed",
          "label": "Completed"
        },
        {
          "value": "cancelled",
          "label": "Cancelled"
        }
      ],
      "status_transitions": {
        "in_transit": [
          "completed",
          "cancelled"
        ],
        "pending": [
          "in_transit",
          "cancelled"
        ]
      }
    }
  },
  "success": true
}
```

## List stock levels

`GET /api/2025-01/inventory/levels`

Returns one row per (item, location) across directly tracked simple products and variants plus inventory groups. A row names its item with `product_id`, `variant_id` and `group_id`; the ones it doesn't have are null (a group row has no product or variant, a simple product row no variant), and `product_slug` is the product's storefront slug. `quantity` is physical on hand. `reserved` is all held stock; `checkout_held` is its short unpaid-checkout subset, `order_committed` is its placed-order subset, and `other_held` covers active transfers and other operational holds. `available = quantity - reserved`. Every visible active location is projected for every inventory group; a missing stored level reads as zero and the first set, adjustment, or threshold write creates it atomically. App tokens see merchant-managed locations and their own app-managed locations, never another app's locations. Filter by location, item type, SKU search, or low-stock only. `item_type_display` words `item_type` for the merchant, in English. Product and variant rows carry their product's `units_sold_30` (units sold less units refunded) and `views_30` (storefront product page views) over the last 30 days, from the store's product numbers recomputed once a day; group rows have neither. Query validation is strict: invalid sort or filter values return coded 400s, never silent defaults.

Pages follow the sort, then item type and IDs. While `has_next` is true, pass `next_cursor` as `cursor` to read the next page; page numbers reach only the first 10,000 rows. `total` is exact up to 10,000 rows; above that it is an estimate and `total_estimated` is true.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/levels?item_type=variant&limit=50&low_stock_only=true&page=1&sort_direction=desc' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "has_next": true,
    "limit": 50,
    "next_cursor": "eyJ2IjoxLCJyIjoic3RvY2tfbGV2ZWwifQ",
    "page": 1,
    "rows": [
      {
        "available": 39,
        "checkout_held": 1,
        "group_id": null,
        "group_name": null,
        "is_low_stock": false,
        "item_type": "variant",
        "item_type_display": "Variant",
        "location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
        "location_name": "Main Warehouse",
        "low_stock_threshold": 10,
        "order_committed": 1,
        "other_held": 1,
        "product_id": 118,
        "product_title": "Trailblazer Tee",
        "quantity": 42,
        "reserved": 3,
        "sku": "TRAIL-TEE-FOR-M",
        "units_sold_30": 12,
        "variant_id": 342,
        "variant_title": "Forest / M",
        "views_30": 340
      }
    ],
    "total": 214,
    "total_estimated": false,
    "total_pages": 5
  },
  "success": true
}
```

## List movements

`GET /api/2025-01/inventory/movements`

Returns the append-only ledger every physical stock change writes — admin edits, imports, scanner sessions, transfers, order fulfillment, and your own adjustments — newest first. An app-token write records `App: <app name>` in `user_name`; opaque app ids are never shown as merchant-facing actor names. A valid app token always resolves its authoritative app name, and a request with incomplete app identity is rejected. A merchant-created Store API token records its creator's merchant email. System rows without a human or app actor return an empty actor. `reference_type` and `reference_id` (e.g. the order behind a movement) are included only when the token also holds `read_orders`; without it the movement row is returned with those fields omitted. Rows are retained for the window reported by the limits endpoint. A movement keeps its location's id and name after that location is deleted; `location_deleted` is then true and `location_deleted_at` says when. `reason_display` and `item_type_display` word `reason` and `item_type` for the merchant, in English.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/movements?limit=50&page=1&reason=received&sort_direction=desc' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "limit": 50,
    "movements": [
      {
        "created_at": "2026-07-08T14:14:00-04:00",
        "group_id": null,
        "group_name": null,
        "group_sku": null,
        "id": "9f3e1a2b-4c5d-6e7f-8a9b-0c1d2e3f4a5b",
        "item_exists": true,
        "item_type": "variant",
        "item_type_display": "Variant",
        "location_deleted": false,
        "location_deleted_at": null,
        "location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
        "location_name": "Main Warehouse",
        "notes": null,
        "product_id": 118,
        "product_title": "Trailblazer Tee",
        "quantity_after": 40,
        "quantity_change": -2,
        "reason": "sold",
        "reason_display": "Sold",
        "reference_id": "1042",
        "reference_type": "order",
        "user_name": "App: Acme Sync",
        "variant_id": 342,
        "variant_sku": "TRAIL-TEE-FOR-M",
        "variant_title": "Forest / M"
      }
    ],
    "page": 1,
    "retention_days": 90,
    "total": 1830
  },
  "success": true
}
```

## List low-stock items

`GET /api/2025-01/inventory/low-stock`

Returns items whose available stock (`quantity - reserved`) is at or below the configured threshold, with the positive deficit (`threshold - available`). Covers per-location and overall thresholds for directly tracked simple products and variants plus inventory groups; filter by `location` or `overall` scope, item type, or location. An overall row has `location_id` null and `location_name` All locations; `product_id`, `variant_id`, `group_id` and `group_name` are null where the item has none. App tokens see merchant-managed locations and locations owned by their own active installation, never another app's locations. Set thresholds with the product, variant and inventory group set-threshold endpoints. To be told when an item runs low, subscribe to the `inventory/low_stock` webhook. Which staff members receive low-stock notifications is each staff member's own notification preference, set in Store Admin or the Tringify app; the Store API and MCP neither read nor change it. `type_display` and `scope_display` word `type` and `scope` for the merchant, in English.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/low-stock?limit=50&page=1&sort_direction=desc' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "items": [
      {
        "available": 4,
        "deficit": 6,
        "group_id": null,
        "group_name": null,
        "id": "variant-location-342-0b54c9c1",
        "location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
        "location_name": "Main Warehouse",
        "product_id": 118,
        "product_title": "Trailblazer Tee",
        "quantity": 7,
        "reserved": 3,
        "scope": "location",
        "scope_display": "Per location",
        "sku": "TRAIL-TEE-FOR-M",
        "threshold": 10,
        "type": "variant",
        "type_display": "Variant",
        "updated_at": "2026-07-08T14:14:00-04:00",
        "variant_id": 342,
        "variant_title": "Forest / M"
      }
    ],
    "limit": 50,
    "page": 1,
    "total": 12
  },
  "success": true
}
```

## List current commitments

`GET /api/2025-01/inventory/commitments`

Returns open, successfully applied reservation slices for simple products, variants and inventory groups, newest first. Narrow the listing to one item with `source_type` and `source_id`, and to one location with `location_id`. Each row is stock held for one order line at one location: `state` `provisional` while the shopper is paying (it counts in `checkout_held` until `expires_at`) or `committed` once the order is placed and paid or confirmed (it counts in `order_committed`). `state` is the authoritative applied state, not a pending desired state. Released and fulfilled stock is not listed; read commitment activity for that history. While an order's stock change is still being applied its rows are left out, so the rows add up to a location's `checkout_held` and `order_committed` once it applies. `source_type` (`product`, `variant` or `group`), `source_id` and `sku` name the item. `state_display` and `payment_kind_display` word `state` and `payment_kind` for the merchant, in English. Pages are keyed: pass the response's `next_cursor` as `cursor` to read the next page with the same filters; an empty `next_cursor` means there are no more rows. Order ids, item ids, and order numbers are included only when the token also has `read_orders`; internal transition status, errors, and operation ids are never exposed through the Store API. App tokens see merchant-managed locations and their own app-managed locations, never another app's locations. `location_deleted` is true when the location has since been deleted; `location_name` is then its name at deletion.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/commitments?cursor=eyJ0IjoiMjAyNi0wNy0wNlQxMDoyNTowMFoifQ&limit=50&location_id=af720cef-7f1b-40f4-a5f8-8a55ea5b0d84&source_id=4821&source_type=variant' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "commitments": [
      {
        "channel_type": "online_store",
        "committed_at": "2026-07-06T06:30:00-04:00",
        "created_at": "2026-07-06T06:25:00-04:00",
        "expires_at": null,
        "location_deleted": false,
        "location_id": "af720cef-7f1b-40f4-a5f8-8a55ea5b0d84",
        "location_name": "Main Warehouse",
        "order_id": "ord_01K4YQ7PF7B1M8H9R0T2W3X4Z5",
        "order_item_id": "oi_01K4YQ7PF7B1M8H9R0T2W3X4Z5",
        "order_number": "#1042",
        "payment_kind": "online_prepaid",
        "payment_kind_display": "Online prepaid",
        "quantity": 2,
        "sku": "BLANK-TEE-POOL",
        "source_id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
        "source_type": "group",
        "state": "committed",
        "state_display": "Committed",
        "updated_at": "2026-07-06T06:30:00-04:00"
      }
    ],
    "limit": 50,
    "next_cursor": ""
  },
  "success": true
}
```

## List commitment activity

`GET /api/2025-01/inventory/commitment-activity`

Returns the append-only lifecycle ledger for successfully applied provisional holds, commitments, releases, reacquisitions, fulfillment consumption, and cancelled fulfillments, newest first. Narrow it to one item with `source_type` and `source_id`, one location with `location_id`, an event type, or a date range in the store timezone. `event_type` is `provisional_held` (a checkout hold started), `committed` (units committed to a placed order), `released` (held units became available again), `reacquired` (released units were held again), `fulfilled` (units left stock with a fulfillment) or `fulfillment_reversed` (a cancelled fulfillment put its units back). `reason` says why: `order_created` (an order was placed or an edit added units), `payment_captured` (the payment completed; with `reacquired`, a late payment held the same units again after its hold had been released), `payment_retry` (the shopper retried a payment), `payment_failed` or `provider_init_failed` (the payment failed or could not be started), `checkout_hold_expired` (the checkout hold duration ran out), `order_released` (the order was cancelled or removed), `order_edited` (an order edit or refund removed units), `order_edit_abandoned` (an unsaved order edit was discarded), `order_create_failed` (an order that could not be completed returned units sold on commit), `order_fulfilled` (units shipped), `sold_without_shipping` (items that don't need shipping left stock when the order was committed) or `fulfillment_cancelled` (a fulfillment was cancelled). `reserved_after`, `checkout_held_after` and `order_committed_after` are the location's numbers right after the event. `source_type`, `source_id` and `sku` name the item. `event_type_display`, `reason_display` and `payment_kind_display` word `event_type`, `reason` and `payment_kind` for the merchant, in English; `commitments.event_type_options` in `GET /inventory/limits` labels the event filter. Pages are keyed: pass the response's `next_cursor` as `cursor` to read the next page with the same filters; an empty `next_cursor` means there are no more rows. This is separate from physical stock movement history. Order ids, item ids, and order numbers are included only when the token also has `read_orders`; internal pending-operation and error details are never exposed through the Store API. App tokens see merchant-managed locations and their own app-managed locations, never another app's locations.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/commitment-activity?cursor=eyJ0IjoiMjAyNi0wNy0wNlQxMDoyNTowMFoifQ&event_type=committed&from_date=2026-07-01&limit=50&location_id=af720cef-7f1b-40f4-a5f8-8a55ea5b0d84&source_id=4821&source_type=variant&to_date=2026-07-31' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "activity": [
      {
        "channel_type": "online_store",
        "checkout_held_after": 1,
        "created_at": "2026-07-06T06:30:00-04:00",
        "event_type": "committed",
        "event_type_display": "Committed",
        "expires_at": null,
        "id": "ica_01K4YQ7PF7B1M8H9R0T2W3X4Z5",
        "location_id": "af720cef-7f1b-40f4-a5f8-8a55ea5b0d84",
        "location_name": "Main Warehouse",
        "order_committed_after": 12,
        "order_id": "ord_01K4YQ7PF7B1M8H9R0T2W3X4Z5",
        "order_item_id": "oi_01K4YQ7PF7B1M8H9R0T2W3X4Z5",
        "order_number": "#1042",
        "payment_kind": "online_prepaid",
        "payment_kind_display": "Online prepaid",
        "quantity": 2,
        "reason": "payment_captured",
        "reason_display": "Payment captured",
        "reserved_after": 18,
        "sku": "BLANK-TEE-POOL",
        "source_id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
        "source_type": "group"
      }
    ],
    "limit": 50,
    "next_cursor": ""
  },
  "success": true
}
```

## Create a stock sync upload

`POST /api/2025-01/inventory/sync-jobs/upload-intents`

Step 1 of a bulk stock sync. Send one item describing the file (`original_filename` ending in `.csv`, `mime_type` `text/csv`, `size_bytes`); the response carries an intent with an upload URL. PUT the file there, then finalize the intent; the finalized intent's file id starts the job. The file is a CSV whose first row names a `sku` and a `quantity` (or `qty`) column: one row per SKU with the on-hand quantity it should have at the job's location. Up to 200,000 rows and 16 MB.

Scope: `write_inventory`

Admin tokens only: Store Admin API tokens and connected AI tools; app tokens are refused.

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/inventory/sync-jobs/upload-intents' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "items": [
    {
      "mime_type": "text/csv",
      "original_filename": "stock.csv",
      "size_bytes": 2400000
    }
  ]
}'
```

Response:

```json
{
  "data": {
    "intents": [
      {
        "expires_at": "2026-10-25T14:30:00-04:00",
        "file_id": "5d3a1c7e-2f4b-4a6c-8e9d-0b1c2d3e4f5a",
        "id": "0b2f6c1e-7d4a-4c3b-9e5f-1a2b3c4d5e6f",
        "status": "pending",
        "upload_url": "https://files.tringify.com/u/9260261d2d282538.Wm9a…"
      }
    ]
  },
  "success": true
}
```

## Finalize a stock sync upload

`POST /api/2025-01/inventory/sync-jobs/upload-intents/finalize`

Step 2: after the PUT, finalize the intent. The file is checked (CSV, size, row and column counts) before it can start a job; poll the status endpoint until the intent is ready, then use its file id.

Scope: `write_inventory`

Admin tokens only: Store Admin API tokens and connected AI tools; app tokens are refused.

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/inventory/sync-jobs/upload-intents/finalize' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "intent_ids": [
    "0b2f6c1e-7d4a-4c3b-9e5f-1a2b3c4d5e6f"
  ]
}'
```

Response:

```json
{
  "data": {
    "intents": [
      {
        "expires_at": "2026-10-25T14:30:00-04:00",
        "file_id": "5d3a1c7e-2f4b-4a6c-8e9d-0b1c2d3e4f5a",
        "id": "0b2f6c1e-7d4a-4c3b-9e5f-1a2b3c4d5e6f",
        "status": "pending",
        "upload_url": "https://files.tringify.com/u/9260261d2d282538.Wm9a…"
      }
    ]
  },
  "success": true
}
```

## Check a stock sync upload

`POST /api/2025-01/inventory/sync-jobs/upload-intents/status`

Returns the intent's state; once it is ready, its file id starts the job.

Scope: `write_inventory`

Admin tokens only: Store Admin API tokens and connected AI tools; app tokens are refused.

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/inventory/sync-jobs/upload-intents/status' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "intent_ids": [
    "0b2f6c1e-7d4a-4c3b-9e5f-1a2b3c4d5e6f"
  ]
}'
```

Response:

```json
{
  "data": {
    "intents": [
      {
        "expires_at": "2026-10-25T14:30:00-04:00",
        "file_id": "5d3a1c7e-2f4b-4a6c-8e9d-0b1c2d3e4f5a",
        "id": "0b2f6c1e-7d4a-4c3b-9e5f-1a2b3c4d5e6f",
        "status": "pending",
        "upload_url": "https://files.tringify.com/u/9260261d2d282538.Wm9a…"
      }
    ]
  },
  "success": true
}
```

## Start a stock sync

`POST /api/2025-01/inventory/sync-jobs`

Step 3. Sets every SKU in the file to its quantity at `location_id`, a location the merchant manages. Stock syncs are for the store's own tokens and connected tools; apps set stock with POST /inventory/adjustments. One job runs per location at a time (`INVENTORY_SYNC_JOB_ACTIVE`). The job applies the file in chunks of 1,000 rows, each in one transaction: a row whose quantity is already the file's value writes nothing (no movement, audit entry or webhook), and each chunk with changes sends one `inventory_levels/bulk_update` with every changed level, instead of one `inventory_levels/update` per row. A row that can't be applied (unknown SKU, duplicate SKU, quantity not a whole number, out of range, or below what is held for orders) is listed in the job's errors; the other rows still apply. The job ends with `inventory_sync_jobs/completed`. Poll `GET /inventory/sync-jobs/{id}` or subscribe to that webhook.

Scope: `write_inventory`

Admin tokens only: Store Admin API tokens and connected AI tools; app tokens are refused.

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/inventory/sync-jobs' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "file_id": "5d3a1c7e-2f4b-4a6c-8e9d-0b1c2d3e4f5a",
  "location_id": "af720cef-7f1b-40f4-a5f8-8a55ea5b0d84",
  "reason": "recount"
}'
```

Response:

```json
{
  "data": {
    "sync_job": {
      "completed_at": null,
      "created_at": "2026-10-25T14:02:00-04:00",
      "errors": [],
      "errors_truncated": false,
      "id": "6b1f0c2e-9d3a-4e57-8c21-4f0a9e7d5b13",
      "location_id": "af720cef-7f1b-40f4-a5f8-8a55ea5b0d84",
      "reason": "recount",
      "rows_changed": 0,
      "rows_failed": 0,
      "rows_processed": 0,
      "rows_total": 100000,
      "rows_unchanged": 0,
      "started_at": "2026-10-25T14:02:00-04:00",
      "status": "processing"
    }
  },
  "success": true
}
```

## Get a stock sync

`GET /api/2025-01/inventory/sync-jobs/{jobId}`

`status` is `processing`, `completed` or `failed`. `rows_changed`, `rows_unchanged` and `rows_failed` add up to `rows_processed`. `errors` lists up to 100 failed rows (`row` is the line in the file); `errors_truncated` is true when there are more. An app sees only the jobs it started.

Scope: `read_inventory`

Admin tokens only: Store Admin API tokens and connected AI tools; app tokens are refused.

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/sync-jobs/6b1f0c2e-9d3a-4e57-8c21-4f0a9e7d5b13' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "sync_job": {
      "completed_at": "2026-10-25T14:09:40-04:00",
      "created_at": "2026-10-25T14:02:00-04:00",
      "errors": [
        {
          "code": "STOCK_LEVEL_NO_PRODUCT_FOR_SKU",
          "message": "No tracked product, variant or inventory group has this SKU.",
          "row": 4812,
          "sku": "TEE-XL-OLD"
        }
      ],
      "errors_truncated": true,
      "id": "6b1f0c2e-9d3a-4e57-8c21-4f0a9e7d5b13",
      "location_id": "af720cef-7f1b-40f4-a5f8-8a55ea5b0d84",
      "reason": "recount",
      "rows_changed": 81234,
      "rows_failed": 6,
      "rows_processed": 100000,
      "rows_total": 100000,
      "rows_unchanged": 18760,
      "started_at": "2026-10-25T14:02:00-04:00",
      "status": "completed"
    }
  },
  "success": true
}
```

## Apply adjustments

`POST /api/2025-01/inventory/adjustments`

Applies up to `max_batch_size` rows together: every row applies or none do, unless `continue_on_error` is true, when every row that can be applied is applied and each other row comes back with `status` `failed` and its own `code` and `message`. Each row addresses an item by SKU — simple product, variant, or inventory group resolve identically, ignoring letter case — at the batch `location_id` or its own `location_id`, and either adjusts by a signed delta (`adjust`) or writes an absolute quantity (`set`). A SKU may appear only once per location in a batch, in any letter case. An `adjust` of 0 is refused with `STOCK_LEVEL_ADJUST_ZERO`. Active and inactive locations are both writable, so stock can be corrected or zeroed before a location is deleted. A `set` row may carry `expected_quantity`: the row is then a compare-and-set against the current on-hand quantity, and when they differ the whole batch is refused with 409 `STOCK_LEVEL_EXPECTED_QUANTITY_MISMATCH` and nothing changes. When any row fails, the response is that row's own error code with `details.row` (1-based), `details.sku` and `details.location_id`, and no row is applied. Send a stable `Idempotency-Key` when retrying: keys are scoped to your app (or the merchant user), UUIDs are canonicalized before comparison, an identical replay within 7 days returns the original result without a second movement, audit entry or webhook, and reusing a key for different input returns 409 `STOCK_WRITE_IDEMPOTENCY_CONFLICT`. App tokens may target merchant-managed locations and locations owned by their own active installation; they cannot write another app's location. Every row that changes the quantity writes the movement ledger with your app as the actor and re-evaluates low-stock; a row whose quantity doesn't change writes nothing. A one-row batch emits `inventory_levels/update`; a larger batch emits one `inventory_levels/bulk_update` per location (`source` `stock_write`) carrying every changed level. Deltas are safe under concurrency; use `set` with `expected_quantity` when reconciling a physical count. An app writing a location it manages reports its supplier's or warehouse's count, which may be below what is held for checkouts, orders and transfers: such a row is not refused. On hand is raised to what is held, so nothing more can be sold there, and the row reports `requested_quantity` (what you sent) and `oversold_quantity` (held units your count no longer covers); its Stock History note says so. Resolve those orders by shipping them or by rejecting their fulfillment orders. Every other writer, and the product create and update `inventory` field, is still refused below what is held with `STOCK_LEVEL_SET_BELOW_RESERVED`. The response is compact: `totals` (`applied`, `failed`), then each row's `sku`, `location_id`, `status` and `new_quantity`.

Scope: `write_inventory`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/inventory/adjustments' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "continue_on_error": true,
  "items": [
    {
      "adjust": 5,
      "reason": "received",
      "sku": "TRAIL-TEE-FOR-M"
    },
    {
      "expected_quantity": 28,
      "reason": "recount",
      "set": 30,
      "sku": "TRAIL-TEE-FOR-L"
    }
  ],
  "location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e"
}'
```

Response:

```json
{"success":true,"data":{"totals":{"applied":2,"failed":0},"results":[{"sku":"TRAIL-TEE-FOR-M","location_id":"0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e","status":"applied","new_quantity":47},{"sku":"TRAIL-TEE-FOR-L","location_id":"0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e","status":"applied","new_quantity":3,"requested_quantity":0,"oversold_quantity":3}]}}
```

## Set product low-stock threshold

`POST /api/2025-01/products/{id}/set-threshold`

Sets or clears one low-stock threshold on a simple product that tracks its own stock (`inventory_source` `track`) without a product update: no `expected_revision` is needed and nothing else changes. Send `location_id` to set that location's threshold; omit it to set the overall threshold, which compares total available stock across all locations. `low_stock_threshold` is required: a whole number sets it (0 is valid, up to the products limits' `max_inventory_quantity`) and null clears it; omitting it returns `STOCK_LEVEL_THRESHOLD_REQUIRED`. Setting a location threshold where the simple product has no stock level yet creates the level at zero; clearing one that does not exist changes nothing. App tokens may write merchant-managed locations and locations owned by their own active installation, never another app's location. A threshold that already has the value changes nothing and sends no webhook (`changed` is false). A changed location threshold sends `inventory_levels/update` with reason `threshold_updated`; a changed overall threshold sends `products/update` with `changed_fields` `["overall_low_stock_threshold"]` and moves the product's `revision`. The item's stock is checked against the new threshold straight away: at or below it sends `inventory/low_stock` (repeated only after the cooldown), above it re-arms the alert. For a variable product, set each variant's threshold with the variant endpoint; for group-backed stock, use the inventory group's set-threshold.

Scope: `write_inventory`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/products/118/set-threshold' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
  "low_stock_threshold": 10
}'
```

Response:

```json
{
  "code": "STOCK_LEVEL_THRESHOLD_SET",
  "data": {
    "changed": true,
    "location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
    "low_stock_threshold": 10,
    "product_id": 118,
    "scope": "location",
    "variant_id": null
  },
  "message": "Low stock threshold updated.",
  "success": true
}
```

## Set variant low-stock threshold

`POST /api/2025-01/products/{id}/variants/{variantId}/set-threshold`

Sets or clears one low-stock threshold on a variant that tracks its own stock (`inventory_source` `track`) without a product update: no `expected_revision` is needed and nothing else changes. Send `location_id` to set that location's threshold; omit it to set the overall threshold, which compares total available stock across all locations. `low_stock_threshold` is required: a whole number sets it (0 is valid, up to the products limits' `max_inventory_quantity`) and null clears it; omitting it returns `STOCK_LEVEL_THRESHOLD_REQUIRED`. Setting a location threshold where the variant has no stock level yet creates the level at zero; clearing one that does not exist changes nothing. App tokens may write merchant-managed locations and locations owned by their own active installation, never another app's location. A threshold that already has the value changes nothing and sends no webhook (`changed` is false). A changed location threshold sends `inventory_levels/update` with reason `threshold_updated`; a changed overall threshold sends `variants/update` with `changed_fields` `["overall_low_stock_threshold"]` and moves the product's `revision`. The item's stock is checked against the new threshold straight away: at or below it sends `inventory/low_stock` (repeated only after the cooldown), above it re-arms the alert. For group-backed stock, use the inventory group's set-threshold.

Scope: `write_inventory`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/products/118/variants/342/set-threshold' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
  "low_stock_threshold": 10
}'
```

Response:

```json
{
  "code": "STOCK_LEVEL_THRESHOLD_SET",
  "data": {
    "changed": true,
    "location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
    "low_stock_threshold": 10,
    "product_id": 118,
    "scope": "location",
    "variant_id": 342
  },
  "message": "Low stock threshold updated.",
  "success": true
}
```

## List transfers

`GET /api/2025-01/transfers`

Returns paginated transfers with a stable `transfer_number`, status, endpoint ownership, locations, item counts, and total quantity. Filter by status, source location, destination location, or date range; search matches transfer number, UUID, merchant reference, or endpoint location name. Merchant callers can read all store transfers. App callers see transfers whose endpoints are merchant-managed or owned by that same app; another app's managed location and transfer remain undiscoverable. Writes are narrower: merchant tokens may mutate merchant-managed endpoints, while app tokens may mutate merchant-managed endpoints and endpoints owned by their own active installation. One exception sends stock to a warehouse app: a merchant may create a transfer from a merchant location into an app's location (its installation ready) and ship, cancel or delete it while it is pending; the owning app receives it. Pending and in-transit transfers protect their product, variant, or inventory-group references from deletion. Completed and cancelled transfers keep immutable title and SKU snapshots if a referenced catalog resource is later deleted. A transfer keeps both locations' ids and names after either is deleted; `from_location_deleted`/`to_location_deleted` are then true and `*_deleted_at` say when. `status_display` words the status for the merchant in English, and reads "Partially received" for an in-transit transfer with a receipt that still has units to account for.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/transfers?limit=50&page=1&sort_direction=desc' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "limit": 25,
    "page": 1,
    "total": 8,
    "transfers": [
      {
        "cancelled_at": null,
        "completed_at": null,
        "created_at": "2026-07-07T11:03:00-04:00",
        "created_by": null,
        "created_by_app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
        "created_by_app_name": "Inventory Connector",
        "damaged_quantity_total": 0,
        "from_location_deleted": false,
        "from_location_deleted_at": null,
        "from_location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
        "from_location_name": "Main Warehouse",
        "id": "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d",
        "item_count": 2,
        "notes": null,
        "receipt_state": "none",
        "received_quantity_total": 0,
        "reference_number": "PO-2093",
        "remaining_quantity_total": 35,
        "shipped_at": "2026-07-08T09:00:00-04:00",
        "short_quantity_total": 0,
        "status": "in_transit",
        "status_display": "In transit",
        "store_seq_id": 42,
        "to_location_deleted": false,
        "to_location_deleted_at": null,
        "to_location_id": "7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
        "to_location_name": "Downtown Store",
        "total_quantity": 35,
        "transfer_number": "TRF-000042"
      }
    ]
  },
  "success": true
}
```

## Get transfer

`GET /api/2025-01/transfers/{transferId}`

Returns the transfer, its status history timestamps, and every line item with quantities. `available_actions` lists what the caller may do now: status targets (`in_transit`, `completed`, `cancelled`), `receive` and `delete`; only this read carries it, and it is left out when the caller can only read the transfer, such as a merchant's transfer into an app's location once it has shipped. Each line includes `resource_deleted`. It is `false` while the referenced product, variant, or inventory group exists, and `true` when a terminal transfer is displaying the immutable title/SKU snapshot of a resource deleted later. Active transfers cannot enter this state because catalog deletion is blocked until the transfer is completed or cancelled.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/transfers/d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "cancelled_at": null,
    "completed_at": "2026-07-09T10:30:00-04:00",
    "created_at": "2026-07-07T11:03:00-04:00",
    "created_by": null,
    "created_by_app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "created_by_app_name": "Inventory Connector",
    "damaged_quantity_total": 1,
    "from_location_deleted": false,
    "from_location_deleted_at": null,
    "from_location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
    "from_location_name": "Main Warehouse",
    "id": "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d",
    "item_count": 2,
    "items": [
      {
        "damaged_quantity": 1,
        "group_id": null,
        "id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
        "item_type": "variant",
        "product_id": 118,
        "product_title": "Trailblazer Tee",
        "quantity": 20,
        "received_quantity": 18,
        "remaining_quantity": 0,
        "resource_deleted": false,
        "short_quantity": 1,
        "sku": "TRAIL-TEE-FOR-M",
        "variant_id": 342,
        "variant_title": "Forest / M"
      },
      {
        "damaged_quantity": 0,
        "group_id": null,
        "id": "6f7a8b9c-0d1e-4f2a-9b3c-4d5e6f7a8b9c",
        "item_type": "variant",
        "product_id": null,
        "product_title": "Legacy Trailblazer Tee - Forest / L",
        "quantity": 15,
        "received_quantity": 15,
        "remaining_quantity": 0,
        "resource_deleted": true,
        "short_quantity": 0,
        "sku": "TRAIL-TEE-FOR-L",
        "variant_id": null,
        "variant_title": ""
      }
    ],
    "notes": null,
    "receipt_state": "complete",
    "receipts": [
      {
        "created_at": "2026-07-09T10:30:00-04:00",
        "created_by_app_name": "Inventory Connector",
        "created_by_name": "",
        "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c01",
        "lines": [
          {
            "damaged_quantity": 1,
            "received_quantity": 18,
            "short_quantity": 1,
            "sku": "TRAIL-TEE-FOR-M",
            "transfer_item_id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b"
          }
        ],
        "notes": "Pallet 2 of 3; one unit crushed.",
        "receipt_number": 1
      },
      {
        "created_at": "2026-07-09T10:30:00-04:00",
        "created_by_app_name": "Inventory Connector",
        "created_by_name": "",
        "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c02",
        "lines": [
          {
            "damaged_quantity": 0,
            "received_quantity": 15,
            "short_quantity": 0,
            "sku": "TRAIL-TEE-FOR-L",
            "transfer_item_id": "6f7a8b9c-0d1e-4f2a-9b3c-4d5e6f7a8b9c"
          }
        ],
        "notes": null,
        "receipt_number": 2
      }
    ],
    "received_quantity_total": 33,
    "reference_number": "PO-2093",
    "remaining_quantity_total": 0,
    "shipped_at": "2026-07-08T09:00:00-04:00",
    "short_quantity_total": 1,
    "status": "completed",
    "status_display": "Completed",
    "store_seq_id": 42,
    "to_location_deleted": false,
    "to_location_deleted_at": null,
    "to_location_id": "7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
    "to_location_name": "Downtown Store",
    "total_quantity": 35,
    "transfer_number": "TRF-000042"
  },
  "success": true
}
```

## Create transfer

`POST /api/2025-01/transfers`

Creates a `pending` transfer. Each item contains exactly one identifier matching its item type. Simple products and variants must use direct tracked inventory; when one is backed by an inventory group, transfer the group instead so a stale direct row can never move. Quantities are validated against available stock at the source location. Pending transfers hold nothing. Marking the transfer `in_transit` atomically moves the source units into `reserved`/`other_held` so orders cannot sell stock that is travelling. App tokens may use merchant-managed locations and locations owned by their own active installation, but cannot discover or mutate another app's locations. A merchant token may send stock from a merchant location into an app's location whose installation is ready, such as a 3PL warehouse; the merchant can ship, cancel or delete that transfer while it is pending, and the owning app receives it. Send a stable `Idempotency-Key` when retrying creation: UUIDs are canonicalized before comparison, an identical replay returns the existing transfer without a second audit entry or webhook, and reuse for different input returns 409.

Scope: `write_inventory`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/transfers' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "from_location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
  "items": [
    {
      "item_type": "variant",
      "quantity": 20,
      "variant_id": 342
    }
  ],
  "to_location_id": "7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f"
}'
```

Response:

```json
{
  "data": {
    "cancelled_at": null,
    "completed_at": null,
    "created_at": "2026-07-07T11:03:00-04:00",
    "created_by": null,
    "created_by_app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "created_by_app_name": "Inventory Connector",
    "damaged_quantity_total": 0,
    "from_location_deleted": false,
    "from_location_deleted_at": null,
    "from_location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
    "from_location_name": "Main Warehouse",
    "id": "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d",
    "item_count": 1,
    "items": [
      {
        "damaged_quantity": 0,
        "group_id": null,
        "id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
        "item_type": "variant",
        "product_id": 118,
        "product_title": "Trailblazer Tee",
        "quantity": 20,
        "received_quantity": null,
        "remaining_quantity": 20,
        "resource_deleted": false,
        "short_quantity": 0,
        "sku": "TRAIL-TEE-FOR-M",
        "variant_id": 342,
        "variant_title": "Forest / M"
      }
    ],
    "notes": null,
    "receipt_state": "none",
    "received_quantity_total": 0,
    "reference_number": "PO-2093",
    "remaining_quantity_total": 20,
    "shipped_at": null,
    "short_quantity_total": 0,
    "status": "pending",
    "status_display": "Pending",
    "store_seq_id": 42,
    "to_location_deleted": false,
    "to_location_deleted_at": null,
    "to_location_id": "7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
    "to_location_name": "Downtown Store",
    "total_quantity": 20,
    "transfer_number": "TRF-000042"
  },
  "success": true
}
```

## Update transfer status

`PUT /api/2025-01/transfers/{transferId}/status`

Moves the transfer through its lifecycle: `pending` → `in_transit` (ship) or `cancelled`; `in_transit` → `completed` (receive) or `cancelled`. Shipping holds the source units without changing physical on hand. Setting `completed` receives every unit that is still unaccounted for as received — the same as one receipt through the receive endpoint — consuming that part of the source transfer hold, decrementing source on hand, and incrementing destination on hand atomically with paired `transfer_out` and `transfer_in` movement rows. Units already recorded by earlier receipts are not moved again. Cancelling an in-transit transfer, including a partially received one, releases only the units that are still held; received, short and damaged units stay as recorded. Every availability or physical change emits `inventory_levels/update`.

Scope: `write_inventory`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/transfers/d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d/status' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "in_transit"
}'
```

Response:

```json
{
  "data": {
    "cancelled_at": null,
    "completed_at": "2026-07-09T10:30:00-04:00",
    "created_at": "2026-07-07T11:03:00-04:00",
    "created_by": null,
    "created_by_app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "created_by_app_name": "Inventory Connector",
    "damaged_quantity_total": 1,
    "from_location_deleted": false,
    "from_location_deleted_at": null,
    "from_location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
    "from_location_name": "Main Warehouse",
    "id": "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d",
    "item_count": 2,
    "items": [
      {
        "damaged_quantity": 1,
        "group_id": null,
        "id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
        "item_type": "variant",
        "product_id": 118,
        "product_title": "Trailblazer Tee",
        "quantity": 20,
        "received_quantity": 18,
        "remaining_quantity": 0,
        "resource_deleted": false,
        "short_quantity": 1,
        "sku": "TRAIL-TEE-FOR-M",
        "variant_id": 342,
        "variant_title": "Forest / M"
      },
      {
        "damaged_quantity": 0,
        "group_id": null,
        "id": "6f7a8b9c-0d1e-4f2a-9b3c-4d5e6f7a8b9c",
        "item_type": "variant",
        "product_id": null,
        "product_title": "Legacy Trailblazer Tee - Forest / L",
        "quantity": 15,
        "received_quantity": 15,
        "remaining_quantity": 0,
        "resource_deleted": true,
        "short_quantity": 0,
        "sku": "TRAIL-TEE-FOR-L",
        "variant_id": null,
        "variant_title": ""
      }
    ],
    "notes": null,
    "receipt_state": "complete",
    "receipts": [
      {
        "created_at": "2026-07-09T10:30:00-04:00",
        "created_by_app_name": "Inventory Connector",
        "created_by_name": "",
        "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c01",
        "lines": [
          {
            "damaged_quantity": 1,
            "received_quantity": 18,
            "short_quantity": 1,
            "sku": "TRAIL-TEE-FOR-M",
            "transfer_item_id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b"
          }
        ],
        "notes": "Pallet 2 of 3; one unit crushed.",
        "receipt_number": 1
      },
      {
        "created_at": "2026-07-09T10:30:00-04:00",
        "created_by_app_name": "Inventory Connector",
        "created_by_name": "",
        "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c02",
        "lines": [
          {
            "damaged_quantity": 0,
            "received_quantity": 15,
            "short_quantity": 0,
            "sku": "TRAIL-TEE-FOR-L",
            "transfer_item_id": "6f7a8b9c-0d1e-4f2a-9b3c-4d5e6f7a8b9c"
          }
        ],
        "notes": null,
        "receipt_number": 2
      }
    ],
    "received_quantity_total": 33,
    "reference_number": "PO-2093",
    "remaining_quantity_total": 0,
    "shipped_at": "2026-07-08T09:00:00-04:00",
    "short_quantity_total": 1,
    "status": "completed",
    "status_display": "Completed",
    "store_seq_id": 42,
    "to_location_deleted": false,
    "to_location_deleted_at": null,
    "to_location_id": "7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
    "to_location_name": "Downtown Store",
    "total_quantity": 35,
    "transfer_number": "TRF-000042"
  },
  "success": true
}
```

## Bulk update transfer status

`POST /api/2025-01/transfers/bulk-status`

Applies one valid lifecycle transition to up to 100 transfers. The complete batch is serialized and committed in one transaction: if any id is missing, duplicated, unwritable, has an invalid transition, or cannot reconcile its reservation safely, no transfer or inventory row changes. Repeating an already-applied target status is safe. A refusal names the transfer that caused it in `error.details.transfer_id`. The response is compact: `totals` first, then each transfer's `id`, `status` and `status_display` only; read a transfer for its other fields.

Scope: `write_inventory`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/transfers/bulk-status' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "ids": [
    "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d"
  ],
  "status": "in_transit"
}'
```

Response:

```json
{"success":true,"data":{"totals":{"updated":1},"transfers":[{"id":"d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d","status":"in_transit","status_display":"In transit"}]}}
```

## Receive transfer

`POST /api/2025-01/transfers/{transferId}/receive`

Records one receipt for some or all lines of an `in_transit` transfer; both the source and destination must still be active locations. For each line send `received_quantity`, `short_quantity` and `damaged_quantity` (whole numbers, at least one unit per line); together they may not exceed the line's `remaining_quantity`. Received units leave the source (on hand and transfer hold) and are added to destination on hand with paired `transfer_out`/`transfer_in` movements. Short units never left the source: their transfer hold is released so they become available at the source again, with no movement row. Damaged units leave the source on hand and hold and are written off with a `transfer_damaged` movement; they are not added to the destination. Receipts can be repeated until every unit of every line is accounted for; the receipt that accounts for the last unit completes the transfer. Each receipt commits atomically, emits `inventory_levels/update` for every changed level and `transfers/received`, and the completing receipt also emits `transfers/status_changed`. Concurrent receipts serialize on the transfer. Send a stable `Idempotency-Key` when retrying: an identical replay returns the original transfer without recording a second receipt; reuse for different input returns 409.

Scope: `write_inventory`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/transfers/d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d/receive' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "lines": [
    {
      "damaged_quantity": 1,
      "received_quantity": 18,
      "short_quantity": 1,
      "transfer_item_id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b"
    }
  ],
  "notes": "Pallet 2 of 3; one unit crushed."
}'
```

Response:

```json
{
  "data": {
    "cancelled_at": null,
    "completed_at": null,
    "created_at": "2026-07-07T11:03:00-04:00",
    "created_by": null,
    "created_by_app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "created_by_app_name": "Inventory Connector",
    "damaged_quantity_total": 1,
    "from_location_deleted": false,
    "from_location_deleted_at": null,
    "from_location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
    "from_location_name": "Main Warehouse",
    "id": "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d",
    "item_count": 2,
    "items": [
      {
        "damaged_quantity": 1,
        "group_id": null,
        "id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
        "item_type": "variant",
        "product_id": 118,
        "product_title": "Trailblazer Tee",
        "quantity": 20,
        "received_quantity": 18,
        "remaining_quantity": 0,
        "resource_deleted": false,
        "short_quantity": 1,
        "sku": "TRAIL-TEE-FOR-M",
        "variant_id": 342,
        "variant_title": "Forest / M"
      },
      {
        "damaged_quantity": 0,
        "group_id": null,
        "id": "6f7a8b9c-0d1e-4f2a-9b3c-4d5e6f7a8b9c",
        "item_type": "variant",
        "product_id": 118,
        "product_title": "Trailblazer Tee",
        "quantity": 15,
        "received_quantity": null,
        "remaining_quantity": 15,
        "resource_deleted": false,
        "short_quantity": 0,
        "sku": "TRAIL-TEE-FOR-L",
        "variant_id": 343,
        "variant_title": "Forest / L"
      }
    ],
    "notes": null,
    "receipt_state": "partial",
    "receipts": [
      {
        "created_at": "2026-07-09T10:30:00-04:00",
        "created_by_app_name": "Inventory Connector",
        "created_by_name": "",
        "id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c01",
        "lines": [
          {
            "damaged_quantity": 1,
            "received_quantity": 18,
            "short_quantity": 1,
            "sku": "TRAIL-TEE-FOR-M",
            "transfer_item_id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b"
          }
        ],
        "notes": "Pallet 2 of 3; one unit crushed.",
        "receipt_number": 1
      }
    ],
    "received_quantity_total": 18,
    "reference_number": "PO-2093",
    "remaining_quantity_total": 15,
    "shipped_at": "2026-07-08T09:00:00-04:00",
    "short_quantity_total": 1,
    "status": "in_transit",
    "status_display": "Partially received",
    "store_seq_id": 42,
    "to_location_deleted": false,
    "to_location_deleted_at": null,
    "to_location_id": "7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
    "to_location_name": "Downtown Store",
    "total_quantity": 35,
    "transfer_number": "TRF-000042"
  },
  "success": true
}
```

## Delete transfer

`DELETE /api/2025-01/transfers/{transferId}`

Deletes a transfer that has not shipped. Transfers that are in transit, completed, or cancelled are immutable history and cannot be deleted.

Scope: `write_inventory`

```curl
curl -X DELETE 'https://api-store.tringify.com/api/2025-01/transfers/d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":null}
```

## Bulk delete transfers

`POST /api/2025-01/transfers/bulk-delete`

Deletes up to 100 pending transfers. In-transit, completed, and cancelled transfers are immutable operational history. If any selected transfer is missing, duplicated, immutable, or not writable by the caller, none are deleted. Every deleted transfer emits `transfers/delete` in the same transaction. A refusal names the transfer that caused it in `error.details.transfer_id`.

Scope: `write_inventory`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/transfers/bulk-delete' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "ids": [
    "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d"
  ]
}'
```

Response:

```json
{
  "data": {
    "deleted": 2
  },
  "success": true
}
```

## List restock requests

`GET /api/2025-01/inventory/restock-requests`

Returns customer "notify me when available" requests with product, status, and lifecycle timestamps — restock demand data for planning. Contact details (email or phone) are PII: they are returned only when the token also holds `read_customers`; otherwise `contact` is empty, `customer_id` is null and `contact_redacted` is true. The response's `can_view_contact` flag reports which mode you are in. Because contact is the searchable field, using `search` also requires `read_customers`; this prevents a redacted caller from inferring a subscription through result counts. `status_display` and `contact_type_display` word `status` and `contact_type` for the merchant, in English.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/restock-requests?limit=50&page=1&sort_direction=desc' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "can_view_contact": false,
    "limit": 25,
    "page": 1,
    "requests": [
      {
        "contact": "",
        "contact_redacted": true,
        "contact_type": "email",
        "contact_type_display": "Email",
        "customer_id": null,
        "expires_at": "2026-08-05T16:22:00-04:00",
        "id": "5a6b7c8d-9e0f-1a2b-3c4d-5e6f7a8b9c0d",
        "locale": "en",
        "notified_at": null,
        "product_id": 118,
        "product_title": "Trailblazer Tee",
        "requested_at": "2026-07-06T16:22:00-04:00",
        "status": "pending",
        "status_display": "Pending",
        "variant_id": 342,
        "variant_title": "Forest / M"
      }
    ],
    "total": 37
  },
  "success": true
}
```

## Restock request limits

`GET /api/2025-01/inventory/restock-requests/limits`

Returns the restock-request list's paging, search, status and contact-type limits and its sorting — the same keys as the `restock_requests` section of `GET /inventory/limits`.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/restock-requests/limits' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "contact_type_options": [
      {
        "value": "email",
        "label": "Email"
      },
      {
        "value": "sms",
        "label": "Phone"
      }
    ],
    "default_sort": "requested_at",
    "default_sort_direction": "desc",
    "list_max_limit": 100,
    "list_page_size": 20,
    "page_size_options": [
      10,
      20,
      50,
      100
    ],
    "search_max_length": 100,
    "sort_columns": [
      "contact_type",
      "expires_at",
      "notified_at",
      "product_id",
      "requested_at",
      "status"
    ],
    "status_options": [
      {
        "value": "pending",
        "label": "Pending"
      },
      {
        "value": "queued",
        "label": "Queued"
      },
      {
        "value": "notified",
        "label": "Notified"
      },
      {
        "value": "failed",
        "label": "Failed"
      },
      {
        "value": "suppressed",
        "label": "Suppressed"
      },
      {
        "value": "cancelled",
        "label": "Cancelled"
      },
      {
        "value": "converted",
        "label": "Converted"
      },
      {
        "value": "expired",
        "label": "Expired"
      }
    ]
  },
  "success": true
}
```

## Restock request statistics

`GET /api/2025-01/inventory/restock-requests/stats`

Returns a stable zero-filled count for every supported status. Requests whose expiry time has passed are atomically transitioned from pending to expired before the counts are read. Each count's `status_display` words its status in English.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/restock-requests/stats' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "counts": [
      {
        "count": 12,
        "status": "pending",
        "status_display": "Pending"
      },
      {
        "count": 0,
        "status": "queued",
        "status_display": "Queued"
      },
      {
        "count": 20,
        "status": "notified",
        "status_display": "Notified"
      },
      {
        "count": 0,
        "status": "failed",
        "status_display": "Failed"
      },
      {
        "count": 0,
        "status": "suppressed",
        "status_display": "Suppressed"
      },
      {
        "count": 0,
        "status": "cancelled",
        "status_display": "Cancelled"
      },
      {
        "count": 3,
        "status": "converted",
        "status_display": "Converted"
      },
      {
        "count": 2,
        "status": "expired",
        "status_display": "Expired"
      }
    ],
    "total": 37
  },
  "success": true
}
```

## Notify restock subscribers

`POST /api/2025-01/inventory/restock-requests/notify`

Queues the same email or SMS delivery used by automatic restock notification. Alerts must be enabled and the product must be active with sellable stock. Expired, queued and already-notified requests are not claimed. Enqueued counts are not delivery confirmations; read request statuses for provider acceptance or failure.

Scope: `write_inventory`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/inventory/restock-requests/notify' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "product_id": 42,
  "variant_id": 107
}'
```

Response:

```json
{
  "data": {
    "enqueued": 12
  },
  "success": true
}
```

## Get restock settings

`GET /api/2025-01/inventory/restock-alert-settings`

Returns whether capture is enabled, how long new requests remain pending, whether notifications send automatically when stock is available again, and the accepted expiry range.

Scope: `read_inventory`

```curl
curl 'https://api-store.tringify.com/api/2025-01/inventory/restock-alert-settings' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "limits": {
      "request_expiry_days_max": 365,
      "request_expiry_days_min": 1
    },
    "settings": {
      "auto_send_when_restocked": true,
      "enabled": true,
      "request_expiry_days": 90,
      "store_id": "1f0e2d3c-4b5a-6978-8695-a4b3c2d1e0f9"
    }
  },
  "success": true
}
```

## Update restock settings

`PUT /api/2025-01/inventory/restock-alert-settings`

Replaces the three settings together. Unknown fields are rejected. Disabling capture prevents new requests; existing pending requests retain their lifecycle and can still be reviewed.

Scope: `write_inventory`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/inventory/restock-alert-settings' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "auto_send_when_restocked": true,
  "enabled": true,
  "request_expiry_days": 90
}'
```

Response:

```json
{
  "data": {
    "limits": {
      "request_expiry_days_max": 365,
      "request_expiry_days_min": 1
    },
    "settings": {
      "auto_send_when_restocked": true,
      "enabled": true,
      "request_expiry_days": 90,
      "store_id": "1f0e2d3c-4b5a-6978-8695-a4b3c2d1e0f9"
    }
  },
  "success": true
}
```

## Webhook events

## Low stock alert

Event: `inventory/low_stock` · App scope: `read_inventory` · Staff permission: `inventory:write`

Fired when available inventory reaches or falls below a low stock threshold: a location threshold (`scope` `location`) or the item's overall threshold across all locations (`scope` `overall`). Alerts are checked on every stock or threshold change. While the item stays at or below the threshold, the next change alerts again only once the alert cooldown has passed since the last alert (`low_stock.alert_cooldown_hours` in `GET /inventory/limits`); after available rises above the threshold, the next drop alerts again at once. App subscriptions receive location alerts for merchant-managed locations and the app's own locations, never overall alerts, which span every location; the store's own webhook endpoints receive both.

```json
{
  "available": 4,
  "item_type": "variant",
  "location_id": "af720cef-7f1b-40f4-a5f8-8a55ea5b0d84",
  "location_name": "Main warehouse",
  "product_id": 42,
  "product_title": "Classic Tee",
  "scope": "location",
  "threshold": 5,
  "variant_id": 1007,
  "variant_sku": "TEE-BLK-M",
  "variant_title": "Black / M"
}
```

## Stock levels updated in bulk

Event: `inventory_levels/bulk_update` · App scope: `read_inventory` · Staff permission: `inventory:read`

Fired when one write changes stock for more than one item: each chunk of a bulk stock sync job or a stock CSV import, each batch of a location delete that moves or clears the location's stock, and each Store API, Store Admin or MCP stock write of more than one row by SKU (`POST /inventory/adjustments`). An inventory group's own writes (set, adjust, threshold and bulk changes across its locations) change one item and send `inventory_levels/update` per location instead. One event per location, carrying every level that changed (up to 1,000) in levels[], each shaped like an inventory_levels/update event; source says which write it was. Rows whose quantity didn't change are not included. A single-row write sends inventory_levels/update instead.

```json
{
  "levels": [
    {
      "available": 117,
      "change": 20,
      "changed_fields": [
        "quantity"
      ],
      "checkout_held": 1,
      "item_type": "variant",
      "location_id": "af720cef-7f1b-40f4-a5f8-8a55ea5b0d84",
      "low_stock_threshold": null,
      "occurred_at": "2026-10-25T14:02:11-04:00",
      "order_committed": 2,
      "other_held": 0,
      "product_id": 42,
      "quantity": 120,
      "reason": "correction",
      "reserved": 3,
      "store_id": "74e634ea-84ec-43b8-b66b-986214c2c5a3",
      "variant_id": 1007
    }
  ],
  "location_id": "af720cef-7f1b-40f4-a5f8-8a55ea5b0d84",
  "occurred_at": "2026-06-09T12:00:00-04:00",
  "reason": "correction",
  "source": "sync_job",
  "sync_job_id": "6b1f0c2e-9d3a-4e57-8c21-4f0a9e7d5b13"
}
```

## Stock level changed

Event: `inventory_levels/update` · App scope: `read_inventory` · Staff permission: `inventory:read`

Fired when stock at a location changes — one event per affected item and location (product, variant or inventory group), carrying the new on-hand quantity, the held amounts, available, the quantity change and the reason. change is 0 when only held amounts move. While a delivery for the same item, location and reason is still pending, a newer change replaces it: the delivery carries the latest levels and change becomes the sum of both. Sync integrations should treat this as the source of truth for levels.

```json
{
  "available": 32,
  "change": -2,
  "changed_fields": [
    "quantity",
    "reserved",
    "order_committed"
  ],
  "checkout_held": 1,
  "item_type": "variant",
  "location_id": "af720cef-7f1b-40f4-a5f8-8a55ea5b0d84",
  "low_stock_threshold": 10,
  "occurred_at": "2026-06-09T12:00:00-04:00",
  "order_committed": 4,
  "other_held": 1,
  "product_id": 42,
  "quantity": 38,
  "reason": "sold",
  "reserved": 6,
  "variant_id": 1007
}
```

## Stock sync finished

Event: `inventory_sync_jobs/completed` · App scope: `read_inventory` · Staff permission: `inventory:read`

Fired when a bulk stock sync job finishes, with its final status and how many rows changed, were unchanged and failed.

```json
{
  "completed_at": "2026-10-25T14:09:40-04:00",
  "location_id": "af720cef-7f1b-40f4-a5f8-8a55ea5b0d84",
  "rows_changed": 81234,
  "rows_failed": 6,
  "rows_total": 100000,
  "rows_unchanged": 18760,
  "status": "completed",
  "sync_job_id": "6b1f0c2e-9d3a-4e57-8c21-4f0a9e7d5b13"
}
```

## Back-in-stock request created

Event: `restock_requests/create` · App scope: `read_inventory` · Staff permission: `inventory:read`

Fired when a shopper asks to be told when an item can be bought again (Notify Me on the storefront or a headless site). Asking again for the same item and contact refreshes the request and sends nothing. The payload never carries the contact or the customer; read them with GET /inventory/restock-requests and read_customers.

```json
{
  "changed_fields": [],
  "current": {
    "contact_type": "email",
    "expires_at": "2026-10-04T16:22:00-04:00",
    "id": "5a6b7c8d-9e0f-4a2b-8c4d-5e6f7a8b9c0d",
    "locale": "en",
    "notified_at": null,
    "product_id": 118,
    "requested_at": "2026-07-06T16:22:00-04:00",
    "status": "pending",
    "status_reason": null,
    "variant_id": 342
  },
  "occurred_at": "2026-07-06T16:22:00-04:00",
  "previous": null,
  "resource_id": "5a6b7c8d-9e0f-4a2b-8c4d-5e6f7a8b9c0d",
  "resource_type": "restock_request"
}
```

## Back-in-stock request updated

Event: `restock_requests/update` · App scope: `read_inventory` · Staff permission: `inventory:read`

Fired when a back-in-stock request's status changes: queued (the alert is being sent), notified (the email or messaging provider accepted it), failed, suppressed or expired. Carries the request before and after, and changed_fields.

```json
{
  "changed_fields": [
    "status",
    "notified_at"
  ],
  "current": {
    "contact_type": "email",
    "expires_at": "2026-10-04T16:22:00-04:00",
    "id": "5a6b7c8d-9e0f-4a2b-8c4d-5e6f7a8b9c0d",
    "locale": "en",
    "notified_at": "2026-07-20T09:15:00-04:00",
    "product_id": 118,
    "requested_at": "2026-07-06T16:22:00-04:00",
    "status": "notified",
    "status_reason": null,
    "variant_id": 342
  },
  "occurred_at": "2026-07-20T09:15:00-04:00",
  "previous": {
    "contact_type": "email",
    "expires_at": "2026-10-04T16:22:00-04:00",
    "id": "5a6b7c8d-9e0f-4a2b-8c4d-5e6f7a8b9c0d",
    "locale": "en",
    "notified_at": null,
    "product_id": 118,
    "requested_at": "2026-07-06T16:22:00-04:00",
    "status": "queued",
    "status_reason": null,
    "variant_id": 342
  },
  "resource_id": "5a6b7c8d-9e0f-4a2b-8c4d-5e6f7a8b9c0d",
  "resource_type": "restock_request"
}
```

## Transfer created

Event: `transfers/create` · App scope: `read_inventory` · Staff permission: `inventory:write`

Fired when a stock transfer is created (status pending).

```json
{
  "from_location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
  "from_location_name": "Main Warehouse",
  "item_count": 2,
  "occurred_at": "2026-07-08T09:00:00-04:00",
  "previous_status": "",
  "reference_number": "PO-2093",
  "resource_id": "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d",
  "resource_type": "transfer",
  "status": "pending",
  "store_seq_id": 42,
  "to_location_id": "7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
  "to_location_name": "Downtown Store",
  "total_quantity": 35,
  "transfer_number": "TRF-000042"
}
```

## Transfer deleted

Event: `transfers/delete` · App scope: `read_inventory` · Staff permission: `inventory:write`

Fired when a Pending stock transfer document is deleted.

```json
{
  "from_location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
  "from_location_name": "Main Warehouse",
  "item_count": 2,
  "occurred_at": "2026-07-08T09:00:00-04:00",
  "previous_status": "",
  "reference_number": "PO-2093",
  "resource_id": "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d",
  "resource_type": "transfer",
  "status": "pending",
  "store_seq_id": 42,
  "to_location_id": "7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
  "to_location_name": "Downtown Store",
  "total_quantity": 35,
  "transfer_number": "TRF-000042"
}
```

## Transfer received

Event: `transfers/received` · App scope: `read_inventory` · Staff permission: `inventory:write`

Fired for every receipt recorded against an in-transit transfer, with the received, short and damaged units per line. A receipt that accounts for every remaining unit also fires transfers/status_changed to completed. Stock changes arrive separately as inventory_levels/update.

```json
{
  "damaged_quantity_total": 1,
  "from_location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
  "from_location_name": "Main Warehouse",
  "item_count": 2,
  "lines": [
    {
      "damaged_quantity": 1,
      "group_id": null,
      "item_type": "variant",
      "product_id": 118,
      "received_quantity": 18,
      "remaining_quantity": 0,
      "short_quantity": 1,
      "sku": "TRAIL-TEE-FOR-M",
      "transfer_item_id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
      "variant_id": 342
    }
  ],
  "occurred_at": "2026-07-08T09:00:00-04:00",
  "previous_status": "in_transit",
  "receipt_id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c01",
  "receipt_number": 1,
  "received_quantity_total": 18,
  "reference_number": "PO-2093",
  "remaining_quantity_total": 15,
  "resource_id": "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d",
  "resource_type": "transfer",
  "short_quantity_total": 1,
  "status": "in_transit",
  "store_seq_id": 42,
  "to_location_id": "7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
  "to_location_name": "Downtown Store",
  "total_quantity": 35,
  "transfer_number": "TRF-000042"
}
```

## Transfer status changed

Event: `transfers/status_changed` · App scope: `read_inventory` · Staff permission: `inventory:write`

Fired on every transfer status transition (pending → in_transit → completed / cancelled), carrying the previous and new status. Completion stock changes arrive separately as inventory_levels/update.

```json
{
  "from_location_id": "0b54c9c1-6a2f-4f6e-9d1c-7e8a2b3c4d5e",
  "from_location_name": "Main Warehouse",
  "item_count": 2,
  "occurred_at": "2026-07-08T09:00:00-04:00",
  "previous_status": "pending",
  "reference_number": "PO-2093",
  "resource_id": "d3b7c2a4-91e5-4f0a-b6c8-2f4e5a6b7c8d",
  "resource_type": "transfer",
  "status": "in_transit",
  "store_seq_id": 42,
  "to_location_id": "7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
  "to_location_name": "Downtown Store",
  "total_quantity": 35,
  "transfer_number": "TRF-000042"
}
```

