Skip to content

    API reference

    Events

    An event describes one change in your inventory. Webhooks (set up in the app) and API subscriptions deliver events as they happen; Webhook deliveries shows the envelope they arrive in. This page describes the events themselves.

    Event types

    Event Label in the app What happened
    inventory.updated Stock changed Stock was added, removed or counted.
    inventory.low_stock Low stock An item dropped to its low stock level.
    inventory.out_of_stock Out of stock An item ran out.
    item.created Item created A new item was added.
    item.updated Item updated An item's name, SKU, price, folder or other details changed.
    item.archived Item archived An item was archived.

    When events fire

    Events fire no matter where the change was made: the web app (spreadsheet imports included), the phone app, the API, Zapier, WooCommerce, OrbisX or an inbound webhook. An import sends item.created for each new item, plus inventory.updated for each one that starts with stock. With updating by SKU on, a matched item sends item.updated when its details change, and inventory.updated when its quantity changes.

    Restoring an archived item and deleting an item for good send no event.

    Stock alert events

    inventory.low_stock and inventory.out_of_stock follow the app's own stock alerts (see Low stock & out of stock alerts) and respect each item's alert settings. Each fires once when the item becomes low or runs out, not again on every movement while it stays that way:

    Event Fires when
    inventory.low_stock Stock is above 0 and at or below the item's low stock level (which must be above 0), and the item isn't already flagged low. That includes a restock from 0 that still leaves it low.
    inventory.out_of_stock Stock reaches 0 on an item that has held stock at least once, so a new item that starts at 0 doesn't fire it.

    Neither fires for a variant group or an archived item, or for the opening stock of an item created through the API. Changing an item's low stock level or alert settings re-checks its alert, so either event can fire without any stock moving.

    Item updated

    item.updated fires when one of these fields changes: name, sku, description, unitCost, salePrice, lowStockThreshold, barcode, folderId, variantValues. Its changedFields lists which.

    • Stock changes are sent as inventory.updated instead.
    • For sku, description and barcode, switching between an empty string and no value isn't a change.
    • Edits to an archived item send nothing.
    • Other details, such as images, vendor, unit or tags, aren't in the item object and send no event.

    Event payloads

    Every event's data has an id, an occurredAt time (ISO 8601, UTC) and the item it is about, as a full item object. Some events add more fields.

    The item is read when the delivery is queued, after the change, so it can already include later changes. Values such as newQuantity describe the change itself.

    In the examples below the item is shortened to three fields. It is always the full item object.

    inventory.updated

    Stock was added, removed or counted.

    Field Type Description
    id integer The ID of the stock change in the item's history.
    type string "in" (stock went up), "out" (stock went down) or "adjust". Changes made through the API are always "in" or "out".
    quantityChange integer or null New quantity minus previous quantity. Negative when stock went down.
    previousQuantity integer or null Stock before the change.
    newQuantity integer or null Stock after the change.
    notes string or null The note recorded with the change, if any.
    source string or null Where the change was made: "web" (spreadsheet imports included), "mobile", "api" (inbound webhooks included), "zapier", "woocommerce_webhook", "orbisx", or null when unknown. Accept values not listed here; more may be added.
    json
    {
      "id": 98231,
      "occurredAt": "2026-10-12T09:41:27.000Z",
      "type": "out",
      "quantityChange": -3,
      "previousQuantity": 17,
      "newQuantity": 14,
      "notes": "Order #1042",
      "source": "api",
      "item": { "id": 123, "name": "Blue Mug", "sku": "MUG-BLU" }
    }
    

    quantityChange, previousQuantity and newQuantity are always set for changes the app records today; they can be null on older history entries.

    inventory.low_stock

    An item dropped to its low stock level.

    Field Type Description
    id integer The ID of the stock alert.
    quantity integer Stock when the alert fired.
    lowStockThreshold integer or null The item's low stock level as it is now.
    json
    {
      "id": 4410,
      "occurredAt": "2026-10-12T09:41:27.000Z",
      "quantity": 4,
      "lowStockThreshold": 5,
      "item": { "id": 123, "name": "Blue Mug", "sku": "MUG-BLU" }
    }
    

    inventory.out_of_stock

    An item ran out.

    Field Type Description
    id integer The ID of the stock alert.
    quantity integer Always 0.
    json
    {
      "id": 4411,
      "occurredAt": "2026-10-12T10:02:55.000Z",
      "quantity": 0,
      "item": { "id": 123, "name": "Blue Mug", "sku": "MUG-BLU" }
    }
    

    item.created

    A new item was added.

    Field Type Description
    id integer The new item's ID.
    json
    {
      "id": 123,
      "occurredAt": "2026-10-01T14:03:11.000Z",
      "item": { "id": 123, "name": "Blue Mug", "sku": "MUG-BLU" }
    }
    

    item.updated

    An item's name, SKU, price, folder or other details changed.

    Field Type Description
    id string The item ID and the time of the change in Unix milliseconds, such as "123-1791798087000".
    changedFields array of strings Which fields of the item object changed: any of name, sku, description, unitCost, salePrice, lowStockThreshold, barcode, folderId, variantValues. Samples from Recent events have an empty list.
    json
    {
      "id": "123-1791798087000",
      "occurredAt": "2026-10-12T09:41:27.000Z",
      "changedFields": ["name", "salePrice"],
      "item": { "id": 123, "name": "Blue Mug", "sku": "MUG-BLU" }
    }
    

    item.archived

    An item was archived, on the web or in the phone app.

    Field Type Description
    id integer The ID of the archive entry in the item's history.
    json
    {
      "id": 98240,
      "occurredAt": "2026-10-12T11:15:03.000Z",
      "item": { "id": 123, "name": "Blue Mug", "sku": "MUG-BLU" }
    }
    

    Recent events

    GET /events — needs read

    Returns the most recent events of one type, newest first, in the same shape as a delivery's data. Handy for testing your webhook handler with real data.

    Query parameters

    Parameter Type Required Description
    type string Yes One of the event types, such as inventory.updated.
    limit integer No How many events, 1–25. Default 10. 0 is raised to 1 and anything above 25 is lowered to 25. A value that isn't a whole number of at most 9 digits (a negative, a decimal, or 10 digits or more) returns 400 validation_error.

    These are rebuilt from the item history the app keeps, not read from a log of past deliveries, and the item in each is the item as it is now. item.created and item.updated samples are the most recently created and most recently updated items that aren't archived, and item.updated samples have an empty changedFields.

    Example

    bash
    curl "https://app.simpleinventory.io/api/v1/events?type=inventory.updated&limit=1" \
      -H "Authorization: Bearer $SIMPLE_INVENTORY_API_KEY"
    
    json
    {
      "data": [
        {
          "id": 98231,
          "occurredAt": "2026-10-12T09:41:27.000Z",
          "type": "out",
          "quantityChange": -3,
          "previousQuantity": 17,
          "newQuantity": 14,
          "notes": "Order #1042",
          "source": "api",
          "item": { "id": 123, "name": "Blue Mug", "sku": "MUG-BLU" }
        }
      ]
    }
    

    The item is shortened here; the response has the full item object.

    Errors

    Status Code When
    400 invalid_event type is missing or isn't one of the six event types.
    400 validation_error limit isn't a whole number of at most 9 digits.