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

cainiao.global.handover.content.subbag.add (预约单下追加大包)

预约单下追加大包

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
handover_content_code String 必须 LPxxxxx 预约号(大包LP)
client String 必须 ISV-xxx 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称
locale String 可选 zh_CN 多语言
subbag_count Number 必须 2 追加大包数量

响应参数

名称 类型 示例值 描述
result HsfResult 请求响应
  • data
  • OpenHandoverContentAddSubbagsResponse
  • 大包追加详情
  • subbag_handover_content_list
  • HandoverContentAddSubbagsDTO []
  • 追加大包列表
  • └ handover_order_id
  • Number
  • 12345
  • 交接单id
  • └ subbag_handover_content_id
  • Number
  • 54321
  • 追加的大包id
  • └ subbag_handover_content_code
  • String
  • LPxxxxx
  • 追加的大包LP
  • └ result
  • Boolean
  • true
  • 请求结果
  • └ error_code
  • String
  • P-088-0000-00-99-001
  • 错误码
  • └ error_msg
  • String
  • 系统异常
  • 异常描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoGlobalHandoverContentSubbagAddRequest req = new CainiaoGlobalHandoverContentSubbagAddRequest();
req.setHandoverContentCode("LPxxxxx");
req.setClient("ISV-xxx");
req.setLocale("zh_CN");
req.setSubbagCount(2L);
CainiaoGlobalHandoverContentSubbagAddResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_global_handover_content_subbag_add_response>
    <result>
        <data>
            <subbag_handover_content_list>
                <handover_content_add_subbags_d_t_o>
                    <handover_order_id>12345</handover_order_id>
                    <subbag_handover_content_id>54321</subbag_handover_content_id>
                    <subbag_handover_content_code>LPxxxxx</subbag_handover_content_code>
                </handover_content_add_subbags_d_t_o>
            </subbag_handover_content_list>
        </data>
        <result>true</result>
        <error_code>P-088-0000-00-99-001</error_code>
        <error_msg>系统异常</error_msg>
    </result>
</cainiao_global_handover_content_subbag_add_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

返回
顶部