Parameters
1 query
Query parameters
· 1customerIdstringRequiredContact external ID.
abc123def456ghijReturns the number of customer-care credits (reklamace / kompenzace / omluva) the contact has received in the last 365 days, alongside the organisation-wide baseline (p75/p90/p95 of care-events per credited contact). The tier is derived by comparing the count to the baseline: 'ok' (no penalty), 'watch' (≥ p75, −3 to score), 'elevated' (≥ p90, −8), 'flag' (≥ p95, −15). When baseline.enabled is false the org has too few care events to compute meaningful thresholds and the tier is always 'ok'.
1 query
customerIdstringRequiredContact external ID.
abc123def456ghij1 status code documented
countnumberRequiredCare events for this contact in the last 365 days.
0312tier"ok" | "watch" | "elevated" | "flag"RequiredRetention tier — see endpoint description.
scorePenaltynumberRequiredScore adjustment currently applied for this care-count (0 for ok, negative otherwise).
0-3-8-15baselineobjectRequiredenabledbooleanRequiredTrue when the org has enough care events for the percentiles to be meaningful.
sampleSizenumberRequiredTotal care events in the org over the window.
contactCountnumberRequiredDistinct contacts who received a care event in the window.
p75numberRequiredWatch threshold (care events per contact).
2p90numberRequiredElevated threshold (care events per contact).
5p95numberRequiredFlag threshold (care events per contact).
9computedAtstringRequiredTimestamp the baseline was materialized.
windowDaysnumberRequiredSliding window length in days.
365{
"count": 0,
"scorePenalty": 0,
"baseline": {
"enabled": false,
"sampleSize": 0,
"contactCount": 0,
"p75": 2,
"p90": 5,
"p95": 9,
"computedAt": "example_computedAt",
"windowDays": 365
}
}GET /bff/contact-credit/care-status
curl -X GET "https://api.bizkithub.com/bff/contact-credit/care-status?customerId=abc123def456ghij" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.