alibaba.mtp.supplychain.querycheck.appointment (MTP二期供应链域预检验&可预约时间片产能查询)

MTP二期供应链域预检验&可预约时间片产能查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
appointment_query_check_param AppointmentQueryCheckParam 可选 入参
  • └ out_trace_id
  • String
  • 可选
  • xxx
  • 外部traceId
  • └ merchant_code
  • String
  • 可选
  • xx
  • 商家编码
  • └ outer_order_no
  • String
  • 可选
  • xx
  • 外部来源单号
  • details
  • AppointmentDetailTopDTO []
  • 可选
  • 调拨单详情列表
  • └ transfer_order_no
  • String
  • 可选
  • xx
  • 调拨单号
  • └ unit
  • String
  • 可选
  • xx
  • 库存单位
  • └ outbound_quantity
  • String
  • 可选
  • xx
  • 调拨单号出库数量
  • └ sku_code
  • String
  • 可选
  • xx
  • MTP商品编码
  • └ source
  • String
  • 可选
  • xx
  • 调用来源
  • └ warehouse_code
  • String
  • 可选
  • xx
  • 调拨单调入仓编码

响应参数

名称 类型 示例值 描述
result ResultDTO XXX 返回
  • └ success
  • Boolean
  • true
  • 成功
  • └ error_message
  • String
  • xxx
  • 错误信息
  • └ error_code
  • String
  • xxx
  • 错误码
  • content
  • AppointmentQueryCheckResDTO
  • 内容
  • └ warehouse_code
  • String
  • xxx
  • 中心仓编码
  • └ appoint_date
  • String
  • xxx
  • 预约日期
  • time_slices
  • TimeSlicesTopDTO []
  • 商家预约时间片&产能集合
  • └ start
  • String
  • xxx
  • 时间片开始时间
  • └ end
  • String
  • xxx
  • 时间片结束时间
  • └ remained
  • String
  • xxx
  • 时间片可用产能
  • └ total
  • String
  • xxx
  • 时间片总产能
  • └ occupy
  • String
  • xxx
  • 时间片占用产能
  • └ unit
  • String
  • xxx
  • 产能单位

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMtpSupplychainQuerycheckAppointmentRequest req = new AlibabaMtpSupplychainQuerycheckAppointmentRequest();
AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentQueryCheckParam obj1 = new AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentQueryCheckParam();
obj1.setOutTraceId("xxx");
obj1.setMerchantCode("xx");
obj1.setOuterOrderNo("xx");
List<AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTO> list3 = new ArrayList<AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTO>();
AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTO obj4 = new AlibabaMtpSupplychainQuerycheckAppointmentRequest.AppointmentDetailTopDTO();
list3.add(obj4);
obj4.setTransferOrderNo("xx");
obj4.setUnit("xx");
obj4.setOutboundQuantity("xx");
obj4.setSkuCode("xx");
obj1.setDetails(list3);
obj1.setSource("xx");
obj1.setWarehouseCode("xx");
req.setAppointmentQueryCheckParam(obj1);
AlibabaMtpSupplychainQuerycheckAppointmentResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mtp_supplychain_querycheck_appointment_response>
    <result>
        <success>true</success>
        <error_message>xxx</error_message>
        <error_code>xxx</error_code>
        <content>
            <warehouse_code>xxx</warehouse_code>
            <appoint_date>xxx</appoint_date>
            <time_slices>
                <time_slices_top_d_t_o>
                    <start>xxx</start>
                    <end>xxx</end>
                    <remained>xxx</remained>
                    <total>xxx</total>
                    <occupy>xxx</occupy>
                    <unit>xxx</unit>
                </time_slices_top_d_t_o>
            </time_slices>
        </content>
    </result>
</alibaba_mtp_supplychain_querycheck_appointment_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

返回
顶部