Returns diagnosis details for a single SPS metric, including benchmark thresholds, trends, calculation details, and distribution details. Shop Performance Score (SPS) reflects a shop’s performance across key operational and service metrics on TikTok Shop. By integrating the read-only SPS APIs, ISVs can retrieve a shop’s score, tier, benefits, and metric benchmarks, diagnose performance gaps, and drill down to the products, logistics providers, aftersales types, orders, or chats associated with specific issues. This enables ISVs to embed actionable performance insights into their solutions, helping merchants identify problem areas faster and take targeted actions to improve shop performance. Available only for US-region shops. Use case guide: Click here
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Metric code. Possible values: NRR, NBFR, SFCR, OTDR, AHT, and IM_DSAT.
Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
BCP 47 locale code used to localize response text. If omitted, the default locale is resolved from the request context.
Number of days to look back for metric trend data. The value must be from 1 to 90. Default: 30.
Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
Benchmark thresholds for this metric.
object
Excellent tier threshold.
Poor tier threshold.
Calculation details used to derive this metric.
object
Denominator label.
Denominator value.
Numerator label.
Numerator value.
SPS dimension that the metric belongs to.
Additional distribution details for the metric.
object
Number of items in the distribution bucket.
Distribution detail name.
Percentage of items in the distribution bucket, from 0 to 100.
Number of days included in the metric evaluation period.
Metric evaluation period end time. Unix timestamp in seconds.
Metric evaluation period start time. Unix timestamp in seconds.
Stable metric code. Possible values: NRR, NBFR, SFCR, OTDR, AHT, and IM_DSAT.
Metric score, from 0 to 5.
Metric status. Possible values include EXCELLENT, GOOD, POOR, CRITICAL and NIL.
Metric status text. Values like Excellent, Good, Normal, Attention.
Metric trend over the requested lookback range.
object
Metric trend data points.
object
Trend date in yyyyMMdd format.
Metric value on the trend date, using the same unit as value_unit.
Metric value. Ratios are represented as values from 0 to 1; percentages are represented as values from 0 to 100.
Unit of the metric value. Possible values include PERCENT and HOURS.
Diagnostic insights for the selected metric.
object
Summarized causes affecting the selected metric.
Detailed explanations for the selected metric diagnosis.
Examplegenerated
{ "code": 1, "message": "example", "request_id": "example", "data": { "benchmarks": { "excellent_threshold": "example", "poor_threshold": "example" }, "calculation_rule": { "denominator_label": "example", "denominator_value": "example", "numerator_label": "example", "numerator_value": "example" }, "dimension": "example", "distribution_details": [ { "count": 1, "name": "example", "percent": "example" } ], "evaluate_duration_days": 1, "end_evaluation_time": 1, "start_evaluation_time": 1, "metric_code": "example", "score": "example", "status": "example", "status_text": "example", "trend": { "data_points": [ { "record_date": "example", "value": "example" } ] }, "value": "example", "value_unit": "example", "analyses": [ { "summaries": [ "example" ], "details": [ "example" ] } ] }}