Skip to main content
GET
Metric diagnosis

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

metricCode
string
required

SPS metric code, case-insensitive. TikTok's codes today: NRR (negative review rate), NBFR (non-buyer-fault return and refund rate), SFCR (seller-fault cancellation rate), OTDR (on-time delivery rate), AHT (after-sales handling time), IM_DSAT (chat dissatisfaction rate). TikTok says the list may grow, so other code-shaped values pass through.

Pattern: ^[A-Za-z][A-Za-z0-9_]{1,31}$
Example:

"NRR"

Query Parameters

locale
string

Passed to TikTok to localize names and texts. Absent = TikTok picks the default.

Pattern: ^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$
Example:

"en-US"

trend_duration_days
integer

Days of trend to return. Absent = TikTok's default, 30. TikTok documents no maximum; the 365 cap only keeps junk out.

Required range: 1 <= x <= 365
organization_id
integer

Use the TikTok Shop of this child brand (organization id) of your API key's organization

Response

The metric diagnosis

metricCode
string | null
dimension
string | null
score
string | null

0 to 5, TikTok's decimal string.

status
string | null

EXCELLENT | GOOD | POOR | CRITICAL | NIL. NIL means this metric has not enough data to be scored; it is not a zero score.

statusText
string | null
value
string | null

TikTok's decimal string, in valueUnit.

valueUnit
string | null

PERCENT or HOURS.

benchmarks
object | null

TikTok's own tier thresholds for this metric, in the same unit as value. Higher is better for OTDR, lower is better for the others.

evaluateDurationDays
integer | null
evaluationStartsAt
string<date-time> | null
evaluationEndsAt
string<date-time> | null
trend
object[]
calculation
object | null
distribution
object[]
analyses
object[]