API for merchants to submit feed data. Please note for each seller, the recommended number of feeds submitted for each operation_type every 24 hours should be lee than 150, otherwise significant delay might be encountered for processing the feed.
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
operation_type | String | 必须 | PRODUCT_CREATE | Currently support 4 types of feeds:PRODUCT_CREATE,PRODUCT_FULL_UPDATE,PRODUCT_STOCKS_UPDATE,PRODUCT_PRICES_UPDATE | |
item_list | SingleItemRequestDto [] | 必须 |
|
item list, maximum size: 2000. | |
|
|||||
developer_features | String | 可选 | {"source":"Lengow"} | More information of the request. |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
job_id | Number | 200000000060024475 | job id,which is for querying the job response later. |
1 2 3 4 5 6 7 8 9 10 11 12 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AliexpressSolutionFeedSubmitRequest req = new AliexpressSolutionFeedSubmitRequest(); req.setOperationType( "PRODUCT_CREATE" ); List<AliexpressSolutionFeedSubmitRequest.SingleItemRequestDto> list2 = new ArrayList<AliexpressSolutionFeedSubmitRequest.SingleItemRequestDto>(); AliexpressSolutionFeedSubmitRequest.SingleItemRequestDto obj3 = new AliexpressSolutionFeedSubmitRequest.SingleItemRequestDto(); list2.add(obj3); obj3.setItemContent( "{\"category_id\":200000346,\"title_multi_language_list\":[{\"locale\":\"es_ES\",\"title\":\"test\"}],\"description_multi_language_list\":[{\"locale\":\"es_ES\",\"module_list\":[{\"type\":\"html\",\"html\":{\"content\":\"test\"}}]}],\"locale\":\"es_ES\",\"product_units_type\":\"100000000\",\"image_url_list\":[\"https://ae01.alicdn.com/kf/HTB1TZJRVkvoK1RjSZFwq6AiCFXa0.jpg_350x350.jpg\"],\"category_attributes\":{\"Brand Name\":{\"value\":\"200010868\"},\"Material\":{\"value\":[\"47\",\"49\"]},\"Clothing Length\":{\"value\":\"1876\"}},\"sku_info_list\":[{\"sku_code\":\"234\",\"inventory\":234,\"price\":23,\"discount_price\":12,\"sku_attributes\":{\"Size\":{\"value\":\"200000989\"},\"Color\":{\"alias\":\"32\",\"sku_image_url\":\"https://ae01.alicdn.com/kf/HTB1TZJRVkvoK1RjSZFwq6AiCFXa0.jpg_350x350.jpg\",\"value\":\"771\"}}}],\"inventory_deduction_strategy\":\"place_order_withhold\",\"package_weight\":234,\"package_length\":234,\"package_height\":234,\"package_width\":234,\"shipping_preparation_time\":3,\"shipping_template_id\":\"1000\",\"service_template_id\":\"0\"}" ); obj3.setItemContentId( "A00000000Y1" ); req.setItemList(list2); req.setDeveloperFeatures( "{\"source\":\"Lengow\"}" ); AliexpressSolutionFeedSubmitResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 | < aliexpress_solution_feed_submit_response > < job_id >200000000060024475</ job_id > </ aliexpress_solution_feed_submit_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 > |
错误码 | 错误描述 | 解决方案 |
---|