Skip to content

Get SPS Metric Problem Details

GET
/analytics/202606/shop_performances/metrics/{metric_code}/problem_details

Returns problem order or chat details for a selected SPS metric. 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

metric_code
required
string

Metric code. Possible values: NRR, NBFR, SFCR, OTDR, AHT, and IM_DSAT.

shop_cipher
required
string

Identifies the shop. Obtain it from the Get Authorized Shops API.

locale
string

BCP 47 locale code used to localize response text. If omitted, the default locale is resolved from the request context.

page_token
string

For the first page, leave this parameter empty. For later pages, pass the opaque next_page_token returned by the previous response unchanged and use the same page_size.

page_size
integer format: int64
>= 1 <= 50

The number of results to return per page. Minimum value is 1. Default value is 10. Maximum value is 50.

Success

Media typeapplication/json
object
code

Status code; 0 means success.

integer format: int64
message

Success or failure message.

string
request_id

Request log ID.

string
data
object
aht_problem_order_items

AHT problem order items.

Array<object>
object
aftersales_type_name

Aftersales type returned by TikTok Shop aftersales classification.

string
approve_duration_hours

Approval duration in hours.

string
inspect_duration_hours

Inspection duration in hours.

string
order_id

Order ID.

string
return_order_id

Return order ID.

string
review_count

Number of review rounds.

integer format: int64
total_handle_duration_hours

Total aftersales handle duration in hours.

string
im_dsat_chat_items

IM_DSAT chat session items.

Array<object>
object
chat_duration_hours

Chat duration in hours.

string
chat_record_id

Chat record ID.

string
customer_name

Masked customer name.

string
customer_rating

Customer rating from 1 to 5.

integer format: int64
first_reply_time

First reply time. Unix timestamp in seconds.

integer format: int64
rating_reasons

Customer rating reasons.

Array<string>
service_agent

Service agent name.

string
metric_code

Stable metric code. Possible values: NRR, NBFR, SFCR, OTDR, AHT, and IM_DSAT.

string
nbfr_problem_order_items

NBFR problem order items.

Array<object>
object
deliver_time

Delivery time. Unix timestamp in seconds.

integer format: int64
order_create_time

Order creation time. Unix timestamp in seconds.

integer format: int64
order_id

Order ID.

string
product_id

Product ID, when available.

string
product_name

Product name.

string
return_refund_reason

Return or refund reason.

string
sku_id

SKU ID.

string
next_page_token

An opaque token used to retrieve the next page of a paginated result set. Returns an empty string when there are no more results.

string
nrr_problem_order_items

NRR problem order items.

Array<object>
object
deliver_time

Delivery time. Unix timestamp in seconds.

integer format: int64
order_create_time

Order creation time. Unix timestamp in seconds.

integer format: int64
order_id

Order ID.

string
product_id

Product ID, when available.

string
product_name

Product name.

string
sku_id

SKU ID.

string
user_review_rating

User review rating from 1 to 5.

integer format: int64
otdr_problem_order_items

OTDR problem order items.

Array<object>
object
actual_deliver_time

Actual deliver time. Unix timestamp in seconds.

integer format: int64
expect_deliver_time

Expected deliver time. Unix timestamp in seconds.

integer format: int64
order_id

Order ID.

string
product_name

Product name.

string
sku_id

SKU ID.

string
sfcr_problem_order_items

SFCR problem order items.

Array<object>
object
cancellation_reasons

Cancellation reasons.

Array<string>
order_create_time

Order creation time. Unix timestamp in seconds.

integer format: int64
order_id

Order ID.

string
product_id

Product ID, when available.

string
product_name

Product name.

string
sku_id

SKU ID.

string
total_count

Total number of available records.

integer format: int64
Example
{
"code": 0,
"data": {
"aht_problem_order_items": [
{
"aftersales_type_name": "Only Return",
"approve_duration_hours": "12.5",
"inspect_duration_hours": "30.0",
"order_id": "576461413038785752",
"return_order_id": "576461413038785753",
"review_count": 2,
"total_handle_duration_hours": "42.5"
}
],
"im_dsat_chat_items": [
{
"chat_duration_hours": "1.5",
"chat_record_id": "745961413038785752",
"customer_name": "J*** D***",
"customer_rating": 2,
"first_reply_time": 1761264060,
"rating_reasons": [
"other"
],
"service_agent": "Agent A"
}
],
"metric_code": "NRR",
"nbfr_problem_order_items": [
{
"deliver_time": 1761523200,
"order_create_time": 1761264000,
"order_id": "576461413038785752",
"product_id": "1729592969712207010",
"product_name": "Cotton T-Shirt",
"return_refund_reason": "Wrong size",
"sku_id": "1729592969712207013"
}
],
"next_page_token": "2",
"nrr_problem_order_items": [
{
"deliver_time": 1761523200,
"order_create_time": 1761264000,
"order_id": "576461413038785752",
"product_id": "1729592969712207008",
"product_name": "Wireless Headphones",
"sku_id": "1729592969712207012",
"user_review_rating": 2
}
],
"otdr_problem_order_items": [
{
"actual_deliver_time": 1761609600,
"expect_deliver_time": 1761523200,
"order_id": "576461413038785752",
"product_name": "Wireless Headphones",
"sku_id": "1729592969712207014"
}
],
"sfcr_problem_order_items": [
{
"cancellation_reasons": [
"Defective item"
],
"order_create_time": 1761264000,
"order_id": "576461413038785752",
"product_id": "1729592969712207011",
"product_name": "Smart Watch",
"sku_id": "1729592969712207014"
}
],
"total_count": 200
},
"message": "Success",
"request_id": "202203070749000101890810281E8C70B7"
}