文档中心 > API类目 > 淘天物流API

taobao.logistics.order.billvoucher.report (作业单计费凭证回告)

服务商增值服务计费凭证需要回告淘天

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bill_voucher_request BillVoucherReportDto 必须 作业单计费凭证回告
  • └ owner_code
  • String
  • 必须
  • AX766232
  • 货主编码
  • └ resource_code
  • String
  • 必须
  • STA
  • 资源编码
  • └ order_code
  • String
  • 必须
  • QG88662
  • 作业单编码
  • └ order_type
  • String
  • 必须
  • TOB_CLEARANCE
  • 作业单下发时指定的类型
  • └ expense_item
  • String
  • 必须
  • 报关单联单费
  • 费用项
  • └ amount
  • String
  • 必须
  • 15.2
  • 计费金额(元)
  • └ currency
  • String
  • 必须
  • CNY
  • 金额币种编码(人民币=CNY)
  • └ attachment_urls
  • String []
  • 必须
  • http://a.demo.com/a.xlsx
  • 附件URL,有效期:一年
  • └ extend_props
  • String
  • 可选
  • {}
  • 扩展属性, Map对应的Json

响应参数

名称 类型 示例值 描述
result Result result
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ biz_error_code
  • String
  • 401
  • 错误编码
  • └ biz_error_msg
  • String
  • 授权异常
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LogisticsOrderBillvoucherReportRequest req = new LogisticsOrderBillvoucherReportRequest();
LogisticsOrderBillvoucherReportRequest.BillVoucherReportDto obj1 = new LogisticsOrderBillvoucherReportRequest.BillVoucherReportDto();
obj1.setOwnerCode("AX766232");
obj1.setResourceCode("STA");
obj1.setOrderCode("QG88662");
obj1.setOrderType("TOB_CLEARANCE");
obj1.setExpenseItem("报关单联单费");
obj1.setAmount("15.2");
obj1.setCurrency("CNY");
obj1.setAttachmentUrls("http://a.demo.com/a.xlsx");
obj1.setExtendProps("{}");
req.setBillVoucherRequest(obj1);
LogisticsOrderBillvoucherReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<logistics_order_billvoucher_report_response>
    <result>
        <success>true</success>
        <biz_error_code>401</biz_error_code>
        <biz_error_msg>授权异常</biz_error_msg>
    </result>
</logistics_order_billvoucher_report_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

返回
顶部