Retrieve recommended weight and dimension ranges for product packages. Only available in BR and MX.
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.
Request Body
Section titled “Request Body”object
A JSON array of product IDs for which to retrieve package recommendations.
Example
{ "product_ids": [ "12345678", "12345679" ]}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
An opaque token used to retrieve the next page of a paginated result set. Provide this value in the page_token parameter of your request if the current response does not return all the results.
The total number of products that meet the query conditions.
The product package recommendations that meet the query conditions. Each item identifies a product and provides detected anomaly types with any available weight or dimension correction range.
object
The product ID generated by TikTok Shop.
The detected package anomaly types. Possible values:
None: No weight or dimension anomaly was detected.Dimension: A dimension correction is recommended.Weight: A weight correction is recommended.
Weight correction recommendation (Returned only when the weight of product has been recommended ).
object
Unit of weight, fixed as GRAM.
Recommended values for weight.
object
Recommended range minimum; unit: g
Recommended range maximum; unit: g
Dimension correction recommendation (Returned only when the dimensions of product has been recommended).
object
Unit of dimension, fixed as centimeter.
Recommended values for length.
object
Recommended range minimum; unit: cm
Recommended range maximum; unit: cm
Recommended values for height (structure same as length).
object
Recommended range minimum; unit: cm
Recommended range maximum; unit: cm
Recommended values for width (structure same as length).
object
Recommended range minimum; unit: cm
Recommended range maximum; unit: cm
Example
{ "code": 0, "data": { "next_page_token": "b2Zmc2V0PTAK", "total_count": 200, "products": [ { "product_id": "23423", "abnormality_types": [ "Dimension", "Weight" ], "weight_recommendation": { "unit": "GRAM", "weight": { "min_value": "550", "max_value": "650" } }, "dimension_recommendation": { "unit": "CENTIMETER", "length": { "min_value": "19", "max_value": "22" }, "height": { "min_value": "19", "max_value": "22" }, "width": { "min_value": "19", "max_value": "22" } } } ] }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}