产品 API2026-04-28
通过API注册商品时,出现“아이템과 같은 옵션 및 옵션값을 가지고 있는 아이템이 중복으로 존재합니다”的错误。
该报错主要出现在商品的option中内容有重复的情况下。请按照以下方法进行排查:
1.检查产品创建的完整JSON中每个选项的itemName值是否没有重复。
2.请检查属性数组中attributeTypeName和attributeValueName的值是否不重复。
重复选项值报错的一个示例,即必填购买属性的值完全一样。
"items":[
{
"itemName":"sssss"
....
attributes": [
{
"attributeTypeName": "A",
"attributeValueName": "123"
},
{
"attributeTypeName": "B",
"attributeValueName": "456"
}
],
},
{
"itemName":"xxxxx"
....
attributes": [
{
"attributeTypeName": "A",
"attributeValueName": "123"
},
{
"attributeTypeName": "B",
"attributeValueName": "456"
}
],
}
]