API reference
Items
Items are the things you keep stock of. This page covers the item object every endpoint and webhook returns, how a path finds an item by ID or SKU, and the endpoints that read and edit items. Changing stock has its own page: Stock.
The item object
Every endpoint that returns an item, and every webhook event, uses this same object. Money values are numbers, not strings. New fields may be added over time, so ignore any you don't recognize.
{
"id": 123,
"name": "Blue Mug",
"sku": "MUG-BLU",
"quantity": 14,
"unitCost": 4.5,
"salePrice": 12,
"lowStockThreshold": 5,
"description": "12 oz ceramic mug",
"barcode": "0123456789012",
"folderId": 7,
"folderName": "Kitchen",
"parentItemId": null,
"variantValues": null,
"isVariantGroup": false,
"archived": false,
"createdAt": "2026-10-01T14:03:11.000Z",
"updatedAt": "2026-10-12T09:41:27.000Z",
"url": "https://app.simpleinventory.io/item/123"
}
| Field | Type | Description |
|---|---|---|
id |
integer | The item's unique ID. |
name |
string | The item's name. |
sku |
string or null | Your stock-keeping unit. |
quantity |
integer | Stock on hand. For a variant group, the total of its variations. |
unitCost |
number | What one unit costs you. 0 when no cost is set. |
salePrice |
number or null | What you sell one unit for. |
lowStockThreshold |
integer or null | The stock level that counts as low. |
description |
string or null | Free-text description. |
barcode |
string or null | Stored barcode value. |
folderId |
integer or null | The folder the item is in. |
folderName |
string or null | That folder's name (not its full path). |
parentItemId |
integer or null | On a variation: the ID of its variant group. |
variantValues |
object or null | On a variation: which options it is, such as {"Size": "M"}. |
isVariantGroup |
boolean | true for a variant group. It holds no stock of its own. |
archived |
boolean | true once the item has been archived. |
createdAt |
string | When the item was created (ISO 8601, UTC). |
updatedAt |
string | When the item last changed (ISO 8601, UTC). |
url |
string | Link to the item in Simple Inventory. |
Variant groups
An item with variations, such as a T-shirt in three sizes, is a variant group plus one item per variation. The variations hold the stock; the group's quantity is their total. The API can read variant groups and change their variations' stock and details, but can't create or reshape a group.
Variant groups can't currently be created in the web or phone app, so most organizations have none: every item has
parentItemId: null,variantValues: nullandisVariantGroup: false, andincludemakes no difference. The fields and errors are documented because an organization that already has a group can still return them.
Identifying an item
Where a path takes an {identifier}, pass the item's numeric ID or its SKU, URL-encoded. GET /items/{identifier}, PATCH /items/{identifier} and PATCH /items/{identifier}/quantity take a by query parameter saying how to read it:
by |
The identifier is |
|---|---|
auto |
The default. Anything that isn't all digits is a SKU. All digits is an item ID, or a SKU if no item has that ID. If one item has that ID and a different item has it as its SKU, the request is refused with 409 ambiguous_identifier rather than guessing. |
id |
An item ID. Anything but digits returns 400 validation_error. |
sku |
A SKU, even when it's all digits. |
If your SKUs are numbers, pass ?by=sku so they're never read as item IDs.
Every SKU lookup (these paths, GET /items?sku=, bulk update and inbound webhooks) matches the same way: an exact match first; failing that, a match ignoring letter case if exactly one item has it. If more than one item matches ignoring case, the answer is 409 ambiguous_identifier. Spaces around the SKU you send are ignored.
On the three paths above, archived items are found too: reading one works, and changing one returns 409 item_archived. Bulk update finds them too and lists each one in errors with the code item_archived. GET /items?sku= never returns an archived item. Inbound webhooks are different: they apply the stock change to an archived item with that SKU. See Receive stock updates.
List items
GET /items — needs read
Lists the items in your organization that are not archived.
Query parameters
| Parameter | Type | Description |
|---|---|---|
limit |
integer | How many items to return, 1–500. Default 100. 0 is raised to 1 and anything above 500 is lowered to 500. 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. |
offset |
integer | How many items to skip. Default 0. Ignored with after. |
after |
integer | Return items whose id is greater than this, lowest ID first. Start with 0. Use it instead of offset to read every item. |
include |
string | leaves (default): items that hold stock, meaning standalone items and variations. groups: what you see in the app, meaning standalone items and variant groups. all: both. |
sku |
string | Only the item with this SKU, matched as described in Identifying an item. Returns at most one item, within the include filter, and only when offset is 0. |
search |
string | Items whose name or SKU contains this text. Not case-sensitive. |
Paging
To read every item, start with after=0 and pass each response's pagination.nextAfter as the next after until hasMore is false. With after, pagination is { limit, after, hasMore, nextAfter }, and nextAfter is null on the last page.
Without after, items come most recently updated first and offset skips into that list, and pagination is { limit, offset, hasMore }. That order is good for seeing what changed lately, but items can be skipped or repeated if stock changes while you page.
Archived items are never listed. Fetch one by ID with Get an item.
Example
curl "https://app.simpleinventory.io/api/v1/items?search=mug&limit=50" \
-H "Authorization: Bearer $SIMPLE_INVENTORY_API_KEY"
{
"data": [
{
"id": 123,
"name": "Blue Mug",
"sku": "MUG-BLU",
"quantity": 14,
"unitCost": 4.5,
"salePrice": 12,
"lowStockThreshold": 5,
"description": "12 oz ceramic mug",
"barcode": "0123456789012",
"folderId": 7,
"folderName": "Kitchen",
"parentItemId": null,
"variantValues": null,
"isVariantGroup": false,
"archived": false,
"createdAt": "2026-10-01T14:03:11.000Z",
"updatedAt": "2026-10-12T09:41:27.000Z",
"url": "https://app.simpleinventory.io/item/123"
}
],
"pagination": { "limit": 50, "offset": 0, "hasMore": false }
}
Errors
| Status | Code | When |
|---|---|---|
| 400 | validation_error |
limit, offset or after isn't a whole number of at most 9 digits, an unknown include, or sku or search given more than once. |
| 409 | ambiguous_identifier |
The sku matches more than one item once letter case is ignored. |
Get an item
GET /items/{identifier} — needs read
Fetches one item by its ID or SKU. Archived items are returned too, with archived: true.
A variant group also comes back with variants: its variations that aren't archived, as item objects, in the group's order. variants is absent on any other item.
Query parameters
| Parameter | Type | Description |
|---|---|---|
by |
string | How to read {identifier}: auto (default), id or sku. See Identifying an item. |
Example
curl https://app.simpleinventory.io/api/v1/items/MUG-BLU \
-H "Authorization: Bearer $SIMPLE_INVENTORY_API_KEY"
{
"data": {
"id": 123,
"name": "Blue Mug",
"sku": "MUG-BLU",
"quantity": 14,
"unitCost": 4.5,
"salePrice": 12,
"lowStockThreshold": 5,
"description": "12 oz ceramic mug",
"barcode": "0123456789012",
"folderId": 7,
"folderName": "Kitchen",
"parentItemId": null,
"variantValues": null,
"isVariantGroup": false,
"archived": false,
"createdAt": "2026-10-01T14:03:11.000Z",
"updatedAt": "2026-10-12T09:41:27.000Z",
"url": "https://app.simpleinventory.io/item/123"
}
}
Errors
| Status | Code | When |
|---|---|---|
| 400 | validation_error |
An unknown by value, or by=id with an identifier that isn't a number. |
| 404 | not_found |
No item in this organization matches. |
| 409 | ambiguous_identifier |
The identifier matches more than one item. |
Create an item
POST /items — needs write
Creates a standalone item, just as adding it in the app would: it appears in the item's history and counts toward your plan's item limit. Needs an organization that is not past due (see Subscription status).
JSON body
| Field | Type | Required | Description |
|---|---|---|---|
name |
string, 1–255 characters | Yes | The item's name. Leading and trailing spaces are trimmed. |
sku |
string, up to 100 characters | No | Must not be used by any other item in your organization: not exactly by any item, archived ones included, and not by an item that isn't archived even with different letter case or surrounding spaces. Blank means no SKU. |
quantity |
integer, 0–1,000,000,000 | No | Opening stock. Default 0. |
unitCost |
number, 0–99,999,999.99 | No | What one unit costs you. Default 0. Rounded to 2 decimal places. |
salePrice |
number, 0–99,999,999.99 | No | What you sell one unit for. Default null. Rounded to 2 decimal places. |
lowStockThreshold |
integer, 0–1,000,000,000 | No | The item's low stock level. Default 0, which leaves low stock alerts off. |
description |
string, up to 10,000 characters | No | Free-text description. |
barcode |
string, up to 255 characters | No | A barcode value. Must not be used by another item that isn't archived. Blank means no barcode. |
folderId |
integer | No | The folder to put it in, as a JSON number. Get IDs from List folders. |
quantity, lowStockThreshold, unitCost and salePrice also accept their value as a numeric string, such as "14". Fields not listed are ignored, except the variant fields named under Errors below.
The item gets your organization's default unit, with low stock and out of stock alerts on.
Opening stock is recorded as its own "Initial stock" entry in the item's history, so webhooks get item.created and then inventory.updated, queued in that order. Deliveries can still arrive out of order, so order them by occurredAt. Opening stock doesn't raise a low stock alert.
This request is not idempotent. Retrying it creates a second item, unless you give a SKU and the first request has finished, in which case the retry gets 409 duplicate_sku. Without a SKU, two requests in flight at the same time can both create an item; with one, only one of them succeeds and the other gets 409 duplicate_sku. Wait for the first response (or its timeout) before retrying.
Example
curl -X POST https://app.simpleinventory.io/api/v1/items \
-H "Authorization: Bearer $SIMPLE_INVENTORY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Blue Mug", "sku": "MUG-BLU", "quantity": 14, "unitCost": 4.5, "salePrice": 12,
"description": "12 oz ceramic mug", "barcode": "0123456789012", "folderId": 7}'
Response: 201 Created
{
"data": {
"id": 123,
"name": "Blue Mug",
"sku": "MUG-BLU",
"quantity": 14,
"unitCost": 4.5,
"salePrice": 12,
"lowStockThreshold": 5,
"description": "12 oz ceramic mug",
"barcode": "0123456789012",
"folderId": 7,
"folderName": "Kitchen",
"parentItemId": null,
"variantValues": null,
"isVariantGroup": false,
"archived": false,
"createdAt": "2026-10-01T14:03:11.000Z",
"updatedAt": "2026-10-01T14:03:11.214Z",
"url": "https://app.simpleinventory.io/item/123"
}
}
Errors
| Status | Code | When |
|---|---|---|
| 400 | validation_error |
A field is missing, too long, out of range or the wrong type. The body includes details. |
| 400 | variant_structure_immutable |
The body names parentItemId, variantValues, variantOptions or variantPosition. Variant groups can't be built through the API. |
| 402 | subscription_required |
The organization has no active plan or trial, or is past due. |
| 403 | item_limit_reached |
Your plan's item limit is reached. The body adds limit, currentUsage and currentPlan. |
| 404 | folder_not_found |
The folder isn't a folder of this organization, or was deleted. |
| 409 | duplicate_sku |
Another item already has this SKU. |
| 409 | duplicate_barcode |
Another item that isn't archived already has this barcode. |
An item_limit_reached body looks like this:
{
"error": "item_limit_reached",
"message": "You've reached your starter plan limit of 1000 items. Upgrade your plan to add more items.",
"limit": 1000,
"currentUsage": 1000,
"currentPlan": "starter"
}
Update an item
PATCH /items/{identifier} — needs write
Changes an item's details. Send only the fields you want to change; send null to clear any of them except name. Clearing unitCost sets it to 0, and clearing folderId takes the item out of its folder. Needs an organization that is not past due.
Query parameters
| Parameter | Type | Description |
|---|---|---|
by |
string | How to read {identifier}: auto (default), id or sku. See Identifying an item. |
JSON body
| Field | Type | Description |
|---|---|---|
name |
string, 1–255 characters | New name. |
sku |
string, up to 100 characters | New SKU. Must not be used by any other item, as described for Create an item. |
unitCost |
number, 0–99,999,999.99 | New unit cost. |
salePrice |
number, 0–99,999,999.99 | New sale price. |
lowStockThreshold |
integer, 0–1,000,000,000 | New low stock level. Alerts are re-checked straight away. |
description |
string, up to 10,000 characters | New description. |
barcode |
string, up to 255 characters | New barcode value. |
folderId |
integer | Move the item to this folder. Moving a variant group moves all its variations. |
The same field limits and value formats as creating an item apply. A body with nothing to change returns the item as it is.
Stock can't be changed here: a quantity field returns 400 validation_error. Use Change stock so the change is recorded in the item's history.
On a variant group, SKU, barcode and prices belong to the variations; on a variation, the folder belongs to the group.
Example
curl -X PATCH https://app.simpleinventory.io/api/v1/items/123 \
-H "Authorization: Bearer $SIMPLE_INVENTORY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"salePrice": 12.5, "lowStockThreshold": 6}'
{
"data": {
"id": 123,
"name": "Blue Mug",
"sku": "MUG-BLU",
"quantity": 14,
"unitCost": 4.5,
"salePrice": 12.5,
"lowStockThreshold": 6,
"description": "12 oz ceramic mug",
"barcode": "0123456789012",
"folderId": 7,
"folderName": "Kitchen",
"parentItemId": null,
"variantValues": null,
"isVariantGroup": false,
"archived": false,
"createdAt": "2026-10-01T14:03:11.000Z",
"updatedAt": "2026-10-12T09:41:27.000Z",
"url": "https://app.simpleinventory.io/item/123"
}
}
Errors
| Status | Code | When |
|---|---|---|
| 400 | validation_error |
A field is invalid (the body includes details), the body has quantity, or an unknown by value, or by=id with an identifier that isn't a number. |
| 400 | variant_structure_immutable |
The body names parentItemId, variantValues, variantOptions or variantPosition. |
| 402 | subscription_required |
The organization has no active plan or trial, or is past due. |
| 404 | not_found |
No item in this organization matches. |
| 404 | folder_not_found |
The folder isn't a folder of this organization, or was deleted. |
| 409 | ambiguous_identifier |
The identifier matches more than one item. |
| 409 | item_archived |
The item is archived. Restore it in the app first. |
| 409 | duplicate_sku |
Another item already has this SKU. |
| 409 | duplicate_barcode |
Another item that isn't archived already has this barcode. |
| 409 | variant_parent_not_stockable |
Setting sku, barcode, unitCost or salePrice on a variant group. |
| 409 | variant_child_field_inherited |
Setting folderId on a variation. Move its group instead. |
