Products
Part of the Inventory API. Base URL https://your-domain.com/admin/api/v1 — replace the host with your own installation and the token placeholder with a real Bearer token (see Authentication).
List products
GET/admin/api/v1/inventories/productsRetrieve a paginated list of products with filtering and sorting
🔒 Requires a valid Bearer token.
Query parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
include | string | No | Comma-separated list of relationships to include. Available options: parent, variants, uom, uomPO, category, attributes, attribute_values, tags, company, creator, propertyAccountIncome, propertyAccountExpense, routes, responsible | category,tags,routes |
filter[id] | string | No | Comma-separated list of IDs to filter by | architecto |
filter[name] | string | No | Filter by product name (partial match) | Widget |
filter[type] | string | No | Filter by product type values | goods |
filter[enable_sales] | boolean | No | Filter by sales enabled | true |
filter[enable_purchase] | boolean | No | Filter by purchase enabled | true |
filter[category_id] | string | No | Filter by category IDs | architecto |
filter[tracking] | string | No | Filter by tracking values | qty |
filter[is_storable] | boolean | No | Filter by storable products | true |
filter[responsible_id] | string | No | Filter by responsible user IDs | architecto |
filter[trashed] | string | No | Filter by trashed status ("with" or "only") | with |
sort | string | No | Sort field | -created_at |
curl -X GET "https://your-domain.com/admin/api/v1/inventories/products?include=category%2Ctags%2Croutes&filter%5Bid%5D=architecto&filter%5Bname%5D=Widget&filter%5Btype%5D=goods&filter%5Benable_sales%5D=true&filter%5Benable_purchase%5D=true&filter%5Bcategory_id%5D=architecto&filter%5Btracking%5D=qty&filter%5Bis_storable%5D=true&filter%5Bresponsible_id%5D=architecto&filter%5Btrashed%5D=with&sort=-created_at" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/products?include=category%2Ctags%2Croutes&filter%5Bid%5D=architecto&filter%5Bname%5D=Widget&filter%5Btype%5D=goods&filter%5Benable_sales%5D=true&filter%5Benable_purchase%5D=true&filter%5Bcategory_id%5D=architecto&filter%5Btracking%5D=qty&filter%5Bis_storable%5D=true&filter%5Bresponsible_id%5D=architecto&filter%5Btrashed%5D=with&sort=-created_at", {
method: "GET",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-domain.com/admin/api/v1/inventories/products?include=category%2Ctags%2Croutes&filter%5Bid%5D=architecto&filter%5Bname%5D=Widget&filter%5Btype%5D=goods&filter%5Benable_sales%5D=true&filter%5Benable_purchase%5D=true&filter%5Bcategory_id%5D=architecto&filter%5Btracking%5D=qty&filter%5Bis_storable%5D=true&filter%5Bresponsible_id%5D=architecto&filter%5Btrashed%5D=with&sort=-created_at', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/products?include=category%2Ctags%2Croutes&filter%5Bid%5D=architecto&filter%5Bname%5D=Widget&filter%5Btype%5D=goods&filter%5Benable_sales%5D=true&filter%5Benable_purchase%5D=true&filter%5Bcategory_id%5D=architecto&filter%5Btracking%5D=qty&filter%5Bis_storable%5D=true&filter%5Bresponsible_id%5D=architecto&filter%5Btrashed%5D=with&sort=-created_at"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"data": [
{
"id": 1,
"type": "goods",
"name": "T-Shirt",
"service_tracking": "none",
"reference": null,
"barcode": null,
"price": 250,
"cost": 220,
"volume": 2501,
"weight": 1,
"description": "<p>Men's wear tshirt in multiple variant colors like that tell me.</p>",
"description_purchase": null,
"description_sale": null,
"enable_sales": false,
"enable_purchase": false,
"is_favorite": false,
"is_configurable": false,
"images": [
"01M4G1WMQZ0T9EBB2F6CERDFTV.jpg"
],
"sort": 1,
"parent_id": null,
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"creator_id": 1,
"company_id": 1,
"created_at": "2026-10-09T10:03:40.000000Z",
"updated_at": "2026-10-09T10:41:57.000000Z",
"deleted_at": null,
"is_storable": false,
"tracking": "qty",
"use_expiration_date": false,
"sale_delay": null,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": null
},
{
"id": 1,
"type": "goods",
"name": "T-Shirt",
"service_tracking": "none",
"reference": null,
"barcode": null,
"price": 250,
"cost": 220,
"volume": 2501,
"weight": 1,
"description": "<p>Men's wear tshirt in multiple variant colors like that tell me.</p>",
"description_purchase": null,
"description_sale": null,
"enable_sales": false,
"enable_purchase": false,
"is_favorite": false,
"is_configurable": false,
"images": [
"01M4G1WMQZ0T9EBB2F6CERDFTV.jpg"
],
"sort": 1,
"parent_id": null,
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"creator_id": 1,
"company_id": 1,
"created_at": "2026-10-09T10:03:40.000000Z",
"updated_at": "2026-10-09T10:41:57.000000Z",
"deleted_at": null,
"is_storable": false,
"tracking": "qty",
"use_expiration_date": false,
"sale_delay": null,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}Error response — 401
{
"message": "Unauthenticated."
}Create product
POST/admin/api/v1/inventories/productsCreate a new inventory product
🔒 Requires a valid Bearer token.
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Product type: goods, service, consu (consumable). |
name | string | Yes | Product name (max 255 characters). Must not be greater than 255 characters. |
service_tracking | string | No | Must not be greater than 255 characters. |
reference | string | No | Internal reference code (max 255 characters). Must not be greater than 255 characters. |
barcode | string | No | Product barcode (max 255 characters). Must not be greater than 255 characters. |
price | number | Yes | Sales price (minimum 0). Must be at least 0. |
cost | number | No | Product cost (minimum 0). Must be at least 0. |
volume | number | No | Product volume (min 0, max 99999999999). Must be at least 0. Must not be greater than 99999999999. |
weight | number | No | Product weight (min 0, max 99999999999). Must be at least 0. Must not be greater than 99999999999. |
description | string | No | Product description. |
description_purchase | string | No | Purchase description. |
description_sale | string | No | Sales description. |
enable_sales | boolean | No | Whether this product can be sold. |
enable_purchase | boolean | No | Whether this product can be purchased. |
is_favorite | boolean | No | Mark this product as favorite. |
images | string[] | No | |
uom_id | integer | No | Unit of measure ID. |
uom_po_id | integer | No | Purchase unit of measure ID. |
category_id | integer | Yes | Product category ID. Must match an existing stored value. |
company_id | integer | No | Company ID this product belongs to. |
tags | integer[] | No | Must match an existing stored value. |
is_storable | boolean | No | Whether inventory is tracked for this product. |
tracking | string | No | Inventory tracking method. |
use_expiration_date | boolean | No | Enable expiration dates for this product. |
sale_delay | number | No | Delivery lead time in days. Must be at least 0. Must not be greater than 99999999999. |
expiration_time | number | No | Expiration time in days. Must be at least 0. Must not be greater than 99999999999. |
use_time | number | No | Best before time in days. Must be at least 0. Must not be greater than 99999999999. |
removal_time | number | No | Removal time in days. Must be at least 0. Must not be greater than 99999999999. |
alert_time | number | No | Alert time in days. Must be at least 0. Must not be greater than 99999999999. |
responsible_id | integer | No | Responsible user ID. Must match an existing stored value. |
routes | integer[] | No | Must match an existing stored value. |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/products" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"type": "goods",
"name": "Laptop Computer",
"service_tracking": "b",
"reference": "PROD-001",
"barcode": "1234567890",
"price": 999.99,
"cost": 750,
"volume": 0.5,
"weight": 2.5,
"description": "High-performance laptop with latest specifications.",
"description_purchase": "Enterprise laptop for business use.",
"description_sale": "Perfect for professionals and power users.",
"enable_sales": true,
"enable_purchase": true,
"is_favorite": false,
"images": [
"architecto"
],
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"company_id": 1,
"tags": [
16
],
"is_storable": true,
"tracking": "qty",
"use_expiration_date": false,
"sale_delay": 2,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": 1,
"routes": [
16
]
}'const response = await fetch("https://your-domain.com/admin/api/v1/inventories/products", {
method: "POST",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({
"type": "goods",
"name": "Laptop Computer",
"service_tracking": "b",
"reference": "PROD-001",
"barcode": "1234567890",
"price": 999.99,
"cost": 750,
"volume": 0.5,
"weight": 2.5,
"description": "High-performance laptop with latest specifications.",
"description_purchase": "Enterprise laptop for business use.",
"description_sale": "Perfect for professionals and power users.",
"enable_sales": true,
"enable_purchase": true,
"is_favorite": false,
"images": [
"architecto"
],
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"company_id": 1,
"tags": [
16
],
"is_storable": true,
"tracking": "qty",
"use_expiration_date": false,
"sale_delay": 2,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": 1,
"routes": [
16
]
}),
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-domain.com/admin/api/v1/inventories/products', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
'json' => [
'type' => 'goods',
'name' => 'Laptop Computer',
'service_tracking' => 'b',
'reference' => 'PROD-001',
'barcode' => '1234567890',
'price' => 999.99,
'cost' => 750,
'volume' => 0.5,
'weight' => 2.5,
'description' => 'High-performance laptop with latest specifications.',
'description_purchase' => 'Enterprise laptop for business use.',
'description_sale' => 'Perfect for professionals and power users.',
'enable_sales' => true,
'enable_purchase' => true,
'is_favorite' => false,
'images' => [
'architecto',
],
'uom_id' => 1,
'uom_po_id' => 1,
'category_id' => 1,
'company_id' => 1,
'tags' => [
16,
],
'is_storable' => true,
'tracking' => 'qty',
'use_expiration_date' => false,
'sale_delay' => 2,
'expiration_time' => 0,
'use_time' => 0,
'removal_time' => 0,
'alert_time' => 0,
'responsible_id' => 1,
'routes' => [
16,
],
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/products"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
payload = {
"type": "goods",
"name": "Laptop Computer",
"service_tracking": "b",
"reference": "PROD-001",
"barcode": "1234567890",
"price": 999.99,
"cost": 750,
"volume": 0.5,
"weight": 2.5,
"description": "High-performance laptop with latest specifications.",
"description_purchase": "Enterprise laptop for business use.",
"description_sale": "Perfect for professionals and power users.",
"enable_sales": True,
"enable_purchase": True,
"is_favorite": False,
"images": [
"architecto",
],
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"company_id": 1,
"tags": [
16,
],
"is_storable": True,
"tracking": "qty",
"use_expiration_date": False,
"sale_delay": 2,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": 1,
"routes": [
16,
],
}
response = requests.post(url, headers=headers, json=payload)
data = response.json()
print(data)Example response 201
{
"data": {
"id": 1,
"type": "goods",
"name": "T-Shirt",
"service_tracking": "none",
"reference": null,
"barcode": null,
"price": 250,
"cost": 220,
"volume": 2501,
"weight": 1,
"description": "<p>Men's wear tshirt in multiple variant colors like that tell me.</p>",
"description_purchase": null,
"description_sale": null,
"enable_sales": false,
"enable_purchase": false,
"is_favorite": false,
"is_configurable": false,
"images": [
"01M4G1WMQZ0T9EBB2F6CERDFTV.jpg"
],
"sort": 1,
"parent_id": null,
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"creator_id": 1,
"company_id": 1,
"created_at": "2026-10-09T10:03:40.000000Z",
"updated_at": "2026-10-09T10:41:57.000000Z",
"deleted_at": null,
"is_storable": false,
"tracking": "qty",
"use_expiration_date": false,
"sale_delay": null,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": null
},
"message": "Product created successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Show product
GET/admin/api/v1/inventories/products/{id}Retrieve a specific inventory product by ID
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The product ID |
Query parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
include | string | No | Comma-separated list of relationships to include. Available options: parent, variants, uom, uomPO, category, attributes, attribute_values, tags, company, creator, propertyAccountIncome, propertyAccountExpense, routes, responsible | category,tags,routes |
curl -X GET "https://your-domain.com/admin/api/v1/inventories/products/{id}?include=category%2Ctags%2Croutes" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/products/{id}?include=category%2Ctags%2Croutes", {
method: "GET",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-domain.com/admin/api/v1/inventories/products/{id}?include=category%2Ctags%2Croutes', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/products/{id}?include=category%2Ctags%2Croutes"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"data": {
"id": 1,
"type": "goods",
"name": "T-Shirt",
"service_tracking": "none",
"reference": null,
"barcode": null,
"price": 250,
"cost": 220,
"volume": 2501,
"weight": 1,
"description": "<p>Men's wear tshirt in multiple variant colors like that tell me.</p>",
"description_purchase": null,
"description_sale": null,
"enable_sales": false,
"enable_purchase": false,
"is_favorite": false,
"is_configurable": false,
"images": [
"01M4G1WMQZ0T9EBB2F6CERDFTV.jpg"
],
"sort": 1,
"parent_id": null,
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"creator_id": 1,
"company_id": 1,
"created_at": "2026-10-09T10:03:40.000000Z",
"updated_at": "2026-10-09T10:41:57.000000Z",
"deleted_at": null,
"is_storable": false,
"tracking": "qty",
"use_expiration_date": false,
"sale_delay": null,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": null
}
}Error response — 401
{
"message": "Unauthenticated."
}Update product
PUT/admin/api/v1/inventories/products/{id}Update an existing inventory product
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The product ID |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | No | Product type: goods, service, consu (consumable). |
name | string | No | Product name (max 255 characters). Must not be greater than 255 characters. |
service_tracking | string | No | Must not be greater than 255 characters. |
reference | string | No | Internal reference code (max 255 characters). Must not be greater than 255 characters. |
barcode | string | No | Product barcode (max 255 characters). Must not be greater than 255 characters. |
price | number | No | Sales price (minimum 0). Must be at least 0. |
cost | number | No | Product cost (minimum 0). Must be at least 0. |
volume | number | No | Product volume (min 0, max 99999999999). Must be at least 0. Must not be greater than 99999999999. |
weight | number | No | Product weight (min 0, max 99999999999). Must be at least 0. Must not be greater than 99999999999. |
description | string | No | Product description. |
description_purchase | string | No | Purchase description. |
description_sale | string | No | Sales description. |
enable_sales | boolean | No | Whether this product can be sold. |
enable_purchase | boolean | No | Whether this product can be purchased. |
is_favorite | boolean | No | Mark this product as favorite. |
images | string[] | No | |
uom_id | integer | No | Unit of measure ID. |
uom_po_id | integer | No | Purchase unit of measure ID. |
category_id | integer | No | Product category ID. Must match an existing stored value. |
company_id | integer | No | Company ID this product belongs to. |
tags | integer[] | No | Must match an existing stored value. |
is_storable | boolean | No | Whether inventory is tracked for this product. |
tracking | string | No | Inventory tracking method. |
use_expiration_date | boolean | No | Enable expiration dates for this product. |
sale_delay | number | No | Delivery lead time in days. Must be at least 0. Must not be greater than 99999999999. |
expiration_time | number | No | Expiration time in days. Must be at least 0. Must not be greater than 99999999999. |
use_time | number | No | Best before time in days. Must be at least 0. Must not be greater than 99999999999. |
removal_time | number | No | Removal time in days. Must be at least 0. Must not be greater than 99999999999. |
alert_time | number | No | Alert time in days. Must be at least 0. Must not be greater than 99999999999. |
responsible_id | integer | No | Responsible user ID. Must match an existing stored value. |
routes | integer[] | No | Must match an existing stored value. |
curl -X PUT "https://your-domain.com/admin/api/v1/inventories/products/{id}" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"type": "goods",
"name": "Laptop Computer",
"service_tracking": "b",
"reference": "PROD-001",
"barcode": "1234567890",
"price": 999.99,
"cost": 750,
"volume": 0.5,
"weight": 2.5,
"description": "High-performance laptop with latest specifications.",
"description_purchase": "Enterprise laptop for business use.",
"description_sale": "Perfect for professionals and power users.",
"enable_sales": true,
"enable_purchase": true,
"is_favorite": false,
"images": [
"architecto"
],
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"company_id": 1,
"tags": [
16
],
"is_storable": true,
"tracking": "qty",
"use_expiration_date": false,
"sale_delay": 2,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": 1,
"routes": [
16
]
}'const response = await fetch("https://your-domain.com/admin/api/v1/inventories/products/{id}", {
method: "PUT",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({
"type": "goods",
"name": "Laptop Computer",
"service_tracking": "b",
"reference": "PROD-001",
"barcode": "1234567890",
"price": 999.99,
"cost": 750,
"volume": 0.5,
"weight": 2.5,
"description": "High-performance laptop with latest specifications.",
"description_purchase": "Enterprise laptop for business use.",
"description_sale": "Perfect for professionals and power users.",
"enable_sales": true,
"enable_purchase": true,
"is_favorite": false,
"images": [
"architecto"
],
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"company_id": 1,
"tags": [
16
],
"is_storable": true,
"tracking": "qty",
"use_expiration_date": false,
"sale_delay": 2,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": 1,
"routes": [
16
]
}),
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('PUT', 'https://your-domain.com/admin/api/v1/inventories/products/{id}', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
'json' => [
'type' => 'goods',
'name' => 'Laptop Computer',
'service_tracking' => 'b',
'reference' => 'PROD-001',
'barcode' => '1234567890',
'price' => 999.99,
'cost' => 750,
'volume' => 0.5,
'weight' => 2.5,
'description' => 'High-performance laptop with latest specifications.',
'description_purchase' => 'Enterprise laptop for business use.',
'description_sale' => 'Perfect for professionals and power users.',
'enable_sales' => true,
'enable_purchase' => true,
'is_favorite' => false,
'images' => [
'architecto',
],
'uom_id' => 1,
'uom_po_id' => 1,
'category_id' => 1,
'company_id' => 1,
'tags' => [
16,
],
'is_storable' => true,
'tracking' => 'qty',
'use_expiration_date' => false,
'sale_delay' => 2,
'expiration_time' => 0,
'use_time' => 0,
'removal_time' => 0,
'alert_time' => 0,
'responsible_id' => 1,
'routes' => [
16,
],
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/products/{id}"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
payload = {
"type": "goods",
"name": "Laptop Computer",
"service_tracking": "b",
"reference": "PROD-001",
"barcode": "1234567890",
"price": 999.99,
"cost": 750,
"volume": 0.5,
"weight": 2.5,
"description": "High-performance laptop with latest specifications.",
"description_purchase": "Enterprise laptop for business use.",
"description_sale": "Perfect for professionals and power users.",
"enable_sales": True,
"enable_purchase": True,
"is_favorite": False,
"images": [
"architecto",
],
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"company_id": 1,
"tags": [
16,
],
"is_storable": True,
"tracking": "qty",
"use_expiration_date": False,
"sale_delay": 2,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": 1,
"routes": [
16,
],
}
response = requests.put(url, headers=headers, json=payload)
data = response.json()
print(data)Example response 200
{
"data": {
"id": 1,
"type": "goods",
"name": "T-Shirt",
"service_tracking": "none",
"reference": null,
"barcode": null,
"price": 250,
"cost": 220,
"volume": 2501,
"weight": 1,
"description": "<p>Men's wear tshirt in multiple variant colors like that tell me.</p>",
"description_purchase": null,
"description_sale": null,
"enable_sales": false,
"enable_purchase": false,
"is_favorite": false,
"is_configurable": false,
"images": [
"01M4G1WMQZ0T9EBB2F6CERDFTV.jpg"
],
"sort": 1,
"parent_id": null,
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"creator_id": 1,
"company_id": 1,
"created_at": "2026-10-09T10:03:40.000000Z",
"updated_at": "2026-10-09T10:41:57.000000Z",
"deleted_at": null,
"is_storable": false,
"tracking": "qty",
"use_expiration_date": false,
"sale_delay": null,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": null
},
"message": "Product updated successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Delete product
DELETE/admin/api/v1/inventories/products/{id}Soft delete a product
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The product ID |
curl -X DELETE "https://your-domain.com/admin/api/v1/inventories/products/{id}" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/products/{id}", {
method: "DELETE",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('DELETE', 'https://your-domain.com/admin/api/v1/inventories/products/{id}', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/products/{id}"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.delete(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"message": "Product deleted successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Restore product
POST/admin/api/v1/inventories/products/{id}/restoreRestore a soft deleted product
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The product ID |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/products/{id}/restore" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/products/{id}/restore", {
method: "POST",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-domain.com/admin/api/v1/inventories/products/{id}/restore', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/products/{id}/restore"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.post(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"data": {
"id": 1,
"type": "goods",
"name": "T-Shirt",
"service_tracking": "none",
"reference": null,
"barcode": null,
"price": 250,
"cost": 220,
"volume": 2501,
"weight": 1,
"description": "<p>Men's wear tshirt in multiple variant colors like that tell me.</p>",
"description_purchase": null,
"description_sale": null,
"enable_sales": false,
"enable_purchase": false,
"is_favorite": false,
"is_configurable": false,
"images": [
"01M4G1WMQZ0T9EBB2F6CERDFTV.jpg"
],
"sort": 1,
"parent_id": null,
"uom_id": 1,
"uom_po_id": 1,
"category_id": 1,
"creator_id": 1,
"company_id": 1,
"created_at": "2026-10-09T10:03:40.000000Z",
"updated_at": "2026-10-09T10:41:57.000000Z",
"deleted_at": null,
"is_storable": false,
"tracking": "qty",
"use_expiration_date": false,
"sale_delay": null,
"expiration_time": 0,
"use_time": 0,
"removal_time": 0,
"alert_time": 0,
"responsible_id": null
},
"message": "Product restored successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Force delete product
DELETE/admin/api/v1/inventories/products/{id}/forcePermanently delete a product
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The product ID |
curl -X DELETE "https://your-domain.com/admin/api/v1/inventories/products/{id}/force" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/products/{id}/force", {
method: "DELETE",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('DELETE', 'https://your-domain.com/admin/api/v1/inventories/products/{id}/force', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/products/{id}/force"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.delete(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"message": "Product permanently deleted successfully."
}Error response — 401
{
"message": "Unauthenticated."
}