Calculators
Fill rate calculator API
Compute the fill rate = unitsShipped / unitsDemanded with stockout units and a service rating bucket — the core demand-satisfaction KPI. Answers 'what is my fill rate','how many units stocked out','am I meeting service-level targets'.
Price$0.01per request
MethodPOST
Route/v1/calc/logi-fill-rate
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calclogisticsinventoryfill-rateservice-levelkpistockoutsupply-chain
API URL
Integration docshttps://x402.hexl.dev/v1/calc/logi-fill-rateExample request
{
"unitsDemanded": 1000,
"unitsShipped": 920
}Example response
{
"formula": "FillRate = unitsShipped / unitsDemanded",
"fillRate": 0.92,
"fillRatePercent": 92,
"stockoutUnits": 80,
"rating": "fair",
"inputs": {
"unitsDemanded": 1000,
"unitsShipped": 920
}
}Input schema
{
"type": "object",
"required": [
"unitsDemanded",
"unitsShipped"
],
"properties": {
"unitsDemanded": {
"type": "number",
"examples": [
1000
]
},
"unitsShipped": {
"type": "number",
"examples": [
920
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}