Quantities
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 quantities
GET/admin/api/v1/inventories/quantitiesRetrieve a paginated list of quantities 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: product, location, storageCategory, lot, package, partner, user, company, creator | product,location |
filter[id] | string | No | Comma-separated list of IDs to filter by | architecto |
filter[product_id] | string | No | Filter by product IDs | architecto |
filter[location_id] | string | No | Filter by location IDs | architecto |
filter[lot_id] | string | No | Filter by lot IDs | architecto |
filter[package_id] | string | No | Filter by package IDs | architecto |
filter[inventory_quantity_set] | string | No | Filter by inventory quantity set (0 or 1) | 1 |
sort | string | No | Sort field | -updated_at |
curl -X GET "https://your-domain.com/admin/api/v1/inventories/quantities?include=product%2Clocation&filter%5Bid%5D=architecto&filter%5Bproduct_id%5D=architecto&filter%5Blocation_id%5D=architecto&filter%5Blot_id%5D=architecto&filter%5Bpackage_id%5D=architecto&filter%5Binventory_quantity_set%5D=1&sort=-updated_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/quantities?include=product%2Clocation&filter%5Bid%5D=architecto&filter%5Bproduct_id%5D=architecto&filter%5Blocation_id%5D=architecto&filter%5Blot_id%5D=architecto&filter%5Bpackage_id%5D=architecto&filter%5Binventory_quantity_set%5D=1&sort=-updated_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/quantities?include=product%2Clocation&filter%5Bid%5D=architecto&filter%5Bproduct_id%5D=architecto&filter%5Blocation_id%5D=architecto&filter%5Blot_id%5D=architecto&filter%5Bpackage_id%5D=architecto&filter%5Binventory_quantity_set%5D=1&sort=-updated_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/quantities?include=product%2Clocation&filter%5Bid%5D=architecto&filter%5Bproduct_id%5D=architecto&filter%5Blocation_id%5D=architecto&filter%5Blot_id%5D=architecto&filter%5Bpackage_id%5D=architecto&filter%5Binventory_quantity_set%5D=1&sort=-updated_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": null,
"quantity": 100,
"reserved_quantity": 0,
"counted_quantity": null,
"difference_quantity": 0,
"inventory_diff_quantity": 0,
"available_quantity": 100,
"inventory_quantity_set": false,
"scheduled_at": null,
"incoming_at": "2026-10-12T10:50:01.000000Z",
"created_at": null,
"updated_at": null
},
{
"id": null,
"quantity": 100,
"reserved_quantity": 0,
"counted_quantity": null,
"difference_quantity": 0,
"inventory_diff_quantity": 0,
"available_quantity": 100,
"inventory_quantity_set": false,
"scheduled_at": null,
"incoming_at": "2026-10-12T10:50:01.000000Z",
"created_at": null,
"updated_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 quantity
POST/admin/api/v1/inventories/quantitiesCreate a new product quantity count
🔒 Requires a valid Bearer token.
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
location_id | integer | Yes | Inventory location ID. Must match an existing stored value. |
product_id | integer | Yes | Product ID. Configurable products are not allowed; pass a variant product ID instead. Must match an existing stored value. |
storage_category_id | integer | No | Storage category ID. Must match an existing stored value. |
lot_id | integer | No | Lot ID. Required for lot/serial tracked products and must belong to the selected product. Must match an existing stored value. |
package_id | integer | No | Package ID. Must belong to the selected location. Must match an existing stored value. |
partner_id | integer | No | Owner partner ID. Must match an existing stored value. |
user_id | integer | No | Responsible user ID. Must match an existing stored value. |
company_id | integer | No | Company ID. Must match an existing stored value. |
counted_quantity | number | Yes | Counted quantity entered during inventory adjustment. For serial-tracked products, this must be 0 or 1. Must be at least 0. Must not be greater than 99999999999. |
scheduled_at | string | No | Scheduled inventory date. Must be a valid date. |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/quantities" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"location_id": 1,
"product_id": 1,
"storage_category_id": 1,
"lot_id": 1,
"package_id": 1,
"partner_id": 1,
"user_id": 1,
"company_id": 1,
"counted_quantity": 25,
"scheduled_at": "2026-02-25"
}'const response = await fetch("https://your-domain.com/admin/api/v1/inventories/quantities", {
method: "POST",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({
"location_id": 1,
"product_id": 1,
"storage_category_id": 1,
"lot_id": 1,
"package_id": 1,
"partner_id": 1,
"user_id": 1,
"company_id": 1,
"counted_quantity": 25,
"scheduled_at": "2026-02-25"
}),
});
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/quantities', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
'json' => [
'location_id' => 1,
'product_id' => 1,
'storage_category_id' => 1,
'lot_id' => 1,
'package_id' => 1,
'partner_id' => 1,
'user_id' => 1,
'company_id' => 1,
'counted_quantity' => 25,
'scheduled_at' => '2026-02-25',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/quantities"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
payload = {
"location_id": 1,
"product_id": 1,
"storage_category_id": 1,
"lot_id": 1,
"package_id": 1,
"partner_id": 1,
"user_id": 1,
"company_id": 1,
"counted_quantity": 25,
"scheduled_at": "2026-02-25",
}
response = requests.post(url, headers=headers, json=payload)
data = response.json()
print(data)Example response 201
{
"data": {
"id": null,
"quantity": 100,
"reserved_quantity": 0,
"counted_quantity": null,
"difference_quantity": 0,
"inventory_diff_quantity": 0,
"available_quantity": 100,
"inventory_quantity_set": false,
"scheduled_at": null,
"incoming_at": "2026-10-12T10:50:01.000000Z",
"created_at": null,
"updated_at": null
},
"message": "Quantity created successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Show quantity
GET/admin/api/v1/inventories/quantities/{id}Retrieve a specific quantity by ID
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The quantity ID |
Query parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
include | string | No | Comma-separated list of relationships to include. Available options: product, location, storageCategory, lot, package, partner, user, company, creator | product,location |
curl -X GET "https://your-domain.com/admin/api/v1/inventories/quantities/{id}?include=product%2Clocation" \
-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/quantities/{id}?include=product%2Clocation", {
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/quantities/{id}?include=product%2Clocation', [
'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/quantities/{id}?include=product%2Clocation"
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": null,
"quantity": 100,
"reserved_quantity": 0,
"counted_quantity": null,
"difference_quantity": 0,
"inventory_diff_quantity": 0,
"available_quantity": 100,
"inventory_quantity_set": false,
"scheduled_at": null,
"incoming_at": "2026-10-12T10:50:01.000000Z",
"created_at": null,
"updated_at": null
}
}Error response — 401
{
"message": "Unauthenticated."
}Update quantity
PUT/admin/api/v1/inventories/quantities/{id}Update a quantity count entry
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The quantity ID |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
counted_quantity | number | Yes | Counted quantity entered during inventory adjustment. Must be at least 0. Must not be greater than 99999999999. |
curl -X PUT "https://your-domain.com/admin/api/v1/inventories/quantities/{id}" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"counted_quantity": 25
}'const response = await fetch("https://your-domain.com/admin/api/v1/inventories/quantities/{id}", {
method: "PUT",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({
"counted_quantity": 25
}),
});
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/quantities/{id}', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
'json' => [
'counted_quantity' => 25,
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/quantities/{id}"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
payload = {
"counted_quantity": 25,
}
response = requests.put(url, headers=headers, json=payload)
data = response.json()
print(data)Example response 200
{
"data": {
"id": null,
"quantity": 100,
"reserved_quantity": 0,
"counted_quantity": null,
"difference_quantity": 0,
"inventory_diff_quantity": 0,
"available_quantity": 100,
"inventory_quantity_set": false,
"scheduled_at": null,
"incoming_at": "2026-10-12T10:50:01.000000Z",
"created_at": null,
"updated_at": null
},
"message": "Quantity updated successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Delete quantity
DELETE/admin/api/v1/inventories/quantities/{id}Delete a quantity
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The quantity ID |
curl -X DELETE "https://your-domain.com/admin/api/v1/inventories/quantities/{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/quantities/{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/quantities/{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/quantities/{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": "Quantity deleted successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Apply quantity
POST/admin/api/v1/inventories/quantities/{id}/applyApply counted quantity and generate adjustment move
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The quantity ID |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/quantities/{id}/apply" \
-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/quantities/{id}/apply", {
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/quantities/{id}/apply', [
'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/quantities/{id}/apply"
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": null,
"quantity": 100,
"reserved_quantity": 0,
"counted_quantity": null,
"difference_quantity": 0,
"inventory_diff_quantity": 0,
"available_quantity": 100,
"inventory_quantity_set": false,
"scheduled_at": null,
"incoming_at": "2026-10-12T10:50:01.000000Z",
"created_at": null,
"updated_at": null
},
"message": "Quantity applied successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Clear quantity
POST/admin/api/v1/inventories/quantities/{id}/clearClear pending counted quantity without applying adjustments
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The quantity ID |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/quantities/{id}/clear" \
-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/quantities/{id}/clear", {
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/quantities/{id}/clear', [
'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/quantities/{id}/clear"
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": null,
"quantity": 100,
"reserved_quantity": 0,
"counted_quantity": null,
"difference_quantity": 0,
"inventory_diff_quantity": 0,
"available_quantity": 100,
"inventory_quantity_set": false,
"scheduled_at": null,
"incoming_at": "2026-10-12T10:50:01.000000Z",
"created_at": null,
"updated_at": null
},
"message": "Quantity cleared successfully."
}Error response — 401
{
"message": "Unauthenticated."
}