API reference · version 1
Items
Goods and services, and stock on hand.
- GET
/itemsList items - GET
/items/{id}Get an item - GET
/items/{id}/stockStock by warehouse - POST
/itemsCreate an item - PATCH
/items/{id}Update an item
List items
GET/api/v1/items
Goods and services, newest first, with the quantity on hand.
Query parameters
| Field | Type | Description |
|---|---|---|
| limit | integer | Records per page, 1–100 (default 25).≥ 1 · ≤ 100 · default 25 |
| cursor | string | The nextCursor of the previous page.at most 64 characters |
| updatedSince | string | Only records changed at or after this instant (records without a change time: created). |
| q | string | SKU, name or barcode contains.at most 80 characters |
| type | enum | GOODS or SERVICE.one of GOODS, SERVICE |
| active | enum | one of true, false |
Example
curl "https://your-workspace.omnibooks.online/api/v1/items" \
-H "Authorization: Bearer $OMNIBOOKS_KEY"{
"data": [
{
"id": "cmabc123def456",
"sku": "TILE-60",
"name": "Gulf Star Trading LLC",
"nameAr": null,
"description": "Ceramic floor tile 60×60",
"type": "GOODS",
"trackInventory": false,
"unitCode": "H87",
"barcode": null,
"category": null,
"salesPrice": "105.000",
"retailPrice": "105.000",
"purchasePrice": "105.000",
"salesTaxCodeId": "cmabc123def456",
"purchaseTaxCodeId": "cmabc123def456",
"revenueAccountId": "cmabc123def456",
"purchaseAccountId": "cmabc123def456",
"onHand": "105.000",
"averageCost": "105.000",
"isActive": true,
"customFields": {
"delivery_slot": "Morning"
},
"createdAt": "2026-11-30T08:15:00.000Z",
"updatedAt": "2026-11-30T08:15:00.000Z"
}
],
"nextCursor": null
}Answer fields
| Field | Type | Description |
|---|---|---|
| datarequired | array of object | |
| data[].idrequired | string | An OmniBooks id. |
| data[].skurequired | string | Your item code (made upper case). |
| data[].namerequired | string | Display name. |
| data[].nameArrequired | string | may be null |
| data[].descriptionrequired | string | What is sold or bought, as printed.may be null |
| data[].typerequired | enum | GOODS or SERVICE.one of GOODS, SERVICE |
| data[].trackInventoryrequired | boolean | Keep a quantity and value in stock (goods only). |
| data[].unitCoderequired | string | UN/ECE unit code, e.g. H87 (piece). |
| data[].barcoderequired | string | Main barcode.may be null |
| data[].categoryrequired | string | Category name (created if new).may be null |
| data[].salesPricerequired | string | A decimal amount as a string, e.g. "105.000".may be null |
| data[].retailPricerequired | string | Tax-inclusive shelf price used at the till.may be null |
| data[].purchasePricerequired | string | A decimal amount as a string, e.g. "105.000".may be null |
| data[].salesTaxCodeIdrequired | string | An OmniBooks id.may be null |
| data[].purchaseTaxCodeIdrequired | string | An OmniBooks id.may be null |
| data[].revenueAccountIdrequired | string | An OmniBooks id.may be null |
| data[].purchaseAccountIdrequired | string | An OmniBooks id.may be null |
| data[].onHandrequired | string | Quantity on hand in every warehouse (0 for items not tracked). |
| data[].averageCostrequired | string | A decimal amount as a string, e.g. "105.000". |
| data[].isActiverequired | boolean | |
| data[].customFieldsrequired | object (by key) | The company's custom fields, by key (GET /custom-fields lists them). Empty fields are left out. |
| data[].createdAtrequired | string | An instant, ISO 8601 in UTC. |
| data[].updatedAtrequired | string | An instant, ISO 8601 in UTC. |
| nextCursorrequired | string | Pass as cursor for the next page; null on the last page.may be null |
Get an item
GET/api/v1/items/{id}
One item.
Path
| Field | Type | Description |
|---|---|---|
| idrequired | string | The record's id. |
Example
curl "https://your-workspace.omnibooks.online/api/v1/items/<id>" \
-H "Authorization: Bearer $OMNIBOOKS_KEY"{
"id": "cmabc123def456",
"sku": "TILE-60",
"name": "Gulf Star Trading LLC",
"nameAr": null,
"description": "Ceramic floor tile 60×60",
"type": "GOODS",
"trackInventory": false,
"unitCode": "H87",
"barcode": null,
"category": null,
"salesPrice": "105.000",
"retailPrice": "105.000",
"purchasePrice": "105.000",
"salesTaxCodeId": "cmabc123def456",
"purchaseTaxCodeId": "cmabc123def456",
"revenueAccountId": "cmabc123def456",
"purchaseAccountId": "cmabc123def456",
"onHand": "105.000",
"averageCost": "105.000",
"isActive": true,
"customFields": {
"delivery_slot": "Morning"
},
"createdAt": "2026-11-30T08:15:00.000Z",
"updatedAt": "2026-11-30T08:15:00.000Z"
}Answer fields
| Field | Type | Description |
|---|---|---|
| idrequired | string | An OmniBooks id. |
| skurequired | string | Your item code (made upper case). |
| namerequired | string | Display name. |
| nameArrequired | string | may be null |
| descriptionrequired | string | What is sold or bought, as printed.may be null |
| typerequired | enum | GOODS or SERVICE.one of GOODS, SERVICE |
| trackInventoryrequired | boolean | Keep a quantity and value in stock (goods only). |
| unitCoderequired | string | UN/ECE unit code, e.g. H87 (piece). |
| barcoderequired | string | Main barcode.may be null |
| categoryrequired | string | Category name (created if new).may be null |
| salesPricerequired | string | A decimal amount as a string, e.g. "105.000".may be null |
| retailPricerequired | string | Tax-inclusive shelf price used at the till.may be null |
| purchasePricerequired | string | A decimal amount as a string, e.g. "105.000".may be null |
| salesTaxCodeIdrequired | string | An OmniBooks id.may be null |
| purchaseTaxCodeIdrequired | string | An OmniBooks id.may be null |
| revenueAccountIdrequired | string | An OmniBooks id.may be null |
| purchaseAccountIdrequired | string | An OmniBooks id.may be null |
| onHandrequired | string | Quantity on hand in every warehouse (0 for items not tracked). |
| averageCostrequired | string | A decimal amount as a string, e.g. "105.000". |
| isActiverequired | boolean | |
| customFieldsrequired | object (by key) | The company's custom fields, by key (GET /custom-fields lists them). Empty fields are left out. |
| createdAtrequired | string | An instant, ISO 8601 in UTC. |
| updatedAtrequired | string | An instant, ISO 8601 in UTC. |
Stock by warehouse
GET/api/v1/items/{id}/stock
On hand per warehouse the member may see. Till sales not yet posted are not subtracted until the shift posts.
Path
| Field | Type | Description |
|---|---|---|
| idrequired | string | The record's id. |
Example
curl "https://your-workspace.omnibooks.online/api/v1/items/<id>/stock" \
-H "Authorization: Bearer $OMNIBOOKS_KEY"{
"itemId": "cmabc123def456",
"warehouses": [
{
"warehouseId": "cmabc123def456",
"code": "C-0042",
"name": "Gulf Star Trading LLC",
"onHand": "105.000"
}
]
}Answer fields
| Field | Type | Description |
|---|---|---|
| itemIdrequired | string | An OmniBooks id. |
| warehousesrequired | array of object | |
| warehouses[].warehouseIdrequired | string | An OmniBooks id. |
| warehouses[].coderequired | string | Left out = the next free number. |
| warehouses[].namerequired | string | Display name. |
| warehouses[].onHandrequired | string | A decimal quantity as a string. |
Create an item
POST/api/v1/items
Creates a good or a service. Empty accounts and tax codes take the category's defaults, else the company's (4100/4200 sales, 1300 inventory, 5100 cost of sales). Stock is added by receiving goods or an opening adjustment in OmniBooks, not here.
Body
| Field | Type | Description |
|---|---|---|
| customFields | object (by key) | Custom field values by key (GET /custom-fields). Only the keys you send change; an empty value clears one; unknown keys are refused.may be null |
| skurequired | string | Your item code (made upper case).at least 1 characters · at most 40 characters |
| barcode | string | Main barcode.at most 40 characters · may be null |
| namerequired | string | Display name.at least 1 characters · at most 200 characters |
| nameAr | string | at most 200 characters · may be null |
| description | string | What is sold or bought, as printed.at most 1000 characters · may be null |
| typerequired | enum | GOODS or SERVICE.one of GOODS, SERVICE |
| trackInventory | boolean | Keep a quantity and value in stock (goods only).default true |
| trackBatches | boolean | |
| trackExpiry | boolean | |
| expiryWarningDays | number | string | may be null |
| category | string | Category name (created if new).at most 80 characters · may be null |
| unitCoderequired | string | UN/ECE unit code, e.g. H87 piece, KGM kilogram.at most 8 characters |
| salesPrice | string | Price before tax on sales documents.at most 24 characters · may be null |
| purchasePrice | string | Usual cost on purchase documents.at most 24 characters · may be null |
| revenueAccountId | string | at most 64 characters · may be null |
| purchaseAccountId | string | at most 64 characters · may be null |
| inventoryAccountId | string | at most 64 characters · may be null |
| cogsAccountId | string | at most 64 characters · may be null |
| salesTaxCodeId | string | at most 64 characters · may be null |
| purchaseTaxCodeId | string | at most 64 characters · may be null |
| classificationCode | string | HS, HSN/SAC or the tax authority's item code, where e-invoicing needs one.at most 40 characters · may be null |
| reorderLevel | string | at most 24 characters · may be null |
| reorderQuantity | string | at most 24 characters · may be null |
| isActive | boolean | default true |
| retailPrice | string | Tax-inclusive price at the till.at most 24 characters · may be null |
| posVisible | boolean | default true |
| isWeighable | boolean | default false |
| pluCode | string | at most 6 characters · may be null |
| netQuantity | string | at most 24 characters · may be null |
| netUnit | enum | enum | |
| extraBarcodes | array of object | at most 20 items |
| extraBarcodes[].coderequired | string | Left out = the next free number.at least 1 characters · at most 40 characters |
| extraBarcodes[].packQuantityrequired | string | pattern ^\d{1,9}(\.\d{1,4})?$ |
Example
curl -X POST "https://your-workspace.omnibooks.online/api/v1/items" \
-H "Authorization: Bearer $OMNIBOOKS_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"sku": "TILE-60",
"name": "Ceramic floor tile 60×60",
"type": "GOODS",
"trackInventory": true,
"unitCode": "H87",
"salesPrice": "18.000",
"purchasePrice": "11.500"
}'{
"id": "cmabc123def456",
"sku": "TILE-60",
"name": "Gulf Star Trading LLC",
"nameAr": null,
"description": "Ceramic floor tile 60×60",
"type": "GOODS",
"trackInventory": false,
"unitCode": "H87",
"barcode": null,
"category": null,
"salesPrice": "105.000",
"retailPrice": "105.000",
"purchasePrice": "105.000",
"salesTaxCodeId": "cmabc123def456",
"purchaseTaxCodeId": "cmabc123def456",
"revenueAccountId": "cmabc123def456",
"purchaseAccountId": "cmabc123def456",
"onHand": "105.000",
"averageCost": "105.000",
"isActive": true,
"customFields": {
"delivery_slot": "Morning"
},
"createdAt": "2026-11-30T08:15:00.000Z",
"updatedAt": "2026-11-30T08:15:00.000Z"
}Answer fields
| Field | Type | Description |
|---|---|---|
| idrequired | string | An OmniBooks id. |
| skurequired | string | Your item code (made upper case). |
| namerequired | string | Display name. |
| nameArrequired | string | may be null |
| descriptionrequired | string | What is sold or bought, as printed.may be null |
| typerequired | enum | GOODS or SERVICE.one of GOODS, SERVICE |
| trackInventoryrequired | boolean | Keep a quantity and value in stock (goods only). |
| unitCoderequired | string | UN/ECE unit code, e.g. H87 (piece). |
| barcoderequired | string | Main barcode.may be null |
| categoryrequired | string | Category name (created if new).may be null |
| salesPricerequired | string | A decimal amount as a string, e.g. "105.000".may be null |
| retailPricerequired | string | Tax-inclusive shelf price used at the till.may be null |
| purchasePricerequired | string | A decimal amount as a string, e.g. "105.000".may be null |
| salesTaxCodeIdrequired | string | An OmniBooks id.may be null |
| purchaseTaxCodeIdrequired | string | An OmniBooks id.may be null |
| revenueAccountIdrequired | string | An OmniBooks id.may be null |
| purchaseAccountIdrequired | string | An OmniBooks id.may be null |
| onHandrequired | string | Quantity on hand in every warehouse (0 for items not tracked). |
| averageCostrequired | string | A decimal amount as a string, e.g. "105.000". |
| isActiverequired | boolean | |
| customFieldsrequired | object (by key) | The company's custom fields, by key (GET /custom-fields lists them). Empty fields are left out. |
| createdAtrequired | string | An instant, ISO 8601 in UTC. |
| updatedAtrequired | string | An instant, ISO 8601 in UTC. |
Errors this endpoint may answer
422 SKU_TAKEN: The SKU is already used.
Update an item
PATCH/api/v1/items/{id}
Changes only the fields you send. An item with stock movements keeps its type, stock tracking and inventory account.
Path
| Field | Type | Description |
|---|---|---|
| idrequired | string | The record's id. |
Body
| Field | Type | Description |
|---|---|---|
| customFields | object (by key) | Custom field values by key (GET /custom-fields). Only the keys you send change; an empty value clears one; unknown keys are refused.may be null |
| sku | string | Your item code (made upper case).at least 1 characters · at most 40 characters |
| barcode | string | Main barcode.at most 40 characters · may be null |
| name | string | Display name.at least 1 characters · at most 200 characters |
| nameAr | string | at most 200 characters · may be null |
| description | string | What is sold or bought, as printed.at most 1000 characters · may be null |
| type | enum | GOODS or SERVICE.one of GOODS, SERVICE |
| trackInventory | boolean | Keep a quantity and value in stock (goods only).default true |
| trackBatches | boolean | |
| trackExpiry | boolean | |
| expiryWarningDays | number | string | may be null |
| category | string | Category name (created if new).at most 80 characters · may be null |
| unitCode | string | UN/ECE unit code, e.g. H87 piece, KGM kilogram.at most 8 characters |
| salesPrice | string | Price before tax on sales documents.at most 24 characters · may be null |
| purchasePrice | string | Usual cost on purchase documents.at most 24 characters · may be null |
| revenueAccountId | string | at most 64 characters · may be null |
| purchaseAccountId | string | at most 64 characters · may be null |
| inventoryAccountId | string | at most 64 characters · may be null |
| cogsAccountId | string | at most 64 characters · may be null |
| salesTaxCodeId | string | at most 64 characters · may be null |
| purchaseTaxCodeId | string | at most 64 characters · may be null |
| classificationCode | string | HS, HSN/SAC or the tax authority's item code, where e-invoicing needs one.at most 40 characters · may be null |
| reorderLevel | string | at most 24 characters · may be null |
| reorderQuantity | string | at most 24 characters · may be null |
| isActive | boolean | default true |
| retailPrice | string | Tax-inclusive price at the till.at most 24 characters · may be null |
| posVisible | boolean | default true |
| isWeighable | boolean | default false |
| pluCode | string | at most 6 characters · may be null |
| netQuantity | string | at most 24 characters · may be null |
| netUnit | enum | enum | |
| extraBarcodes | array of object | at most 20 items |
| extraBarcodes[].coderequired | string | Left out = the next free number.at least 1 characters · at most 40 characters |
| extraBarcodes[].packQuantityrequired | string | pattern ^\d{1,9}(\.\d{1,4})?$ |
Example
curl -X PATCH "https://your-workspace.omnibooks.online/api/v1/items/<id>" \
-H "Authorization: Bearer $OMNIBOOKS_KEY" \
-H "Content-Type: application/json" \
-d '{
"salesPrice": "19.500"
}'{
"id": "cmabc123def456",
"sku": "TILE-60",
"name": "Gulf Star Trading LLC",
"nameAr": null,
"description": "Ceramic floor tile 60×60",
"type": "GOODS",
"trackInventory": false,
"unitCode": "H87",
"barcode": null,
"category": null,
"salesPrice": "105.000",
"retailPrice": "105.000",
"purchasePrice": "105.000",
"salesTaxCodeId": "cmabc123def456",
"purchaseTaxCodeId": "cmabc123def456",
"revenueAccountId": "cmabc123def456",
"purchaseAccountId": "cmabc123def456",
"onHand": "105.000",
"averageCost": "105.000",
"isActive": true,
"customFields": {
"delivery_slot": "Morning"
},
"createdAt": "2026-11-30T08:15:00.000Z",
"updatedAt": "2026-11-30T08:15:00.000Z"
}Answer fields
| Field | Type | Description |
|---|---|---|
| idrequired | string | An OmniBooks id. |
| skurequired | string | Your item code (made upper case). |
| namerequired | string | Display name. |
| nameArrequired | string | may be null |
| descriptionrequired | string | What is sold or bought, as printed.may be null |
| typerequired | enum | GOODS or SERVICE.one of GOODS, SERVICE |
| trackInventoryrequired | boolean | Keep a quantity and value in stock (goods only). |
| unitCoderequired | string | UN/ECE unit code, e.g. H87 (piece). |
| barcoderequired | string | Main barcode.may be null |
| categoryrequired | string | Category name (created if new).may be null |
| salesPricerequired | string | A decimal amount as a string, e.g. "105.000".may be null |
| retailPricerequired | string | Tax-inclusive shelf price used at the till.may be null |
| purchasePricerequired | string | A decimal amount as a string, e.g. "105.000".may be null |
| salesTaxCodeIdrequired | string | An OmniBooks id.may be null |
| purchaseTaxCodeIdrequired | string | An OmniBooks id.may be null |
| revenueAccountIdrequired | string | An OmniBooks id.may be null |
| purchaseAccountIdrequired | string | An OmniBooks id.may be null |
| onHandrequired | string | Quantity on hand in every warehouse (0 for items not tracked). |
| averageCostrequired | string | A decimal amount as a string, e.g. "105.000". |
| isActiverequired | boolean | |
| customFieldsrequired | object (by key) | The company's custom fields, by key (GET /custom-fields lists them). Empty fields are left out. |
| createdAtrequired | string | An instant, ISO 8601 in UTC. |
| updatedAtrequired | string | An instant, ISO 8601 in UTC. |
Errors this endpoint may answer
422 TRACKING_LOCKED: Changing type, tracking or the inventory account after stock moved.