注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > AE-Oversea-Solution

aliexpress.solution.schema.product.instance.post (aliexpress.solution.schema.product.instance.post)

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
  • └ product_id
  • Number
  • 32985684727
  • product id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
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());

响应示例

  • XML示例
  • JSON示例
<aliexpress_solution_schema_product_instance_post_response>
    <result>
        <product_id>32985684727</product_id>
    </result>
</aliexpress_solution_schema_product_instance_post_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部