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

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

aliexpress.solution.batch.product.price.update (aliexpress.solution.batch.product.price.update)

batch product price update operation for oversea sellers

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
mutiple_product_update_list SynchronizeProductRequestDto [] 必须
  • 最大列表长度:20
  • The product list, in which the price needs to be updated. Maximum length:20
    • └ product_id
    • Number
    • 必须
    • 1000005237852
    • product id
    • multiple_sku_update_list
    • SynchronizeSkuRequestDto []
    • 必须
    • The sku list, in which the inventory needs to be updated within the same product id
    • └ price
    • String
    • 必须
    • 19.99
    • price of an sku
    • └ discount_price
    • String
    • 可选
    • 14.99
    • discount_price of an sku. If not set, the discount_price will be erased.
    • └ sku_code
    • String
    • 必须
    • 123abc
    • sku code
    • multi_country_price_configuration
    • MultiCountryPriceConfigurationDto
    • 可选
    • multi country price configuration
    • └ price_type
    • String
    • 可选
    • absolute
    • Currently supporting only absolute. Please test carefully before uploading products.
    • country_price_list
    • SingleCountryPriceDto []
    • 可选
    • Price list for different countries
    • └ ship_to_country
    • String
    • 可选
    • FR
    • Currently supporting RU US CA ES FR UK NL IL BR CL AU UA BY JP TH SG KR ID MY PH VN IT DE SA AE PL TR
    • sku_price_by_country_list
    • SingleSkuPriceByCountryDto []
    • 可选
    • Sku price list under the same ship_to_country
    • └ sku_code
    • String
    • 可选
    • abc123
    • sku_code, must existed in multiple_sku_update_list
    • └ price
    • String
    • 可选
    • 15
    • Value of price configuration. If the price of a specific country is set, it must be greater than or equal to 70% of the original sku price in multiple_sku_update_list
    • └ discount_price
    • String
    • 可选
    • 13.99
    • Value of discount_price for each country

    响应参数

    名称 类型 示例值 描述
    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
    • └ error_code
    • String
    • error code
    • └ error_message
    • String
    • error message
    • └ product_id
    • Number
    • product oid
    update_successful_list SynchronizeProductResponseDto [] update successful list
    • └ product_id
    • Number
    • product id

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AliexpressSolutionBatchProductPriceUpdateRequest req = new AliexpressSolutionBatchProductPriceUpdateRequest();
    List<AliexpressSolutionBatchProductPriceUpdateRequest.SynchronizeProductRequestDto> list2 = new ArrayList<AliexpressSolutionBatchProductPriceUpdateRequest.SynchronizeProductRequestDto>();
    AliexpressSolutionBatchProductPriceUpdateRequest.SynchronizeProductRequestDto obj3 = new AliexpressSolutionBatchProductPriceUpdateRequest.SynchronizeProductRequestDto();
    list2.add(obj3);
    obj3.setProductId(1000005237852L);
    List<AliexpressSolutionBatchProductPriceUpdateRequest.SynchronizeSkuRequestDto> list6 = new ArrayList<AliexpressSolutionBatchProductPriceUpdateRequest.SynchronizeSkuRequestDto>();
    AliexpressSolutionBatchProductPriceUpdateRequest.SynchronizeSkuRequestDto obj7 = new AliexpressSolutionBatchProductPriceUpdateRequest.SynchronizeSkuRequestDto();
    list6.add(obj7);
    obj7.setPrice("19.99");
    obj7.setDiscountPrice("14.99");
    obj7.setSkuCode("123abc");
    list4.setMultipleSkuUpdateList(list6);
    AliexpressSolutionBatchProductPriceUpdateRequest.MultiCountryPriceConfigurationDto obj9 = new AliexpressSolutionBatchProductPriceUpdateRequest.MultiCountryPriceConfigurationDto();
    obj9.setPriceType("absolute");
    List<AliexpressSolutionBatchProductPriceUpdateRequest.SingleCountryPriceDto> list11 = new ArrayList<AliexpressSolutionBatchProductPriceUpdateRequest.SingleCountryPriceDto>();
    AliexpressSolutionBatchProductPriceUpdateRequest.SingleCountryPriceDto obj12 = new AliexpressSolutionBatchProductPriceUpdateRequest.SingleCountryPriceDto();
    list11.add(obj12);
    obj12.setShipToCountry("FR");
    List<AliexpressSolutionBatchProductPriceUpdateRequest.SingleSkuPriceByCountryDto> list15 = new ArrayList<AliexpressSolutionBatchProductPriceUpdateRequest.SingleSkuPriceByCountryDto>();
    AliexpressSolutionBatchProductPriceUpdateRequest.SingleSkuPriceByCountryDto obj16 = new AliexpressSolutionBatchProductPriceUpdateRequest.SingleSkuPriceByCountryDto();
    list15.add(obj16);
    obj16.setSkuCode("abc123");
    obj16.setPrice("15");
    obj16.setDiscountPrice("13.99");
    list13.setSkuPriceByCountryList(list15);
    obj9.setCountryPriceList(list11);
    list8.setMultiCountryPriceConfiguration(obj9);
    req.setMutipleProductUpdateList(list2);
    AliexpressSolutionBatchProductPriceUpdateResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <aliexpress_solution_batch_product_price_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_price_update_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

    返回
    顶部