Search customer service sessions by their start-time range and, optionally, the buyer’s nickname.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
The number of results to be returned per page. Valid range: [1-100]
An opaque token used to retrieve the next page of a paginated result set. Retrieve this value from the result of the next_page_token from a previous response. It is not needed for the first page.
The BCP-47 locale codes for displaying the rejection reason, delimited by commas. Default: en-US Refer to https://partner.tiktokshop.com/docv2/page/678e3a47bae28f030a8c7523 for the list of supported locale codes.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Return sessions whose begin_time is greater than or equal to this Unix timestamp, in seconds. Only data from the last 90 days is supported.
Return sessions whose begin_time is less than this Unix timestamp, in seconds. The value must be greater than or equal to begin_time_ge.
Filter sessions by the buyer’s nickname.
Example
{ "begin_time_ge": 1773222516, "begin_time_lt": 1773242516, "buyer_nickname": "Albert"}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
If there is no more record, this field will be “”(empty string).
Customer service sessions that match the request filters.
object
Session id.
Conversation id.
The Unix timestamp, in seconds, when the session began.
The timestamp when the session end.
Buyer’s nickname.
AfterSale/Logistics/Presale
Customer satisfaction rating for the session (e.g., 1–5). Higher scores indicate greater satisfaction.
Reason provided by the buyer for a low satisfaction rating. The language of the reason is determined by the locale request parameter.
Indicates whether the first response exceeded the expected response time or SLA.
Time elapsed in seconds between when the buyer sends the first message and when the seller sends the first response.
Example
{ "code": 0, "data": { "next_page_token": "10", "sessions": [ { "id": "7494560109732334261", "conversation_id": "7601726193700929800", "begin_time": 1773222516, "end_time": 1773232516, "buyer_nickname": "Albert", "chat_tags": [ "Logistics" ], "satisfaction_score": 4, "dissatisfaction_reason": "Slow response or resolution", "first_response_late": false, "first_response_time": 123 } ] }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}