Last Updated on : 2023-06-15 05:55:59
Create a stock keeping unit (SKU) attribute for the specified commodity. When creating a multi-specification SKU, you need to pass in the created attributes. For the attributes created by calling this API, you can get them through the attribute query API (GET:/v1.0/sellercenter/sku/attrs
).
POST: /v1.0/cloud/ecm/store/admin/api/sku/attr/add
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
mall_code | String | body | true | The code of the specified mall. |
site_code | String | body | true | The code of the specified site. |
attr_code | String | body | false | The code of the specified attribute. Either attribute code or attribute name is required. |
attr_name | String | body | false | The attribute name with up to 30 characters. Either attribute code or attribute name is required. |
attr_value_name_list | List | body | false | The name of the specified attribute value with up to 30 characters in a list of strings. |
Parameter name | Type | Description |
---|---|---|
result | Boolean | The returned result. |
POST: /v1.0/cloud/ecm/store/admin/api/sku/attr/add
{
"mall_code": "8h4tiureddm***",
"site_code": "CN",
"attr_code": "",
"attr_name": "Color",
"attr_value_name_list": [
"Green",
"Blue"
]
}
{
"tid": "6423776effa311ed8c2baaa860023be5",
"result": true,
"t": 1685531274400,
"success": true
}
For more information, see error code.
Error code | Error message | Description |
---|---|---|
2000000 | params error | Parameter error. |
2001000 | shop does not exist | The store (site) does not exist. |
2002206 | the sku attribute name length exceeds the maximum limit | The SKU attribute name exceeds the upper limit. |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback