文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
获取运单编辑表单数据
更新时间:2018-06-13 16:53:17   更新人员:叶洋   文档状态:完成 #341    测试接口
摘要
运单编辑时的表单数据比较特殊,可用此接口直接取得数据结构用于表单编辑。
  1. 接口基本信息
    接口名称:获取编辑运单表单数据
    请求方法:GET
    接口地址:waybill/:waybill_id/edit
    登录验证:是
  2. 路由参数
    参数名 参数 数据类型 是否必须 示例值 说明
    waybill_id 运单id string
  3. 请求示例
    请求例子:
     
    apirq('waybill/:waybill_id/edit', {
        data: {
            "waybill_id": "5b179f7501076844"
        },
        urlparams: [
            "waybill_id"
        ]
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1528345155",
        "data": {
            "waybill_id": "5b179f7501076844",
            "waybill_no": "A10011",
            "is_preset_waybill": 0,
            "shipper_id": "5b179f7501704559",
            "consignee_id": "5b179f7501069001",
            "start_net_id": "2c4da2ba57bcfcf6",
            "end_net_id": "c97bea48dc2af334",
            "send_time": "2018-06-05 00:00:00",
            "arrive_date": "2018-06-22 00:00:00",
            "payment_method": 101,
            "delivery_method": 1,
            "need_receipt_copies": 0,
            "total_weight": 58,
            "total_volume": 9,
            "badge": "",
            "need_insure": 0,
            "lineids": "e756e30f22ed34ee",
            "has_outsourcing_bill": 0,
            "third_waybill_no": "",
            "remark": "",
            "shipper": {
                "client_id": "5b179f7501704559",
                "province_id": "37491",
                "city_id": "37917",
                "district_id": "37983",
                "lng": "103.575248",
                "lat": "30.974482",
                "name": "王小烟",
                "phone": "13722567786",
                "reserve_phone": "",
                "address": "四川省成都市都江堰市玉堂镇苏家山"
            },
            "consignee": {
                "client_id": "5b179f7501069001",
                "province_id": "37491",
                "city_id": "37917",
                "district_id": "38320",
                "lng": "104.149363",
                "lat": "30.817605",
                "name": "洛天依",
                "phone": "13955321145",
                "reserve_phone": "",
                "address": "四川省成都市新都区新都镇邮电小区邮电小区(电子路)"
            },
            "fee": {
                "waybill_id": "5b179f7501076844",
                "carriage_fee_inp": "300.00",
                "pickup_fee": "20.00",
                "cfs_fee": "15.00",
                "forklift_fee": "18.00",
                "intro_fee": "5.00",
                "deliver_fee": "8.00",
                "insure_fee": "0.00",
                "insure_fee_inp": "4.00",
                "agencyfund_fee": "0.00"
            },
            "start_net": {
                "net_id": "2c4da2ba57bcfcf6",
                "code": "N33664",
                "com_id": "35bd69f599698d1f",
                "province_id": "37491",
                "city_id": "37917",
                "district_id": "37983",
                "lng": "103.640746",
                "lat": "30.978321",
                "name": "壹川都江堰点",
                "english_name": "Dujiangyan point of one Sichuan Province",
                "address": "四川省成都市都江堰市幸福镇彩虹二苑流虹苑",
                "contacts": "江民枫",
                "mobile": "13466214478"
            },
            "end_net": {
                "net_id": "c97bea48dc2af334",
                "code": "N61685",
                "com_id": "35bd69f599698d1f",
                "province_id": "37491",
                "city_id": "37917",
                "district_id": "38320",
                "lng": "104.141566",
                "lat": "30.791908",
                "name": "壹川新都点",
                "english_name": "Xindu new capital",
                "address": "四川省成都市新都区新都镇物流大道30号传化国际新城",
                "contacts": "都先生",
                "mobile": "13541226655"
            },
            "cargos": [
                {
                    "cargo_id": "5b179f7501591766",
                    "waybill_id": "5b179f7501076844",
                    "name": "桌子",
                    "num": "1",
                    "packing": "2",
                    "weight": "22.000",
                    "volume": "5.000",
                    "cost": "0.0000",
                    "rates": "0.001",
                    "premium": "1.0000"
                },
                {
                    "cargo_id": "5b179f7501813171",
                    "waybill_id": "5b179f7501076844",
                    "name": "衣柜",
                    "num": "1",
                    "packing": "2",
                    "weight": "36.000",
                    "volume": "4.000",
                    "cost": "0.0000",
                    "rates": "0.001",
                    "premium": "1.0000"
                }
            ]
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员