Units of Measure
Part of the Support 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 UOMs
GET/admin/api/v1/support/uom-categories/{uom_category_id}/uomsRetrieve a paginated list of UOMs for a specific category with filtering and sorting
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uom_category_id | integer | Yes | The UOM category ID |
Query parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
include | string | No | Comma-separated list of relationships to include. Available options: category, creator | category |
filter[id] | string | No | Comma-separated list of IDs to filter by | |
filter[type] | string | No | Filter by UOM type (reference, bigger, smaller) | |
filter[name] | string | No | Filter by name (partial match) | |
filter[trashed] | string | No | Filter by trashed status. Available options: with, without, only | |
sort | string | Yes | Sort field | name |
page | integer | Yes | Page number | 1 |
curl -X GET "https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms?include=category&sort=name&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/support/uom-categories/{uom_category_id}/uoms?include=category&sort=name&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/support/uom-categories/{uom_category_id}/uoms?include=category&sort=name&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/support/uom-categories/{uom_category_id}/uoms?include=category&sort=name&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": "reference",
"name": "Units",
"factor": 1,
"rounding": "0.0100",
"category_id": 1,
"creator_id": 1,
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z",
"deleted_at": null,
"category": {
"id": 1,
"name": "Unit",
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z"
}
},
{
"id": 1,
"type": "reference",
"name": "Units",
"factor": 1,
"rounding": "0.0100",
"category_id": 1,
"creator_id": 1,
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z",
"deleted_at": null,
"category": {
"id": 1,
"name": "Unit",
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z"
}
}
],
"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 UOM
POST/admin/api/v1/support/uom-categories/{uom_category_id}/uomsCreate a new UOM for a specific category
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uom_category_id | integer | Yes | The UOM category ID |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | UOM type (reference, bigger, smaller). |
name | string | Yes | UOM name. Must not be greater than 255 characters. |
factor | number | Yes | Conversion factor. Must be at least 0. |
rounding | number | Yes | Rounding precision. Must be at least 0. |
category_id | integer | Yes | UOM category ID. Must match an existing stored value. |
curl -X POST "https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"type": "reference",
"name": "Kilogram",
"factor": 1,
"rounding": 0.01,
"category_id": 1
}'const response = await fetch("https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms", {
method: "POST",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({
"type": "reference",
"name": "Kilogram",
"factor": 1,
"rounding": 0.01,
"category_id": 1
}),
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
'json' => [
'type' => 'reference',
'name' => 'Kilogram',
'factor' => 1,
'rounding' => 0.01,
'category_id' => 1,
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
payload = {
"type": "reference",
"name": "Kilogram",
"factor": 1,
"rounding": 0.01,
"category_id": 1,
}
response = requests.post(url, headers=headers, json=payload)
data = response.json()
print(data)Example response 201
{
"data": {
"id": 1,
"type": "reference",
"name": "Units",
"factor": 1,
"rounding": "0.0100",
"category_id": 1,
"creator_id": 1,
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z",
"deleted_at": null,
"category": {
"id": 1,
"name": "Unit",
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z"
}
},
"message": "UOM created successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Show UOM
GET/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{id}Retrieve a specific UOM by its ID
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uom_category_id | integer | Yes | The UOM category ID |
id | integer | Yes | The UOM ID |
Query parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
include | string | No | Comma-separated list of relationships to include. Available options: category, creator | category |
curl -X GET "https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{id}?include=category" \
-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/support/uom-categories/{uom_category_id}/uoms/{id}?include=category", {
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/support/uom-categories/{uom_category_id}/uoms/{id}?include=category', [
'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/support/uom-categories/{uom_category_id}/uoms/{id}?include=category"
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": "reference",
"name": "Units",
"factor": 1,
"rounding": "0.0100",
"category_id": 1,
"creator_id": 1,
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z",
"deleted_at": null,
"category": {
"id": 1,
"name": "Unit",
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z"
}
}
}Error response — 401
{
"message": "Unauthenticated."
}Update UOM
PUT/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{id}Update an existing UOM
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uom_category_id | integer | Yes | The UOM category ID |
id | integer | Yes | The UOM ID |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | No | UOM type (reference, bigger, smaller). |
name | string | No | UOM name. Must not be greater than 255 characters. |
factor | number | No | Conversion factor. Must be at least 0. |
rounding | number | No | Rounding precision. Must be at least 0. |
category_id | integer | No | UOM category ID. Must match an existing stored value. |
curl -X PUT "https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{id}" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"type": "reference",
"name": "Kilogram",
"factor": 1,
"rounding": 0.01,
"category_id": 1
}'const response = await fetch("https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{id}", {
method: "PUT",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({
"type": "reference",
"name": "Kilogram",
"factor": 1,
"rounding": 0.01,
"category_id": 1
}),
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('PUT', 'https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{id}', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
'json' => [
'type' => 'reference',
'name' => 'Kilogram',
'factor' => 1,
'rounding' => 0.01,
'category_id' => 1,
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{id}"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
payload = {
"type": "reference",
"name": "Kilogram",
"factor": 1,
"rounding": 0.01,
"category_id": 1,
}
response = requests.put(url, headers=headers, json=payload)
data = response.json()
print(data)Example response 200
{
"data": {
"id": 1,
"type": "reference",
"name": "Units",
"factor": 1,
"rounding": "0.0100",
"category_id": 1,
"creator_id": 1,
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z",
"deleted_at": null,
"category": {
"id": 1,
"name": "Unit",
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z"
}
},
"message": "UOM updated successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Delete UOM
DELETE/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{id}Soft delete a UOM
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uom_category_id | integer | Yes | The UOM category ID |
id | integer | Yes | The UOM ID |
curl -X DELETE "https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{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/support/uom-categories/{uom_category_id}/uoms/{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/support/uom-categories/{uom_category_id}/uoms/{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/support/uom-categories/{uom_category_id}/uoms/{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": "UOM deleted successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Restore UOM
POST/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{id}/restoreRestore a soft-deleted UOM
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uom_category_id | integer | Yes | The UOM category ID |
id | integer | Yes | The UOM ID |
curl -X POST "https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{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/support/uom-categories/{uom_category_id}/uoms/{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/support/uom-categories/{uom_category_id}/uoms/{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/support/uom-categories/{uom_category_id}/uoms/{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": "reference",
"name": "Units",
"factor": 1,
"rounding": "0.0100",
"category_id": 1,
"creator_id": 1,
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z",
"deleted_at": null,
"category": {
"id": 1,
"name": "Unit",
"created_at": "2026-10-09T07:12:47.000000Z",
"updated_at": "2026-10-09T07:12:47.000000Z"
}
},
"message": "UOM restored successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Force delete UOM
DELETE/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{id}/forcePermanently delete a UOM
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uom_category_id | integer | Yes | The UOM category ID |
id | integer | Yes | The UOM ID |
curl -X DELETE "https://your-domain.com/admin/api/v1/support/uom-categories/{uom_category_id}/uoms/{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/support/uom-categories/{uom_category_id}/uoms/{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/support/uom-categories/{uom_category_id}/uoms/{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/support/uom-categories/{uom_category_id}/uoms/{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": "UOM permanently deleted."
}Error response — 401
{
"message": "Unauthenticated."
}