curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/consumption' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"from": "string",
"records": [
{
"consumed_at": "string",
"product_id": null,
"quantity": "string",
"sku": "string"
}
],
"to": "string"
}'
{
"days": 1,
"from": "string",
"rows": [
{
"avg_daily": "string",
"event_count": 1,
"sku": "string",
"total_quantity": "string"
}
],
"to": "string",
"total_quantity": "string"
}
Consumption
Consumption
POST
/
api
/
v1
/
reports
/
consumption
curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/consumption' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"from": "string",
"records": [
{
"consumed_at": "string",
"product_id": null,
"quantity": "string",
"sku": "string"
}
],
"to": "string"
}'
{
"days": 1,
"from": "string",
"rows": [
{
"avg_daily": "string",
"event_count": 1,
"sku": "string",
"total_quantity": "string"
}
],
"to": "string",
"total_quantity": "string"
}
Request body
ConsumptionRequest
string
required
ConsumptionRecordRequest[]
required
string
required
Responses
ConsumptionResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/consumption' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"from": "string",
"records": [
{
"consumed_at": "string",
"product_id": null,
"quantity": "string",
"sku": "string"
}
],
"to": "string"
}'
{
"days": 1,
"from": "string",
"rows": [
{
"avg_daily": "string",
"event_count": 1,
"sku": "string",
"total_quantity": "string"
}
],
"to": "string",
"total_quantity": "string"
}
โI