Retrieve the standard built-in product and sales attributes for listing a product in a particular category based on your shop’s location. Products on TikTok Shop are grouped into categories predefined by TikTok Shop, and each category is associated with a standard set of product attributes and sales attributes.
- Sales attributes (e.g. size, color, length) define product variants and are optional if your product is straightforward and has no variants.
- Product attributes (e.g. manufacturer, country of origin, materials used) describe the product as a whole, regardless of variant. Some product attributes are mandatory based on listing policies.
Use this API to determine the mandatory and optional attributes before listing a product.
Note: It must be a leaf category that corresponds to the category tree type specified in the
category_versionproperty.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The ID of the category of this product. It must be a leaf category.
Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
The BCP-47 locale codes for displaying category information. Default: The default locale of your shop. Possible values:
cs-CZde-ATde-BEde-DEel-GRen-GBen-IEen-USes-ESes-MXfr-FRfr-BEhu-HUid-IDit-ITja-JPms-MYnl-NLnl-BEpl-PLpt-BRpt-PTth-THvi-VNzh-CN
Filter categories by the category tree version.Possible values based on region:
- US, EU and SEA: v2, represents the 7-level category tree. Important: For US, EU and SEA shops, you must pass v2 when using this API.
- Other regions: v1, represents the 3-level category tree.Default: v1
False — NORMAL products true — LIVE_QUICK products. Only seller with the required permissions can creat LIVE_QUICK products. Default: false
Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
The list of standard built-in product and sales attributes that are bound to the specified category, based on your shop’s location.
object
The ID of the built-in attribute.
The name of the built-in attribute.
The attribute type. Possible values:
- SALES_PROPERTY: Indicates sales attributes that define product variants.
- PRODUCT_PROPERTY: Indicates product attributes that describe the product as a whole.
A flag to indicate if the product attribute is always required when creating or editing a product.
- true: The attribute is always required.
- false: The attribute is not required, or required only if certain conditions are met. Refer to
requirement_conditionsfor the specific requirements.
Applicable only if type=PRODUCT_PROPERTY.
A list of selectable values for the attribute.
object
The ID of the built-in attribute value.
The name of the built-in attribute value.
The icon url value of the built-in attribute value.
The data format for a free-form attribute value.
Returned for customizable numeric attributes.
Possible values:
- POSITIVE_INT_OR_DECIMAL: Positive integers or decimal numbers.
A flag indicating whether sellers can enter a custom value for the attribute when creating or editing a product.
A list of conditions that determine if the product attribute is required based on the seller’s inputs for other attributes. If any of the conditions is met, the attribute is required; otherwise, it is optional.
For example, there’s a condition that states that the “Battery type” attribute is required if the seller selects the value “Batteries” for the attribute “Contains Batteries or Cells?”. For more scenario-based guidance on using this parameter, refer to the Solution Guide - CAT-PRE-HAZMAT.
Applicable only if type=PRODUCT_PROPERTY and is_requried=false.
object
The type of condition. Possible values:
- VALUE_ID_MATCH: The condition is true when the seller selects a value whose ID matches the one specified in this condition.
The ID of the product attribute that is being evaluated by the condition.
The ID of the product attribute value that must match the seller’s input for the condition to be true.
A flag indicating whether sellers can select multiple values for the attribute when creating or editing a product.
Defines the measurement template information used to describe the measurement standards and metric values configured for the product.
object
The unique ID of the measurement template. Use this ID to identify which measurement standard template applies to the product.
The name of the measurement template.
Metric value modules.
object
The unique ID of a metric item within the measurement template. This ID identifies which metric the submitted value belongs to.
The seller-provided value for the specified metric item in the measurement template.
Metric value modules input type.
Metric value modules data type.
Metric value modules default values.
object
Metric value modules default value id.
Metric value modules default value name.
Metric value modules units.
object
Unit id.
Unit name.
Metric value value limit.
object
Metric value num limit.
object
Metric value num limit min value.
Metric value num limit max value.
Metric value length limit.
object
Metric value min length.
Metric value max length.
Metric value prefix.
Metric value suffix.
Metric value shading word.
Example
{ "data": { "attributes": [ { "type": "SALES_PROPERTY", "value_data_format": "POSITIVE_INT_OR_DECIMAL", "requirement_conditions": [ { "condition_type": "VALUE_ID_MATCH" } ] } ] }}