batch product inventory update API for oversea sellers. Sellers could update multiple skus among multiple products in a single call. Maximum 20 products could be updated at the same time and maximum 200 skus could be updated within one product.
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
mutiple_product_update_list | SynchronizeProductRequestDto [] | 必须 |
|
The product list, in which the inventory needs to be updated. Maximum 20 products. | |
|
名称 | 类型 | 示例值 | 描述 | ||||
---|---|---|---|---|---|---|---|
update_error_code | String | When success equals false, indicating the error code | |||||
update_error_message | String | When success equals false, indicating the error message | |||||
update_success | Boolean | Indicates the update result is successful or not. Only all the products in mutiple_product_update_list have been updated successfully will make the success to be true, otherwise false. | |||||
update_failed_list | SynchronizeProductResponseDto [] | update failed list | |||||
|
|||||||
update_successful_list | SynchronizeProductResponseDto [] | update succesful list | |||||
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AliexpressSolutionBatchProductInventoryUpdateRequest req = new AliexpressSolutionBatchProductInventoryUpdateRequest(); List<AliexpressSolutionBatchProductInventoryUpdateRequest.SynchronizeProductRequestDto> list2 = new ArrayList<AliexpressSolutionBatchProductInventoryUpdateRequest.SynchronizeProductRequestDto>(); AliexpressSolutionBatchProductInventoryUpdateRequest.SynchronizeProductRequestDto obj3 = new AliexpressSolutionBatchProductInventoryUpdateRequest.SynchronizeProductRequestDto(); list2.add(obj3); obj3.setProductId(1000005237852L); List<AliexpressSolutionBatchProductInventoryUpdateRequest.SynchronizeSkuRequestDto> list6 = new ArrayList<AliexpressSolutionBatchProductInventoryUpdateRequest.SynchronizeSkuRequestDto>(); AliexpressSolutionBatchProductInventoryUpdateRequest.SynchronizeSkuRequestDto obj7 = new AliexpressSolutionBatchProductInventoryUpdateRequest.SynchronizeSkuRequestDto(); list6.add(obj7); obj7.setSkuCode( "123abc" ); obj7.setInventory(99L); list4.setMultipleSkuUpdateList(list6); req.setMutipleProductUpdateList(list2); AliexpressSolutionBatchProductInventoryUpdateResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | < aliexpress_solution_batch_product_inventory_update_response > < update_error_code ></ update_error_code > < update_error_message ></ update_error_message > < update_success ></ update_success > < update_failed_list > < synchronize_product_response_dto > < error_code ></ error_code > < error_message ></ error_message > < product_id ></ product_id > </ synchronize_product_response_dto > </ update_failed_list > < update_successful_list > < synchronize_product_response_dto > < product_id ></ product_id > </ synchronize_product_response_dto > </ update_successful_list > </ aliexpress_solution_batch_product_inventory_update_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 > |
错误码 | 错误描述 | 解决方案 |
---|