curl --silent --show-error --fail-with-body --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 '{
"lines": [
{
"sku": "MUG-001",
"cost": "5.00"
}
],
"inventory": [
{
"sku": "MUG-001",
"quantity": "10",
"valuation": "50.00"
}
]
}'
{
"is_ready": true,
"zero_cost_count": 1,
"zero_cost_skus": [
"string"
],
"zero_valuation_count": 1,
"zero_valuation_items": [
{
"quantity": "2",
"sku": "SKU-TENT-2P-GRN"
}
]
}
Check close readiness
Check close readiness
POST
/
api
/
v1
/
reports
/
close-the-books
curl --silent --show-error --fail-with-body --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 '{
"lines": [
{
"sku": "MUG-001",
"cost": "5.00"
}
],
"inventory": [
{
"sku": "MUG-001",
"quantity": "10",
"valuation": "50.00"
}
]
}'
{
"is_ready": true,
"zero_cost_count": 1,
"zero_cost_skus": [
"string"
],
"zero_valuation_count": 1,
"zero_valuation_items": [
{
"quantity": "2",
"sku": "SKU-TENT-2P-GRN"
}
]
}
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
CloseBooksRequest
CloseBooksInventoryRequest[]
Response
CloseBooksResponse
boolean
required
integer (int64)
required
Minimum:
0.string[]
required
integer (int64)
required
Minimum:
0.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/close-the-books' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"lines": [
{
"sku": "MUG-001",
"cost": "5.00"
}
],
"inventory": [
{
"sku": "MUG-001",
"quantity": "10",
"valuation": "50.00"
}
]
}'
{
"is_ready": true,
"zero_cost_count": 1,
"zero_cost_skus": [
"string"
],
"zero_valuation_count": 1,
"zero_valuation_items": [
{
"quantity": "2",
"sku": "SKU-TENT-2P-GRN"
}
]
}
Last modified on September 21, 2026