文档中心 > API类目 > 闲鱼物流

alibaba.idle.logistics.weight.price.sync (闲鱼核重核价)

闲鱼核重核价

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
idle_logistics_sync_weight_price_param IdleLogisticsSyncWeightPriceParam 必须 结果
  • └ order_id
  • String
  • 必须
  • 2132131221
  • 闲鱼物流单id
  • └ operate_time
  • Date
  • 必须
  • 2022-10-10 10:10:10
  • 操作时间
  • └ fee
  • Number
  • 可选
  • 100
  • 运费金额)(单位分)
  • package_info
  • IdlePackageInfo
  • 必须
  • 包裹信息
  • └ weight
  • Number
  • 必须
  • 1000
  • 重量(单位g)
  • └ waybill_no
  • String
  • 可选
  • SF3238900123123
  • 运单号
  • └ cp_code
  • String
  • 必须
  • YT
  • 合作伙伴code
  • feelist
  • IdleIncrementFeeInfo []
  • 可选
  • [{"type":"INSURE","value":10000}]
  • 增值服务费用的数组
  • └ type
  • String
  • 可选
  • INSURE
  • type是增值服务的类型
  • └ value
  • String
  • 可选
  • 700
  • value是费用(单位分)

响应参数

名称 类型 示例值 描述
result Result 出参
  • data
  • IdleLogisticsSyncWeightPriceVO
  • 业务结果
  • └ order_id
  • String
  • 21312312312
  • 闲鱼物流单id
  • └ waybill_no
  • String
  • 3123123123
  • 运单号
  • └ pay_order_id
  • String
  • 3123123123
  • 支付单号id
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • SYS_ERR
  • 错误编码
  • └ error_msg
  • String
  • 系统错误
  • 错误信息
  • └ is_retry
  • Boolean
  • true
  • 是否可以重试

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleLogisticsWeightPriceSyncRequest req = new AlibabaIdleLogisticsWeightPriceSyncRequest();
AlibabaIdleLogisticsWeightPriceSyncRequest.IdleLogisticsSyncWeightPriceParam obj1 = new AlibabaIdleLogisticsWeightPriceSyncRequest.IdleLogisticsSyncWeightPriceParam();
obj1.setOrderId("2132131221");
obj1.setOperateTime(StringUtils.parseDateTime("2022-10-10 10:10:10"));
obj1.setFee(100L);
AlibabaIdleLogisticsWeightPriceSyncRequest.IdlePackageInfo obj2 = new AlibabaIdleLogisticsWeightPriceSyncRequest.IdlePackageInfo();
obj2.setWeight(1000L);
obj1.setPackageInfo(obj2);
obj1.setWaybillNo("SF3238900123123");
obj1.setCpCode("YT");
List<AlibabaIdleLogisticsWeightPriceSyncRequest.IdleIncrementFeeInfo> list4 = new ArrayList<AlibabaIdleLogisticsWeightPriceSyncRequest.IdleIncrementFeeInfo>();
AlibabaIdleLogisticsWeightPriceSyncRequest.IdleIncrementFeeInfo obj5 = new AlibabaIdleLogisticsWeightPriceSyncRequest.IdleIncrementFeeInfo();
list4.add(obj5);
obj5.setType("INSURE");
obj5.setValue("700");
obj1.setFeelist(list4);
req.setIdleLogisticsSyncWeightPriceParam(obj1);
AlibabaIdleLogisticsWeightPriceSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_logistics_weight_price_sync_response>
    <result>
        <data>
            <order_id>21312312312</order_id>
            <waybill_no>3123123123</waybill_no>
            <pay_order_id>3123123123</pay_order_id>
        </data>
        <success>true</success>
        <error_code>SYS_ERR</error_code>
        <error_msg>系统错误</error_msg>
        <is_retry>true</is_retry>
    </result>
</alibaba_idle_logistics_weight_price_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

返回
顶部