文档中心 > API类目 > 淘宝定制行业API

tmall.applestore.edu.promotion.setup (苹果官旗EDU配置教育优惠价格)

苹果官旗EDU配置教育优惠价格

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
edu_promotion_setup_cmd EduPromotionSetupCmd 必须 请求
  • └ item_id
  • Number
  • 必须
  • 2345678
  • 商品id
  • └ item_student_price
  • Number
  • 可选
  • 100
  • 商品价格,单位分
  • └ prom_end_time
  • String
  • 必须
  • 2025-10-10 15:00:00
  • 结束时间
  • └ prom_start_time
  • String
  • 必须
  • 2025-10-11 15:00:00
  • 开始时间
  • └ sku_student_price_list
  • String
  • 可选
  • [{}]
  • SKU价格,单位分

响应参数

名称 类型 示例值 描述
is_success Boolean true 调用是否成功
result_message String PARAM_ERROR 错误码
result_code String 参数异常 错误原因

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallApplestoreEduPromotionSetupRequest req = new TmallApplestoreEduPromotionSetupRequest();
TmallApplestoreEduPromotionSetupRequest.EduPromotionSetupCmd obj1 = new TmallApplestoreEduPromotionSetupRequest.EduPromotionSetupCmd();
obj1.setItemId(2345678L);
obj1.setItemStudentPrice(100L);
obj1.setPromEndTime("2025-10-10 15:00:00");
obj1.setPromStartTime("2025-10-11 15:00:00");
obj1.setSkuStudentPriceList("[{}]");
req.setEduPromotionSetupCmd(obj1);
TmallApplestoreEduPromotionSetupResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_applestore_edu_promotion_setup_response>
    <is_success>true</is_success>
    <result_message>PARAM_ERROR</result_message>
    <result_code>参数异常</result_code>
</tmall_applestore_edu_promotion_setup_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

返回
顶部