Upload product based on json schema instance.QPS(Invoke per second) for this API is limited to 100 for each appkey and 50 for each seller.
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
product_instance_request | String | 必须 | {"category_id":348,"title_multi_language_list":[{"locale":"es_ES","title":"atestproducttesttest001"}],"description_multi_language_list":[{"locale":"es_ES","module_list":[{"type":"html","html":{"content":"unotesttestdescription002"}}]}],"locale":"es_ES","product_units_type":"100000015","image_url_list":["https://upload.wikimedia.org/wikipedia/commons/b/ba/E-SENS_architecture.jpg"],"category_attributes":{"BrandName":{"value":"200010868"},"ShirtsType":{"value":"200001208"},"Material":{"value":["567"]},"SleeveLength(cm)":{"value":"200001500"}},"sku_info_list":[{"sku_code":"WEO19293829123","inventory":3,"price":9900,"discount_price":9800,"sku_attributes":{"Size":{"alias":"Uni","value":"200003528"}}}],"inventory_deduction_strategy":"payment_success_deduct","package_weight":1.5,"package_length":10,"package_height":20,"package_width":30,"shipping_preparation_time":3,"shipping_template_id":"714844311","service_template_id":"0"} | Product instance data. The relative parameters description in schema json String are same as "aliexpress.solution.product.post" .Please note: the shipping_template_id should be replaced with your own shipping template id, which could be obtained through https://developers.aliexpress.com/en/doc.htm?docId=43456&docType=2 | |
developer_features | String | 可选 | {"source":"Lengow"} | More information of the request. |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | PostItemResponseDto | result | result of the product posting |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AliexpressSolutionSchemaProductInstancePostRequest req = new AliexpressSolutionSchemaProductInstancePostRequest(); req.setProductInstanceRequest( "{\"category_id\":348,\"title_multi_language_list\":[{\"locale\":\"es_ES\",\"title\":\"atestproducttesttest001\"}],\"description_multi_language_list\":[{\"locale\":\"es_ES\",\"module_list\":[{\"type\":\"html\",\"html\":{\"content\":\"unotesttestdescription002\"}}]}],\"locale\":\"es_ES\",\"product_units_type\":\"100000015\",\"image_url_list\":[\"https://upload.wikimedia.org/wikipedia/commons/b/ba/E-SENS_architecture.jpg\"],\"category_attributes\":{\"BrandName\":{\"value\":\"200010868\"},\"ShirtsType\":{\"value\":\"200001208\"},\"Material\":{\"value\":[\"567\"]},\"SleeveLength(cm)\":{\"value\":\"200001500\"}},\"sku_info_list\":[{\"sku_code\":\"WEO19293829123\",\"inventory\":3,\"price\":9900,\"discount_price\":9800,\"sku_attributes\":{\"Size\":{\"alias\":\"Uni\",\"value\":\"200003528\"}}}],\"inventory_deduction_strategy\":\"payment_success_deduct\",\"package_weight\":1.5,\"package_length\":10,\"package_height\":20,\"package_width\":30,\"shipping_preparation_time\":3,\"shipping_template_id\":\"714844311\",\"service_template_id\":\"0\"}" ); req.setDeveloperFeatures( "{\"source\":\"Lengow\"}" ); AliexpressSolutionSchemaProductInstancePostResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 | < aliexpress_solution_schema_product_instance_post_response > < result > < product_id >32985684727</ product_id > </ result > </ aliexpress_solution_schema_product_instance_post_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|