curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/close-the-books' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"inventory": [
{
"quantity": "string",
"sku": "string",
"valuation": "string"
}
],
"lines": [
{
"cost": "string",
"sku": "string"
}
]
}'
{
"is_ready": true,
"zero_cost_count": 1,
"zero_cost_skus": [
"string"
],
"zero_valuation_count": 1,
"zero_valuation_items": [
{
"quantity": "string",
"sku": "string"
}
]
}
Close a the books
Close a the books
POST
/
api
/
v1
/
reports
/
close-the-books
curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/close-the-books' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"inventory": [
{
"quantity": "string",
"sku": "string",
"valuation": "string"
}
],
"lines": [
{
"cost": "string",
"sku": "string"
}
]
}'
{
"is_ready": true,
"zero_cost_count": 1,
"zero_cost_skus": [
"string"
],
"zero_valuation_count": 1,
"zero_valuation_items": [
{
"quantity": "string",
"sku": "string"
}
]
}
Request body
CloseBooksRequest
CloseBooksInventoryRequest[]
CloseBooksLineRequest[]
Responses
CloseBooksResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/reports/close-the-books' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"inventory": [
{
"quantity": "string",
"sku": "string",
"valuation": "string"
}
],
"lines": [
{
"cost": "string",
"sku": "string"
}
]
}'
{
"is_ready": true,
"zero_cost_count": 1,
"zero_cost_skus": [
"string"
],
"zero_valuation_count": 1,
"zero_valuation_items": [
{
"quantity": "string",
"sku": "string"
}
]
}
⌘I