Products
Part of the Products 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/products/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, tags, attributes, attribute_values, company, creator | category,tags |
filter[id] | string | No | Comma-separated list of IDs to filter by | |
filter[type] | string | No | Filter by product type | |
filter[enable_sales] | boolean | No | Filter by sales enabled | true |
filter[enable_purchase] | boolean | No | Filter by purchase enabled | false |
filter[category_id] | string | No | Comma-separated list of category IDs to filter by | |
filter[trashed] | string | No | Filter by trashed status: "with" (include trashed), "only" (only trashed), or any other value for non-trashed only | with |
sort | string | Yes | Sort field | -created_at |
page | integer | Yes | Page number | 1 |
curl -X GET "https://your-domain.com/admin/api/v1/products/products?include=category%2Ctags&filter%5Benable_sales%5D=true&filter%5Benable_purchase%5D=false&filter%5Btrashed%5D=with&sort=-created_at&page=1" \
-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/products/products?include=category%2Ctags&filter%5Benable_sales%5D=true&filter%5Benable_purchase%5D=false&filter%5Btrashed%5D=with&sort=-created_at&page=1", {
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/products/products?include=category%2Ctags&filter%5Benable_sales%5D=true&filter%5Benable_purchase%5D=false&filter%5Btrashed%5D=with&sort=-created_at&page=1', [
'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/products/products?include=category%2Ctags&filter%5Benable_sales%5D=true&filter%5Benable_purchase%5D=false&filter%5Btrashed%5D=with&sort=-created_at&page=1"
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,
"category": {
"id": 1,
"name": "All",
"full_name": "All",
"parent_path": "/",
"parent_id": null,
"creator_id": 1,
"created_at": "2025-01-28T10:49:51.000000Z",
"updated_at": "2025-01-28T10:49:51.000000Z"
},
"tags": [
{
"id": 1,
"name": "Fashion Product",
"color": null,
"created_at": "2026-10-09T10:02:45.000000Z",
"updated_at": "2026-10-09T10:02:45.000000Z",
"deleted_at": 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,
"category": {
"id": 1,
"name": "All",
"full_name": "All",
"parent_path": "/",
"parent_id": null,
"creator_id": 1,
"created_at": "2025-01-28T10:49:51.000000Z",
"updated_at": "2025-01-28T10:49:51.000000Z"
},
"tags": [
{
"id": 1,
"name": "Fashion Product",
"color": null,
"created_at": "2026-10-09T10:02:45.000000Z",
"updated_at": "2026-10-09T10:02:45.000000Z",
"deleted_at": 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/products/productsCreate a new 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. |
curl -X POST "https://your-domain.com/admin/api/v1/products/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
]
}'const response = await fetch("https://your-domain.com/admin/api/v1/products/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
]
}),
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-domain.com/admin/api/v1/products/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,
],
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/products/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,
],
}
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,
"category": {
"id": 1,
"name": "All",
"full_name": "All",
"parent_path": "/",
"parent_id": null,
"creator_id": 1,
"created_at": "2025-01-28T10:49:51.000000Z",
"updated_at": "2025-01-28T10:49:51.000000Z"
},
"tags": [
{
"id": 1,
"name": "Fashion Product",
"color": null,
"created_at": "2026-10-09T10:02:45.000000Z",
"updated_at": "2026-10-09T10:02:45.000000Z",
"deleted_at": null
}
]
},
"message": "Product created successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Show product
GET/admin/api/v1/products/products/{id}Retrieve a specific product by its 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 | category,tags |
curl -X GET "https://your-domain.com/admin/api/v1/products/products/{id}?include=category%2Ctags" \
-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/products/products/{id}?include=category%2Ctags", {
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/products/products/{id}?include=category%2Ctags', [
'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/products/products/{id}?include=category%2Ctags"
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,
"category": {
"id": 1,
"name": "All",
"full_name": "All",
"parent_path": "/",
"parent_id": null,
"creator_id": 1,
"created_at": "2025-01-28T10:49:51.000000Z",
"updated_at": "2025-01-28T10:49:51.000000Z"
},
"tags": [
{
"id": 1,
"name": "Fashion Product",
"color": null,
"created_at": "2026-10-09T10:02:45.000000Z",
"updated_at": "2026-10-09T10:02:45.000000Z",
"deleted_at": null
}
]
}
}Error response — 401
{
"message": "Unauthenticated."
}Update product
PUT/admin/api/v1/products/products/{id}Update an existing 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. |
curl -X PUT "https://your-domain.com/admin/api/v1/products/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
]
}'const response = await fetch("https://your-domain.com/admin/api/v1/products/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
]
}),
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('PUT', 'https://your-domain.com/admin/api/v1/products/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,
],
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/products/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,
],
}
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,
"category": {
"id": 1,
"name": "All",
"full_name": "All",
"parent_path": "/",
"parent_id": null,
"creator_id": 1,
"created_at": "2025-01-28T10:49:51.000000Z",
"updated_at": "2025-01-28T10:49:51.000000Z"
},
"tags": [
{
"id": 1,
"name": "Fashion Product",
"color": null,
"created_at": "2026-10-09T10:02:45.000000Z",
"updated_at": "2026-10-09T10:02:45.000000Z",
"deleted_at": null
}
]
},
"message": "Product updated successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Delete product
DELETE/admin/api/v1/products/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/products/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/products/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/products/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/products/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/products/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/products/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/products/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/products/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/products/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,
"category": {
"id": 1,
"name": "All",
"full_name": "All",
"parent_path": "/",
"parent_id": null,
"creator_id": 1,
"created_at": "2025-01-28T10:49:51.000000Z",
"updated_at": "2025-01-28T10:49:51.000000Z"
},
"tags": [
{
"id": 1,
"name": "Fashion Product",
"color": null,
"created_at": "2026-10-09T10:02:45.000000Z",
"updated_at": "2026-10-09T10:02:45.000000Z",
"deleted_at": null
}
]
},
"message": "Product restored successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Force delete product
DELETE/admin/api/v1/products/products/{id}/forcePermanently delete a product (cannot be restored)
🔒 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/products/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/products/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/products/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/products/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."
}Error response — 401
{
"message": "Unauthenticated."
}