curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/close-the-books' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"inventory": [
{
"quantity": "string",
"sku": "SKU-TENT-2P-GRN",
"valuation": "string"
}
],
"lines": [
{
"cost": "49.00",
"sku": "SKU-TENT-2P-GRN"
}
]
}'
{
"is_ready": true,
"zero_cost_count": 1,
"zero_cost_skus": [
"string"
],
"zero_valuation_count": 1,
"zero_valuation_items": [
{
"quantity": "string",
"sku": "SKU-TENT-2P-GRN"
}
]
}
Close a the book
Close a the book
POST
/
api
/
v1
/
reports
/
close-the-books
curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/close-the-books' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"inventory": [
{
"quantity": "string",
"sku": "SKU-TENT-2P-GRN",
"valuation": "string"
}
],
"lines": [
{
"cost": "49.00",
"sku": "SKU-TENT-2P-GRN"
}
]
}'
{
"is_ready": true,
"zero_cost_count": 1,
"zero_cost_skus": [
"string"
],
"zero_valuation_count": 1,
"zero_valuation_items": [
{
"quantity": "string",
"sku": "SKU-TENT-2P-GRN"
}
]
}
Request body
CloseBooksRequest
CloseBooksInventoryRequest[]
CloseBooksLineRequest[]
Response
CloseBooksResponse
boolean
required
integer (int64)
required
string[]
required
integer (int64)
required
Status codes
| Code | Meaning |
|---|---|
200 | — |
400 | — |
curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/close-the-books' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"inventory": [
{
"quantity": "string",
"sku": "SKU-TENT-2P-GRN",
"valuation": "string"
}
],
"lines": [
{
"cost": "49.00",
"sku": "SKU-TENT-2P-GRN"
}
]
}'
{
"is_ready": true,
"zero_cost_count": 1,
"zero_cost_skus": [
"string"
],
"zero_valuation_count": 1,
"zero_valuation_items": [
{
"quantity": "string",
"sku": "SKU-TENT-2P-GRN"
}
]
}
Last modified on August 31, 2026