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

Edit Size Charts

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

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

来自 TikTok Shop 官方资料快照 ·

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

资料正文

§1 Path: /product/202608/size_charts/edit

#

§2 Method: [POST]

#

§3 Function Description

Edit an existing seller-owned size chart. Omit name to keep the current name.


#

§4 Common Parameters

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

Properties Location Type Require Sample Properties description
content-typeheaderstringYapplication/jsonAllowed type: application/json
#

§5 Request Query Parameters

Properties Type Require Sample Properties description
app_keystringY38abcdEvery single app will have a unique key. Please use the specific key assigned to your app.
signstringY5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8cSignature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders.
timestampintY1623812664Unix timestamp GMT (UTC+00:00). This timestamp is used across all API requests. Developers can use this convert to local time.
#

§6 Request Body Parameters

Properties Type Require Sample Properties description
size_chart_idstringY12345The ID of the seller-owned reusable size chart template to update.
template_namestringNWomen's TopsThe new name of the size chart template. If omitted, the current name remains unchanged.
size_chart_dataobjectYComplete replacement structured table.
^tableobjectYStructured table containing headers and named rows.
^^headers[]objectYColumn definitions.
^^^namestringYSizeUser-visible header name. It may be a seller-defined name, for example Bust (cm).
^^^idstringNsize_chart_size_system_sizeStandard size-system ID or measurement key returned by Get Category Rules; omit for custom columns.
^^rows[]objectYNamed data rows.
^^^cells[]objectYCells aligned by index with table.headers.
^^^^valuestringYSDefault displayed cell value.
^size_types[]stringN["size_chart_size_type_regular"]Possible values include: size_chart_common_size_type: Common; size_chart_size_type_regular: Regular; size_chart_size_type_juniors: Juniors; size_chart_size_type_plus: Plus; size_chart_size_type_big&tall: Big & Tall; size_chart_size_type_petite: Petite. Available values depend on the category.
^descriptionstringNWomen tops size chartSize chart description.
^is_one_sizeboolNfalseWhether this is a one-size chart.
^measurement_typestringYBODY_MEASUREMENTSPossible values: GENERIC_MEASUREMENTS: generic measurements; BODY_MEASUREMENTS: shopper body measurements; PRODUCT_MEASUREMENTS: finished-product measurements.
^unit_systemstringYMETRICPossible values: METRIC: metric units; IMPERIAL: imperial units.
#

§7 Request Sample

Query

https://open-api.tiktokglobalshop.com/product/202608/size_charts/edit?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c&timestamp=1625484268

Body

{"size_chart_id":"12345","template_name":"Women's Tops","size_chart_data":{"table":{"headers":[{"name":"Size","id":"size_chart_size_system_size"}],"rows":[{"cells":[{"value":"S"}]}]},"size_types":["size_chart_size_type_regular"],"description":"Women tops size chart","is_one_size":false,"measurement_type":"BODY_MEASUREMENTS","unit_system":"METRIC"}}
#

§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
^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_idstring202608311234567890Request log
^dataobjectSpecific return information
^^size_chart_idstring12345Updated size chart ID. This echoes the validated request identifier required by the PRD workflow.
#

§9 Response Sample

{"code":0,"data":{"code":0,"message":"Success","request_id":"202608311234567890","data":{"size_chart_id":"12345"}},"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
12052121Size chart is invalid
12052122Size chart description contain sensitive word
12052123Size chart header contain sensitive word
12052124Size chart content contain sensitive word
12052125Size chart struct error
12052127Save size chart template has duplicate name
12052128Size chart not found
12052267Param is invalid
12052331sizeChart mandatory option need fill
12052700The seller is inactive.
36009003Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support.
#

变化记录

相对上一发布版本,本文内容有变化。

本版没有改过这篇(或它是新增页),没有可比的上一版。

对照官方原文 ↗