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

taobao.logistics.express.bill.sync (配送公司月度账单同步)

配送公司月度账单同步

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
monthly_bill_sync_request TmsMonthlyBillSyncRequest 必须 请求
  • └ supplier_id
  • String
  • 必须
  • 100000167
  • 淘天物流服务商ID
  • └ delivery_code
  • String
  • 必须
  • SF
  • 服务商配资源唯一编码
  • └ id
  • String
  • 必须
  • 12312321
  • 唯一id
  • └ mail_no
  • String
  • 必须
  • SF1312312
  • 运单号码
  • └ customer_code
  • String
  • 必须
  • 1231231
  • 子公司卡号
  • └ logistics_object_type
  • String
  • 可选
  • 托寄物
  • 托寄物内容
  • └ logistics_object_num
  • String
  • 可选
  • 1
  • 托寄物数量
  • └ volume
  • String
  • 可选
  • 33.22
  • 体积(两位小数)
  • └ length
  • String
  • 可选
  • 44.3333
  • 长(四位小数)
  • └ width
  • String
  • 可选
  • 44.3333
  • 宽(四位小数)
  • └ height
  • String
  • 可选
  • 44.3333
  • 高(四位小数)
  • └ actual_weight
  • String
  • 可选
  • 44.3333
  • 实际重量(四位小数)
  • └ account_weight
  • String
  • 可选
  • 44.3333
  • 计费重量(四位小数)
  • └ spe_light_weight
  • String
  • 可选
  • 44.3333
  • 个性化轻抛重量(四位小数)
  • receiver_info
  • ContacterRequest
  • 可选
  • 收件人,始发地
  • └ province
  • String
  • 可选
  • 浙江
  • └ city
  • String
  • 可选
  • 杭州
  • └ district
  • String
  • 可选
  • 余杭区
  • └ street
  • String
  • 可选
  • 五常街道
  • 街道
  • └ area_id
  • String
  • 可选
  • 12321
  • 区id,三级地址id
  • └ address
  • String
  • 可选
  • 文一西路969号
  • 详细地址
  • sender_info
  • ContacterRequest
  • 可选
  • 寄件人,目的地
  • └ province
  • String
  • 可选
  • 浙江
  • └ city
  • String
  • 可选
  • 杭州
  • └ district
  • String
  • 可选
  • 余杭区
  • └ street
  • String
  • 可选
  • 五常街道
  • 街道
  • └ area_id
  • String
  • 可选
  • 12321
  • 区id,三级地址id
  • └ address
  • String
  • 可选
  • 文一西路969号
  • 详细地址
  • └ claim_price
  • String
  • 可选
  • 3344
  • 声明价值
  • └ product_type
  • String
  • 可选
  • 1
  • 产品类型
  • └ type_name
  • String
  • 必须
  • 快递费用
  • 费用模块
  • └ fee_item
  • String
  • 可选
  • 323232
  • 增值费用
  • └ fee
  • String
  • 可选
  • 3232.32
  • 费用(元)
  • └ discount
  • String
  • 可选
  • 3232.32
  • 折扣/促销
  • └ payable_amount
  • String
  • 可选
  • 3232.32
  • 应付金额
  • └ business_date
  • String
  • 可选
  • 2023-12-12
  • 日期
  • └ deduction_date
  • String
  • 可选
  • 2023-12-12
  • 抵减日
  • └ original_fee
  • String
  • 可选
  • 3232.32
  • 运单原运费
  • └ deduction_fee
  • String
  • 可选
  • 3232.32
  • 抵减运费
  • └ deduction_monthly_fee
  • String
  • 可选
  • 3232.32
  • 抵减月结运费
  • └ extend_props
  • String
  • 可选
  • {}
  • 拓展属性

响应参数

名称 类型 示例值 描述
result ResultWrapper 结果
  • └ success
  • Boolean
  • true|false
  • 系统成功失败
  • └ error_code
  • String
  • 10001
  • 错误码
  • └ error_desc
  • String
  • 系统错误
  • 错误信息
  • └ retry
  • Boolean
  • true|false
  • 是否可重试

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LogisticsExpressBillSyncRequest req = new LogisticsExpressBillSyncRequest();
LogisticsExpressBillSyncRequest.TmsMonthlyBillSyncRequest obj1 = new LogisticsExpressBillSyncRequest.TmsMonthlyBillSyncRequest();
obj1.setSupplierId("100000167");
obj1.setDeliveryCode("SF");
obj1.setId("12312321");
obj1.setMailNo("SF1312312");
obj1.setCustomerCode("1231231");
obj1.setLogisticsObjectType("托寄物");
obj1.setLogisticsObjectNum("1");
obj1.setVolume("33.22");
obj1.setLength("44.3333");
obj1.setWidth("44.3333");
obj1.setHeight("44.3333");
obj1.setActualWeight("44.3333");
obj1.setAccountWeight("44.3333");
obj1.setSpeLightWeight("44.3333");
LogisticsExpressBillSyncRequest.ContacterRequest obj2 = new LogisticsExpressBillSyncRequest.ContacterRequest();
obj2.setProvince("浙江");
obj2.setCity("杭州");
obj2.setDistrict("余杭区");
obj2.setStreet("五常街道");
obj2.setAreaId("12321");
obj2.setAddress("文一西路969号");
obj1.setReceiverInfo(obj2);
LogisticsExpressBillSyncRequest.ContacterRequest obj3 = new LogisticsExpressBillSyncRequest.ContacterRequest();
obj3.setProvince("浙江");
obj3.setCity("杭州");
obj3.setDistrict("余杭区");
obj3.setStreet("五常街道");
obj3.setAreaId("12321");
obj3.setAddress("文一西路969号");
obj1.setSenderInfo(obj3);
obj1.setClaimPrice("3344");
obj1.setProductType("1");
obj1.setTypeName("快递费用");
obj1.setFeeItem("323232");
obj1.setFee("3232.32");
obj1.setDiscount("3232.32");
obj1.setPayableAmount("3232.32");
obj1.setBusinessDate("2023-12-12");
obj1.setDeductionDate("2023-12-12");
obj1.setOriginalFee("3232.32");
obj1.setDeductionFee("3232.32");
obj1.setDeductionMonthlyFee("3232.32");
obj1.setExtendProps("{}");
req.setMonthlyBillSyncRequest(obj1);
LogisticsExpressBillSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<logistics_express_bill_sync_response>
    <result>
        <success>true|false</success>
        <error_code>10001</error_code>
        <error_desc>系统错误</error_desc>
        <retry>true|false</retry>
    </result>
</logistics_express_bill_sync_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

返回
顶部