curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.stateset.com/api/v1/reports/inventory-aging' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"as_of": "2026-08-31",
"layers": [
{
"sku": "MUG-001",
"quantity": "10",
"unit_cost": "5.00",
"received_at": "2026-08-01"
}
]
}'
{
"as_of": "string",
"buckets": [
{
"label": "Replacement tent pole set",
"max_days": 1,
"min_days": 1,
"quantity": "2",
"value": "49.00"
}
],
"total_quantity": "2",
"total_value": "49.00"
}
Calculate inventory aging
Calculate inventory aging
POST
/
api
/
v1
/
reports
/
inventory-aging
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.stateset.com/api/v1/reports/inventory-aging' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"as_of": "2026-08-31",
"layers": [
{
"sku": "MUG-001",
"quantity": "10",
"unit_cost": "5.00",
"received_at": "2026-08-01"
}
]
}'
{
"as_of": "string",
"buckets": [
{
"label": "Replacement tent pole set",
"max_days": 1,
"min_days": 1,
"quantity": "2",
"value": "49.00"
}
],
"total_quantity": "2",
"total_value": "49.00"
}
Confirm your deployment before running this request. This page describes an API contract;
a published reference does not establish hosted availability. Check the dated
host report and obtain your deployment URL and credentials.
Replace the example host if your provisioned service uses a different URL.
Request body
InventoryAgingRequest
string,null
As-of date (
YYYY-MM-DD); defaults to today when omitted.AgingLayerRequest[]
required
Response
InventoryAgingResponse
string
required
AgingBucketResponse[]
required
string
required
string
required
Status codes
| Code | Meaning |
|---|---|
200 | — |
400 | — |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.stateset.com/api/v1/reports/inventory-aging' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"as_of": "2026-08-31",
"layers": [
{
"sku": "MUG-001",
"quantity": "10",
"unit_cost": "5.00",
"received_at": "2026-08-01"
}
]
}'
{
"as_of": "string",
"buckets": [
{
"label": "Replacement tent pole set",
"max_days": 1,
"min_days": 1,
"quantity": "2",
"value": "49.00"
}
],
"total_quantity": "2",
"total_value": "49.00"
}
Last modified on September 21, 2026