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

aliexpress.marketing.limitdiscountpromotion.create (创建店铺限时限量活动)

创建店铺限时限量活动

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_limited_disc_input_dto AeopLimitedDiscInputDto 可选 详细参考如下
  • └ has_promo
  • Boolean
  • 必须
  • false
  • 是否大促活动
  • └ promotion_end_time
  • String
  • 必须
  • 2018-04-12 12:12:12
  • 活动结束时间
  • └ promotion_name
  • String
  • 必须
  • test
  • 活动名称
  • └ promotion_start_time
  • String
  • 必须
  • 2018-04-12 12:12:12
  • 活动开始时间

响应参数

名称 类型 示例值 描述
target Number 112233 活动id
time_stamp Date timeStamp

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressMarketingLimitdiscountpromotionCreateRequest req = new AliexpressMarketingLimitdiscountpromotionCreateRequest();
AliexpressMarketingLimitdiscountpromotionCreateRequest.AeopLimitedDiscInputDto obj1 = new AliexpressMarketingLimitdiscountpromotionCreateRequest.AeopLimitedDiscInputDto();
obj1.setHasPromo(false);
obj1.setPromotionEndTime("2018-04-12 12:12:12");
obj1.setPromotionName("test");
obj1.setPromotionStartTime("2018-04-12 12:12:12");
req.setParamLimitedDiscInputDto(obj1);
AliexpressMarketingLimitdiscountpromotionCreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_marketing_limitdiscountpromotion_create_response>
    <target>112233</target>
    <time_stamp></time_stamp>
</aliexpress_marketing_limitdiscountpromotion_create_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

返回
顶部