文档中心 > API类目 > 全球速卖通-营销管理

aliexpress.marketing.limitdiscountpromotionproduct.edit (修改店铺限时限量活动商品)

修改店铺限时限量活动商品

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_limited_disc_product_input_dto AeopLimitedDiscProductInputDto 可选 详细参考如下
  • └ exist_store_fans_discount
  • String
  • 可选
  • 0
  • 当前粉丝折扣
  • product_objects
  • AeopStorePromProduct []
  • 必须
  • 活动商品对象列表
  • └ buy_max_num
  • Number
  • 必须
  • 10
  • 每人限购数量(每人最多购买数量)
  • product_discount_list
  • AeopProductDiscountInfo []
  • 必须
  • 店铺活动商品优惠信息
  • └ discount
  • Number
  • 可选
  • 20
  • 折扣
  • └ terminal
  • String
  • 可选
  • MOBILE
  • 终端 MOBILE or ALL
  • └ product_id
  • Number
  • 可选
  • 100
  • 商品id
  • sku_inventory_list
  • AeopSkuInventoryInfo []
  • 可选
  • 商品sku信息
  • └ quantity
  • Number
  • 可选
  • 12
  • 参加活动的商品数量,0:不参加活动, 大于0:参加活动
  • └ sku_attr
  • String
  • 可选
  • 14:29
  • sku属性
  • └ used_warehouse
  • Boolean
  • 可选
  • false
  • 默认值:false
  • 是否使用共享库存(已废弃,单品折扣指定为共享库存)
  • └ promotion_id
  • Number
  • 必须
  • 112233
  • 活动id
  • └ store_club_discount_rate
  • String
  • 必须
  • 40
  • 粉丝折扣(与exist_store_fans_discount不一致的时候才更新)

响应参数

名称 类型 示例值 描述
is_success Boolean true true
target AeopLimitedProductResultDto target
  • └ conflict_products
  • String
  • 有冲突的商品信息
time_stamp Date timeStamp

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressMarketingLimitdiscountpromotionproductEditRequest req = new AliexpressMarketingLimitdiscountpromotionproductEditRequest();
AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopLimitedDiscProductInputDto obj1 = new AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopLimitedDiscProductInputDto();
obj1.setExistStoreFansDiscount("0");
List<AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopStorePromProduct> list3 = new ArrayList<AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopStorePromProduct>();
AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopStorePromProduct obj4 = new AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopStorePromProduct();
list3.add(obj4);
obj4.setBuyMaxNum(10L);
List<AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopProductDiscountInfo> list7 = new ArrayList<AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopProductDiscountInfo>();
AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopProductDiscountInfo obj8 = new AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopProductDiscountInfo();
list7.add(obj8);
obj8.setDiscount(20L);
obj8.setTerminal("MOBILE");
list5.setProductDiscountList(list7);
obj4.setProductId(100L);
List<AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopSkuInventoryInfo> list11 = new ArrayList<AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopSkuInventoryInfo>();
AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopSkuInventoryInfo obj12 = new AliexpressMarketingLimitdiscountpromotionproductEditRequest.AeopSkuInventoryInfo();
list11.add(obj12);
obj12.setQuantity(12L);
obj12.setSkuAttr("14:29");
list9.setSkuInventoryList(list11);
obj4.setUsedWarehouse(false);
obj1.setProductObjects(list3);
obj1.setPromotionId(112233L);
obj1.setStoreClubDiscountRate("40");
req.setParamLimitedDiscProductInputDto(obj1);
AliexpressMarketingLimitdiscountpromotionproductEditResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_marketing_limitdiscountpromotionproduct_edit_response>
    <is_success>true</is_success>
    <target>
        <conflict_products></conflict_products>
    </target>
    <time_stamp></time_stamp>
</aliexpress_marketing_limitdiscountpromotionproduct_edit_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

返回
顶部