文档中心 > API类目 > 闲鱼发布

alibaba.idle.recycle.order.get (闲鱼回收订单查询V2)

闲鱼回收业务中,外部回收商作为交易上买家,闲鱼用户下单后,需要回收商主动拉取交易订单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
biz_order_id Number 必须 1231234 订单号

响应参数

名称 类型 示例值 描述
error_msg String 订单查询失败 失败时候错误信息
module RecycleOrderTo 订单信息
  • └ app_key
  • String
  • 31123412
  • 回收商appkey
  • └ apprize_amount
  • Number
  • 31000
  • 估价金额,单位分
  • └ apprize_id
  • String
  • 989123
  • 估价Id
  • └ area
  • String
  • 余杭
  • └ biz_order_id
  • String
  • 781293810231231
  • 交易订单号
  • └ buyer_close_reason
  • String
  • 联系不上用户
  • 回收商取消订单原因
  • └ seller_close_reason
  • String
  • 不想卖了
  • 用户取消订单原因
  • └ buyer_nick
  • String
  • 回收商账户01
  • 回收商买家账号
  • └ channel
  • String
  • idle
  • 渠道信息
  • └ channel_data
  • String
  • { "idleBizCode": 70, "weight": "5" }
  • 渠道内的业务数据json格式 比如 ship=1 服装类的不需要发货,weight=5-15 代表服装5-15kg, userLevel=vip 代表免议价用户,sellerRealPhone 淘宝账号绑定的手机号
  • └ city
  • String
  • 杭州
  • 城市
  • └ country
  • String
  • 中泰
  • └ coupon_fee
  • String
  • 0
  • 加价券金额,单位分
  • └ coupon_id
  • String
  • 123
  • 加价券Id(预留)
  • └ coupon_rule
  • String
  • { "actType": 3, "beg": "2017-12-21 16:00:00", "couponFee": 0, "couponId": "-5", "desc": "阶梯价", "end": "2019-02-31 00:00:00", "idleBizCode": "8", "low": 0, "range": [{ "actType": 1, "couponFee": 0, "desc": "100~2000元,加价10%", "low": 10000, "percent": 0.1, "up": 200000 }, { "actType": 1, "couponFee": 0, "desc": "2000~3000元,加价20%", "low": 200000, "percent": 0.2, "up": 300000 }, { "actType": 2, "addFee": 70000, "couponFee": 0, "desc": "3000元以上,加价700", "low": 300000, "up": 0 }] }
  • 加价券规则(预留)
  • └ credit_pay
  • Boolean
  • true
  • true:是信用预付订单,false:普通订单
  • └ credit_pay_amount
  • Number
  • 10000
  • 信用预付金额,单位分
  • └ env
  • String
  • online
  • onlien:线上环境 pre:测试环境
  • └ gmt_create
  • String
  • 2018-02-12 11:32:21
  • 订单创建时间
  • └ idle_pay_type
  • String
  • 1
  • 1:现金支付
  • └ order_status
  • Number
  • 1
  • 回收订单状态:1:订单创建 2:已上门取件 3:已质检 4:卖家确认交易完成 6:卖家订单已评价 7:回收商订单已评价 100:卖家申请退回 101:货物已退回 102:卖家关闭订单
  • └ province
  • String
  • 浙江省
  • └ rate_content
  • String
  • 交易顺利
  • 卖家评价内容
  • └ rate_grade
  • String
  • 1 好评,0 默认中评
  • 卖家评价等级
  • └ refund_reason
  • String
  • 报价太低
  • 卖家申请退回原因
  • └ seller_address
  • String
  • 浙江省杭州市余杭区969号
  • 卖家收货地址
  • └ seller_nick
  • String
  • testSeller123
  • 卖家淘宝nick
  • └ seller_phone
  • String
  • 13399120012
  • 卖家联系号码
  • └ seller_real_name
  • String
  • 王小二
  • 卖家真实姓名
  • └ ship_time
  • String
  • 2018-02-13 12:12:11
  • 上门取件时间
  • └ ship_type
  • String
  • 取件类型 1:顺风 2:上门取件 3:到店
  • 取件类型
  • └ sub_channel
  • String
  • subShop01
  • 子渠道
  • └ pay_status
  • String
  • 2
  • 支付状态 1:未付款 2:已付款
  • └ pay_time
  • String
  • 2018-02-13 12:12:11
  • 下单后付款时间
  • └ end_time
  • String
  • 2018-02-13 12:12:11
  • 订单完结时间
  • └ recovery_pay_id
  • String
  • 20889123123
  • 追缴单流水Id
  • └ recovery_pay_time
  • String
  • 2018-02-13 12:12:11
  • 追缴成功时间
  • └ makeup_pay_id
  • String
  • 20889123123
  • 少补单流水Id
  • └ makeup_pay_time
  • String
  • 2018-02-13 12:12:11
  • 少补成功时间
  • └ main_pay_id
  • String
  • 20889123123
  • 主订单支付流水Id
  • └ qa_amount
  • Number
  • 120
  • 质检金额,单位分
  • └ quote_version
  • String
  • 0
  • 估价版本,第几次估价
  • └ replace_subsidy
  • Boolean
  • true
  • 是否换机补贴
  • └ pre_fee
  • String
  • 100
  • 预估补贴金额
  • └ inspect_fee
  • String
  • 100
  • 质检补贴金额
  • └ actual_fee
  • String
  • 100
  • 实付补贴金额
  • └ subsidy_pay_id
  • String
  • 215541123
  • 补贴打款支付宝流水号
result Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleRecycleOrderGetRequest req = new AlibabaIdleRecycleOrderGetRequest();
req.setBizOrderId(1231234L);
AlibabaIdleRecycleOrderGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_recycle_order_get_response>
    <error_msg>订单查询失败</error_msg>
    <module>
        <app_key>31123412</app_key>
        <apprize_amount>31000</apprize_amount>
        <apprize_id>989123</apprize_id>
        <area>余杭</area>
        <biz_order_id>781293810231231</biz_order_id>
        <buyer_close_reason>联系不上用户</buyer_close_reason>
        <seller_close_reason>不想卖了</seller_close_reason>
        <buyer_nick>回收商账户01</buyer_nick>
        <channel>idle</channel>
        <channel_data>{   &quot;idleBizCode&quot;: 70,   &quot;weight&quot;: &quot;5&quot; }</channel_data>
        <city>杭州</city>
        <country>中泰</country>
        <coupon_fee>0</coupon_fee>
        <coupon_id>123</coupon_id>
        <coupon_rule>{     &quot;actType&quot;: 3,     &quot;beg&quot;: &quot;2017-12-21 16:00:00&quot;,     &quot;couponFee&quot;: 0,     &quot;couponId&quot;: &quot;-5&quot;,     &quot;desc&quot;: &quot;阶梯价&quot;,     &quot;end&quot;: &quot;2019-02-31 00:00:00&quot;,     &quot;idleBizCode&quot;: &quot;8&quot;,     &quot;low&quot;: 0,     &quot;range&quot;: [{         &quot;actType&quot;: 1,         &quot;couponFee&quot;: 0,         &quot;desc&quot;: &quot;100~2000元,加价10%&quot;,         &quot;low&quot;: 10000,         &quot;percent&quot;: 0.1,         &quot;up&quot;: 200000     },     {         &quot;actType&quot;: 1,         &quot;couponFee&quot;: 0,         &quot;desc&quot;: &quot;2000~3000元,加价20%&quot;,         &quot;low&quot;: 200000,         &quot;percent&quot;: 0.2,         &quot;up&quot;: 300000     },     {         &quot;actType&quot;: 2,         &quot;addFee&quot;: 70000,         &quot;couponFee&quot;: 0,         &quot;desc&quot;: &quot;3000元以上,加价700&quot;,         &quot;low&quot;: 300000,         &quot;up&quot;: 0     }] }</coupon_rule>
        <credit_pay>true</credit_pay>
        <credit_pay_amount>10000</credit_pay_amount>
        <env>online</env>
        <gmt_create>2018-02-12 11:32:21</gmt_create>
        <idle_pay_type>1</idle_pay_type>
        <order_status>1</order_status>
        <province>浙江省</province>
        <rate_content>交易顺利</rate_content>
        <rate_grade>1 好评,0 默认中评</rate_grade>
        <refund_reason>报价太低</refund_reason>
        <seller_address>浙江省杭州市余杭区969号</seller_address>
        <seller_nick>testSeller123</seller_nick>
        <seller_phone>13399120012</seller_phone>
        <seller_real_name>王小二</seller_real_name>
        <ship_time>2018-02-13 12:12:11</ship_time>
        <ship_type>取件类型 1:顺风 2:上门取件 3:到店</ship_type>
        <sub_channel>subShop01</sub_channel>
        <pay_status>2</pay_status>
        <pay_time>2018-02-13 12:12:11</pay_time>
        <end_time>2018-02-13 12:12:11</end_time>
        <recovery_pay_id>20889123123</recovery_pay_id>
        <recovery_pay_time>2018-02-13 12:12:11</recovery_pay_time>
        <makeup_pay_id>20889123123</makeup_pay_id>
        <makeup_pay_time>2018-02-13 12:12:11</makeup_pay_time>
        <main_pay_id>20889123123</main_pay_id>
        <qa_amount>120</qa_amount>
        <quote_version>0</quote_version>
        <replace_subsidy>true</replace_subsidy>
        <pre_fee>100</pre_fee>
        <inspect_fee>100</inspect_fee>
        <actual_fee>100</actual_fee>
        <subsidy_pay_id>215541123</subsidy_pay_id>
    </module>
    <result>true</result>
</alibaba_idle_recycle_order_get_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

返回
顶部