快工助手跨境电商知识与商机助手

Get SPS Metric Problem Details

TikTok Shop 官方资料 · TikTok Shop Partner Center 开发者文档 · 适合开发者

stable本次发布有变化全部展示

来自 TikTok Shop 官方资料快照 ·

打开官方原文 ↗
  1. 当前资料结构化阅读页
  2. 固定快照已留存,可追溯
  3. 官方原文可核对
查看技术与溯源信息
平台 / profile
TikTok Shop / profile.tiktok.docs_api
语言
en-US
发布版本
cn-20260909-2
标签
zhuge/sourceplatform/tiktok_shopaudience/developercategory/api_doctopic/compliancetopic/developer

资料正文

§1 Path: /analytics/202606/shop_performances/metrics/{metric_code}/problem_details

#

§2 Method: [GET]

#

§3 Function Description

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


#

§4 Common Parameters

For common parameters, refer to How to call TikTok Shop APIs - Common Parameters

Properties Location Type Require Sample Properties description
shop_cipherquerystringYGCP_XF90igAAAABh00qsWgtvOiGFNqyubMt3Use this property to pass shop information in requesting the API. Failure in passing the correct value when requesting the API for cross-border shops will return incorrect response.
Get by API Get Authorization Shop
content-typeheaderstringYapplication/jsonAllowed type: application/json
#

§5 Request Path Parameters

Properties Type Require Sample Properties description
metric_codestringYNRRMetric code. Possible values include NRR, NBFR, SFCR, OTDR, AHT, and IM_DSAT.
#

§6 Request Query Parameters

Properties Type Require Sample Properties description
localestringNen-USLocale code used to localize response text. If omitted, the default locale is resolved from the request context.
page_tokenstringN2Token used to retrieve the next page of results. Leave empty for the first page.
page_sizeintN10The number of results to return per page. Default value is 10. Maximum value is 50.
#

§7 Request Sample

Query

https://open-api.tiktokglobalshop.com/analytics/202606/shop_performances/metrics/NRR/problem_details?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c&timestamp=1625484268&shop_cipher=ROW_RHkDDABBAAB8tKAVoAqsMTjsQZFLyNfY&locale=en-US&page_token=2&page_size=10
#

§8 Response Parameters

Properties Type Sample Properties description
codeint0The success or failure status code returned in API response.
messagestringSuccessThe success or failure messages returned in API response. Reasons of failure will be described in the message.
request_idstring202203070749000101890810281E8C70B7Request log
dataobjectSpecific return information
^aht_problem_order_items[]objectAHT problem order items.
^^aftersales_type_namestringOnly ReturnAftersales type returned by TikTok Shop aftersales classification.
^^approve_duration_hoursstring12.5Approval duration in hours.
^^inspect_duration_hoursstring30.0Inspection duration in hours.
^^order_idstring576461413038785752Order ID.
^^return_order_idstring576461413038785753Return order ID.
^^review_countint2Number of review rounds.
^^total_handle_duration_hoursstring42.5Total aftersales handle duration in hours.
^im_dsat_chat_items[]objectIM_DSAT chat session items.
^^chat_duration_hoursstring1.5Chat duration in hours.
^^chat_record_idstring745961413038785752Chat record ID.
^^customer_namestringJ*** D***Masked customer name.
^^customer_ratingint2Customer rating from 1 to 5.
^^first_reply_timeint1761264060First reply time. Unix timestamp in seconds.
^^rating_reasons[]stringotherCustomer rating reasons.
^^service_agentstringAgent AService agent name.
^metric_codestringNRRStable metric code. Possible values include NRR, NBFR, SFCR, OTDR, AHT, and IM_DSAT.
^nbfr_problem_order_items[]objectNBFR problem order items.
^^deliver_timeint1761523200Delivery time. Unix timestamp in seconds.
^^order_create_timeint1761264000Order creation time. Unix timestamp in seconds.
^^order_idstring576461413038785752Order ID.
^^product_idstring1729592969712207010Product ID, when available.
^^product_namestringCotton T-ShirtProduct name.
^^return_refund_reasonstringWrong sizeReturn or refund reason.
^^sku_idstring1729592969712207013SKU ID.
^next_page_tokenstringb2Zmc2V0PTAKAn opaque token used to retrieve the next page of a paginated result set. Returns an empty string when there are no more results.
^nrr_problem_order_items[]objectNRR problem order items.
^^deliver_timeint1761523200Delivery time. Unix timestamp in seconds.
^^order_create_timeint1761264000Order creation time. Unix timestamp in seconds.
^^order_idstring576461413038785752Order ID.
^^product_idstring1729592969712207008Product ID, when available.
^^product_namestringWireless HeadphonesProduct name.
^^sku_idstring1729592969712207012SKU ID.
^^user_review_ratingint2User review rating from 1 to 5.
^otdr_problem_order_items[]objectOTDR problem order items.
^^actual_deliver_timeint1761609600Actual deliver time. Unix timestamp in seconds.
^^expect_deliver_timeint1761523200Expected deliver time. Unix timestamp in seconds.
^^order_idstring576461413038785752Order ID.
^^product_namestringWireless HeadphonesProduct name.
^^sku_idstring1729592969712207014SKU ID.
^sfcr_problem_order_items[]objectSFCR problem order items.
^^cancellation_reasons[]stringDefective itemCancellation reasons.
^^order_create_timeint1761264000Order creation time. Unix timestamp in seconds.
^^order_idstring576461413038785752Order ID.
^^product_idstring1729592969712207011Product ID, when available.
^^product_namestringSmart WatchProduct name.
^^sku_idstring1729592969712207014SKU ID.
^total_countint200Total number of available records.
#

§9 Response Sample

{"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":"b2Zmc2V0PTAK","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"}
#

§10 Error Code

For common error codes, refer to How to call TikTok Shop APIs - Common Error Code

Code Message
#