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

tmall.applestore.booking.counting.setup (苹果官旗配置实时库存和销量统计规则)

苹果官旗配置实时库存和销量统计规则

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
realtime_booking_setup_batch_cmd RealtimeBookingSetupBatchCmd 必须 请求
  • cmd_list
  • RealtimeBookingSetupCmd []
  • 必须
  • []
  • 设置列表
  • └ booking_end
  • Number
  • 必须
  • 1702284931000
  • 结束时间的时间戳
  • └ sc_item_id
  • String
  • 必须
  • 34567890
  • 天猫后端商品id
  • └ booking_from
  • Number
  • 必须
  • 1702274931000
  • 开始时间的时间戳

响应参数

名称 类型 示例值 描述
data RealtimeBookingSetupBatchResp {}
  • └ success_list
  • String []
  • []
  • └ failure_list
  • String []
  • []
result_message String 参数格式异常 错误描述
result_code String PARAM_ERROR 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallApplestoreBookingCountingSetupRequest req = new TmallApplestoreBookingCountingSetupRequest();
TmallApplestoreBookingCountingSetupRequest.RealtimeBookingSetupBatchCmd obj1 = new TmallApplestoreBookingCountingSetupRequest.RealtimeBookingSetupBatchCmd();
List<TmallApplestoreBookingCountingSetupRequest.RealtimeBookingSetupCmd> list3 = new ArrayList<TmallApplestoreBookingCountingSetupRequest.RealtimeBookingSetupCmd>();
TmallApplestoreBookingCountingSetupRequest.RealtimeBookingSetupCmd obj4 = new TmallApplestoreBookingCountingSetupRequest.RealtimeBookingSetupCmd();
list3.add(obj4);
obj4.setBookingEnd(1702284931000L);
obj4.setScItemId("34567890");
obj4.setBookingFrom(1702274931000L);
obj1.setCmdList(list3);
req.setRealtimeBookingSetupBatchCmd(obj1);
TmallApplestoreBookingCountingSetupResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_applestore_booking_counting_setup_response>
    <data>
    </data>
    <result_message>参数格式异常</result_message>
    <result_code>PARAM_ERROR</result_code>
</tmall_applestore_booking_counting_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

返回
顶部