文档中心 > API类目 > 魅力惠API

tmall.luxury.oms.dhl.send (买手店业务推送DHL)

买手店业务推送DHL

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
main_biz_order_id String 可选 2000789 主订单号,官网用orderCode

响应参数

名称 类型 示例值 描述
result ResultBase 结果类
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ error_code
  • Number
  • 123
  • 错误码
  • value
  • DhlResponseDto
  • 123
  • └ airway_bill_number
  • String
  • 123
  • 运单号
  • └ will_bill_file_path
  • String
  • 123
  • 运单path
  • └ error_msg
  • String
  • demo
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallLuxuryOmsDhlSendRequest req = new TmallLuxuryOmsDhlSendRequest();
req.setMainBizOrderId("2000789");
TmallLuxuryOmsDhlSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_luxury_oms_dhl_send_response>
    <result>
        <success>false</success>
        <error_code>123</error_code>
        <value>
            <airway_bill_number>123</airway_bill_number>
            <will_bill_file_path>123</will_bill_file_path>
        </value>
        <error_msg>demo</error_msg>
    </result>
</tmall_luxury_oms_dhl_send_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

返回
顶部