curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/inventory-aging' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"as_of": null,
"layers": [
{
"product_id": null,
"quantity": "string",
"received_at": "string",
"sku": "string",
"unit_cost": "string"
}
]
}'
{
"as_of": "string",
"buckets": [
{
"label": "string",
"max_days": null,
"min_days": 1,
"quantity": "string",
"value": "string"
}
],
"total_quantity": "string",
"total_value": "string"
}
Inventory aging
Inventory aging
POST
/
api
/
v1
/
reports
/
inventory-aging
curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/inventory-aging' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"as_of": null,
"layers": [
{
"product_id": null,
"quantity": "string",
"received_at": "string",
"sku": "string",
"unit_cost": "string"
}
]
}'
{
"as_of": "string",
"buckets": [
{
"label": "string",
"max_days": null,
"min_days": 1,
"quantity": "string",
"value": "string"
}
],
"total_quantity": "string",
"total_value": "string"
}
Request body
InventoryAgingRequest
string,null
As-of date (
YYYY-MM-DD); defaults to today when omitted.AgingLayerRequest[]
required
Responses
InventoryAgingResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/inventory-aging' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"as_of": null,
"layers": [
{
"product_id": null,
"quantity": "string",
"received_at": "string",
"sku": "string",
"unit_cost": "string"
}
]
}'
{
"as_of": "string",
"buckets": [
{
"label": "string",
"max_days": null,
"min_days": 1,
"quantity": "string",
"value": "string"
}
],
"total_quantity": "string",
"total_value": "string"
}
โI