Skip to content

配送单打印接口

配送单打印接口

字段可选

M:must 必填
O:optional 选填
C: conditional 某些条件下必选

打印订单

接口名
    /station/transport/get_order_by_id_new
Method
    GET
请求
    ids     M   list    订单号
响应
    code    M   int     返回码,0表示成功,其他表示错误
    msg     M   string  错误信息
    data    M   string  返回订单数据

    [{
        "abnormals": [{ O   list    异常信息
            "type_text" M   string  异常原因文案
            "money_delta"   M   float   异常金额
            "detail_id" M   string  异常商品ID,非商品异常为"0"
            "text"  M   string  描述
            "amount_delta"  M   float   异常数量
        }],
        "address"   M   string  商户地址
        "receive_begin_time"    M   datetime    收货开始时间
        "freight"   M   float   运费
        "sort_id"   M   int 分拣序号
        "sales_name"    M   string  销售经理名
        "resname"   M   string  商户名
        "child_sort_id" M   int 子分拣号
        "sid"   M   string  商户ID
        "source_origin_id"  M   string  原始单号
        "receive_end_time"  M   datetime    收货截止时间
        "address_sign_id"   M   long    地理标签ID
        "receiver_name" M   string  收货人名
        "total_price"   M   float   下单金额
        "refunds": [{   O   list    退货信息
            "type_text" M   string  退货原因文案
            "money_delta"   M   float   异常金额
            "detail_id" M   string  商品ID
            "text"  M   string  退货描述
            "amount_delta"  M   string    退货数量
        }],
        "origin_customer": {    O   dict    原始订单的客户信息,只有LK和PL一一对应的时候才有
            "uid"   M   int 原始订单客户ID
            "origin_resname"    M   string  原始订单商户名
            "origin_receiver_phone" M string    原始订单收货人
            "address"   M   string  原始订单商户地址
            "extender"  M   json    商户名付款方式等
            "address_sign_id"   M   long    原始订单商户地理标签ID
            "address_sign"  M   string  地理标签名
            "origin_area": {    M   dict    地理标签信息()(这里的字段怎么这么混乱。。。)
                "name"  M   string  二级地理标签名
                "level" M   int     地理标签级别,理论上肯定是2
                "id"    M   long    地理标签ID
                "line_no": 32,
                "first_name"    M   string  一级地理标签名
                "upstream_id"   M   string  一级地理标签ID
            },
            "origin_address"    M   string  原始订单商户地址
            "receive_end_time"  M   datetime    收货截止时间
            "address_id"    M   int 原始订单商户ID
            "receiver_name" M   string  原始订单收货人名
            "receive_begin_time"    M   datetime    收货截止时间
            "resname"   M   string  原始订单商户名
            "origin_order_id"   M   string  原始订单号
            "origin_receiver_name"  同receiver_name,不知道为什么要弄俩
            "receiver_phone"    M   string  收货人电话
        },
        "id"    M   string  订单号
        "prev_abnormals": { O   dict    上一单的异常信息
            "abnormal_list": [{ M   list    异常列表
                "name"  M   string  异常原因
                "money_delta"   M   float   异常金额
                "description"   M   string  异常描述
            }],
            "abnormal_money"    M   float   总的异常金额
            "order_id"  M   string  订单ID
            "total_pay" M   float   应付金额
            "total_price"   M   float   下单金额
        },
        "address_sign"  M   string  地理标签名
        "real_price"    M   float   出库价格
        "date_time" M   datetime    下单时间
        "details": [{   M   list    商品明细
            "name"  M   string  商品名
            "union_dispatch"    M   bool    是否统配
            "std_sale_price"    M   float   标准售卖价格
            "sale_unit_name"    M   string  标准售卖单位
            "real_weight"   M   float   出库重量
            "category_title_1"  M   string  一级商品分类
            "id"    M   string  商品ID
            "salemenu_id"   M   string  销售单ID
            "sale_price"    M   float   销售价格
            "specs" M   string  额外信息
            "std_unit_name" M   string  标准售卖单位
            "quantity"  M   float   下单数
            "total_item_price"  M   float   下单价格
            "real_item_price"   M   float   出库价格
            "purchase_station_id"   M   string  站点ID
        }],
        "total_pay" M   float   应付金额
        "refund_money"  M   float   退货金额
        "abnormal_money"    M   float   异常金额
        "receiver_phone"    M   string  收货人电话
    }]