SLA metrics

GET /api/v1/sla read:inventory

Latest daily SLA snapshot and recent history. Percentages are integer hundredths (9950 = 99.50%) or null when the denominator is zero — a null percentage means "no denominator", not "0%"; nulls are treated as NOT a miss by the service-credit engine and carry no penalty. Snapshots are produced by a daily job, so latest can be a day or more behind live activity — use computed_at, not the client clock, to judge freshness; latest is null before the first snapshot exists for your account.

Service-credit thresholds for the three measured SLAs are set by your agreement; see List service credits for how a shortfall converts to a credit.

Try it GET /api/v1/sla?limit=10

These inputs are shared across all docs pages, so an id entered here carries over.

response

Not run yet. Press Run to make a live call against https://service.rip.fun (through this demo's server-side proxy; the API key never reaches the browser).

curl (tracks the inputs above)
curl -X GET 'https://service.rip.fun/api/v1/sla?limit=10' \
  -H 'X-API-Key: rip_…'

Request fields

FieldTypeRequiredDescription
limitquery intHistory rows, 1..365, default 30

Response fields (data)

FieldDescription
latestMost recent TenantSlaMetric, or null
history[]Newest first by as_of_date
(metric).as_of_date / computed_atSnapshot day (YYYY-MM-DD) + when the job computed it
(metric).fulfillment_on_time / fulfillment_total / fulfillment_pctOn-time fulfillment vs the 95% target
(metric).pickpack_total / pickpack_errors / pickpack_pctPick-pack accuracy
(metric).inventory_counted / inventory_matched / inventory_pctInventory-count accuracy
(metric).volume_today / volume_trailing_avg / volume_surgeSurge detection — volume vs trailing average