简要描述:

-归还地址选择

请求域名:

  • http://xx.com

请求URL:

GET/获取地址:&route=plugin.lease-toy.api.retreat.return.index

参数:

参数名 是否必须 类型 说明
order_id int 订单id

返回示例:

正确时返回:

{
    result: 1, 
    msg: "成功", 
    data: {
        lease_order: {
            id: 42, 
            order_id: 742, 
            member_id: 2455, 
            deposit_total: "100.00", 
            return_days: 1, 
            start_time: "2018-07-16 09:39:53", 
            return_time: "2018-07-16 10:12:07", 
            return_deposit: "100.00", 
            order_sn: "SN20180716093927oz", 
            be_damaged: "0.00", 
            be_overdue: "0.00", 
            return_pay_type_id: 3, 
            end_time: "2018-07-17 09:39:53", 
            return_status: 4, 
            explain: "", 
            return_name: "已归还", 
            return_mode: "余额"
        }, 
        return_address: [
            {
                id: 5, 
                uniacid: 6, 
                province_id: 110000, 
                city_id: 110100, 
                district_id: 110102, 
                contact_name: "李一天", 
                mobile: "15812365478", 
                zip_code: "", 
                address: "北京北京市西城区就不告诉你", 
                is_default: 1, 
                created_at: "2018-03-19 09:40:05", 
                deleted_at: null, 
                updated_at: "2018-04-02 10:55:57"
            }, 
            {
                id: 6, 
                uniacid: 6, 
                province_id: 130000, 
                city_id: 130200, 
                district_id: 130202, 
                contact_name: "啊飒飒", 
                mobile: "12345678912", 
                zip_code: "", 
                address: "河北省唐山市路南区比比", 
                is_default: 0, 
                created_at: "2018-03-29 18:17:18", 
                deleted_at: null, 
                updated_at: "2018-04-08 14:14:51"
            }
        ], 
        express_companies: [
            {
                name: "顺丰速运", 
                value: "SF"
            }, 
            {
                name: "百世快递", 
                value: "HTKY"
            }, 
            {
                name: "中通快递", 
                value: "ZTO"
            }, 
            {
                name: "申通快递", 
                value: "STO"
            }, 
            {
                name: "圆通速递", 
                value: "YTO"
            }
        ]
    }
}

错误时返回:

  {
    "result": 0,
    "msg": "获取失败"
  }

return_address 返回参数说明:

参数名 类型 说明
id int 归还地址id
contact_name string 收货人
mobile int 电话
is_default int 是否默认 0:否 1:是
zip_code int 邮编
province_id int 省id
city_id int 市id
district_id int 区id
province string 拼接好的省市区
address string 详细地址

lease_order 参数说明:

参数名 类型 说明
id int 租赁订单id
order_id int 订单id
deposit_total int 待退还押金
return_days int 租赁天数

备注:

  • 更多返回错误代码请看首页的错误代码描述