item_limit_exceeded。items。 请指出RUB — 俄罗斯卢布。CNY, 否则将返回错误。depth, width, height, dimension_unit, weight, weight_unit。请勿在请求中跳过这些参数,也不要指定0。items。9048 在 attributes中。 这些卡片除了大小或颜色外的所有属性都必须匹配。images 数组中。 要加载主图请使用 primary_image参数。 如果没有传递 primary_image值, 主图将是images组中的第一张图片。primary_image值, 在 images 的最大图像数为——14。primary_image 为空, 那么在images 可以传递最多15张图片。images360字段, 上传营销名字 — color_image。images, images360, color_image字段的数据, 更改和完成列表或者complex_attributes参数中传递对象。在attributes数组中,请传递两个含complex_id = 100001的对象:id = 21841 和在数组 values 中传输含视频链接的对象。{
"complex_id": 100001,
"id": 21841,
"values": [
{
"value": "https://www.youtube.com/watch?v=ZwM0iBn03dY"
}
]
}id = 21837 和在 values 数组中传输含视频名称的对象。{
"complex_id": 100001,
"id": 21837,
"values": [
{
"value": "videoName_1"
}
]
}values数组对象中为每个视频赋值。{
"complex_id": 100001,
"id": 21837,
"values": [
{
"value": "videoName_1"
},
{
"value": "videoName_2"
}
]
},
{
"complex_id": 100001,
"id": 21841,
"values": [
{
"value": "https://www.youtube.com/watch?v=ZwM0iBn03dY"
},
{
"value": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
]
}attributes组传递表格,格式 JSON 如 Rich-内容 id = 13164。 complex_attributes。"complex_attributes": [
{
"attributes": [
{
"id": 21845,
"complex_id": 100002,
"values": [
{
"dictionary_value_id": 0,
"value": "https://v.ozone.ru/vod/video-10/01GFATWQVCDE7G5B721421P1231Q7/asset_1.mp4"
}
]
}
]
}
]{
"items": [
{
"attributes": [
{
"complex_id": 0,
"id": 5076,
"values": [
{
"dictionary_value_id": 971082156,
"value": "麦克风架"
}
]
},
{
"complex_id": 0,
"id": 9048,
"values": [
{
"value": "一套X3NFC保护膜。 深色棉质"
}
]
},
{
"complex_id": 0,
"id": 8229,
"values": [
{
"dictionary_value_id": 95911,
"value": "一套X3NFC保护膜。深色棉质"
}
]
},
{
"complex_id": 0,
"id": 85,
"values": [
{
"dictionary_value_id": 5060050,
"value": "Samsung"
}
]
},
{
"complex_id": 0,
"id": 10096,
"values": [
{
"dictionary_value_id": 61576,
"value": "灰色的"
}
]
}
],
"barcode": "112772873170",
"description_category_id": 17028922,
"new_description_category_id": 0,
"color_image": "",
"complex_attributes": [],
"currency_code": "RUB",
"depth": 10,
"dimension_unit": "mm",
"height": 250,
"images": [],
"images360": [],
"name": "一套X3NFC的保护膜。深色棉质",
"offer_id": "143210608",
"old_price": "1100",
"pdf_list": [],
"price": "1000",
"primary_image": "",
"promotions": [
{
"operation": "UNKNOWN",
"type": "REVIEWS_PROMO"
}
],
"type_id": 91565,
"vat": "0.1",
"weight": 100,
"weight_unit": "g",
"width": 150
}
]
}curl --location --request POST 'https://api-seller.ozon.ru/v3/product/import' \
--header 'Client-Id;' \
--header 'Api-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"items": [
{
"attributes": [
{
"complex_id": 0,
"id": 5076,
"values": [
{
"dictionary_value_id": 971082156,
"value": "麦克风架"
}
]
},
{
"complex_id": 0,
"id": 9048,
"values": [
{
"value": "一套X3NFC保护膜。 深色棉质"
}
]
},
{
"complex_id": 0,
"id": 8229,
"values": [
{
"dictionary_value_id": 95911,
"value": "一套X3NFC保护膜。深色棉质"
}
]
},
{
"complex_id": 0,
"id": 85,
"values": [
{
"dictionary_value_id": 5060050,
"value": "Samsung"
}
]
},
{
"complex_id": 0,
"id": 10096,
"values": [
{
"dictionary_value_id": 61576,
"value": "灰色的"
}
]
}
],
"barcode": "112772873170",
"description_category_id": 17028922,
"new_description_category_id": 0,
"color_image": "",
"complex_attributes": [],
"currency_code": "RUB",
"depth": 10,
"dimension_unit": "mm",
"height": 250,
"images": [],
"images360": [],
"name": "一套X3NFC的保护膜。深色棉质",
"offer_id": "143210608",
"old_price": "1100",
"pdf_list": [],
"price": "1000",
"primary_image": "",
"promotions": [
{
"operation": "UNKNOWN",
"type": "REVIEWS_PROMO"
}
],
"type_id": 91565,
"vat": "0.1",
"weight": 100,
"weight_unit": "g",
"width": 150
}
]
}'{
"result": {
"task_id": 172549793
}
}