/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.
GET /api/v1/sla?limit=10 These inputs are shared across all docs pages, so an id entered here carries over.
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 -X GET 'https://service.rip.fun/api/v1/sla?limit=10' \ -H 'X-API-Key: rip_…'
| Field | Type | Required | Description |
|---|---|---|---|
limit | query int | — | History rows, 1..365, default 30 |
data)| Field | Description |
|---|---|
latest | Most recent TenantSlaMetric, or null |
history[] | Newest first by as_of_date |
(metric).as_of_date / computed_at | Snapshot day (YYYY-MM-DD) + when the job computed it |
(metric).fulfillment_on_time / fulfillment_total / fulfillment_pct | On-time fulfillment vs the 95% target |
(metric).pickpack_total / pickpack_errors / pickpack_pct | Pick-pack accuracy |
(metric).inventory_counted / inventory_matched / inventory_pct | Inventory-count accuracy |
(metric).volume_today / volume_trailing_avg / volume_surge | Surge detection — volume vs trailing average |