GET
/api/public/v1/qa-specsList QA product specs
The target weight and volume, the tolerance bands a line check is judged against, which pass/fail tests operators must run, and how often a check is expected. `baselinePalletsPerTruck` and `targetPalletsPerTruck` are what the freight savings figures are computed from.
Required scope
The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.
quality:specs:read
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
locationId | string | Required | Which plant. |
limit | number | Optional | Maximum number of items to return (1-100).Default: 20 |
offset | number | Optional | Number of items to skip before starting to collect the result set.Default: 0 |
sortBy | string | Optional | Field to sort by. Allowed values vary by endpoint.Default: createdAt |
sortOrder | string asc desc | Optional | Sort direction.Default: desc |
search | string | Optional | Free-text search across the resource’s primary fields. |
createdAfter | string | Optional | ISO 8601 timestamp — only return items created after this time. |
createdBefore | string | Optional | ISO 8601 timestamp — only return items created before this time. |
updatedAfter | string | Optional | ISO 8601 timestamp — only return items updated after this time. |
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/qa-specs" \
-H "Authorization: Bearer your_access_token"200Example response
json
{
"message": "QA specs retrieved successfully!",
"content": {
"specs": [
{
"id": "qsp_1001",
"locationId": "loc_abc123",
"productName": "Premium mulch, 2cu ft",
"reference": "MUL-2CF-PRM",
"size": "2 cu ft woven poly bag",
"category": "Mulch",
"unitLabel": "bag",
"unitsPerPallet": 60,
"truckWeightLimitLbs": 47000,
"forecastAnnualUnits": 1400000,
"targetWeight": 31.9,
"weightToleranceLow": 31.2,
"weightToleranceHigh": 32.6,
"targetVolume": 2,
"volumeTolerance": 0.08,
"checkIntervalMinutes": 15,
"baselinePalletsPerTruck": 17.7,
"targetPalletsPerTruck": 21
}
],
"pagination": {
"total": 42,
"limit": 20,
"offset": 0,
"hasMore": true
}
}
}In the console
The same thing done by hand, for anyone comparing the API against the screen they already use.
Quality → Products
/quality/products