QQ登录 账号密码登陆 官网首页

获取订单列表

URL地址

http://www.tpshop.com/index.php?m=Api&c=order&a=order_list

请求方式

get

 参数列表

参数

是否必须

说明

user_id

必选

用户id

type

可选

订单类型(见下方说明)

token
必须
token

示例

{
   "status": 1,
   "msg": "获取成功",
   "result": [
       {
           "order_id": "34",
           "order_sn": "201512241239429695",
           "user_id": "1",
           "order_status": "3",
           "shipping_status": "0",
           "pay_status": "0",
           "consignee": "sasa",
           "country": "0",
           "province": "3",
           "city": "41",
           "district": "457",
           "address": "sasa",
           "zipcode": "sasa",
           "mobile": "13800138000",
           "email": "zuanshi@ecshop.com",
           "shipping_code": "shunfeng",
           "shipping_name": "顺丰物流",
           "pay_code": "0",
           "pay_name": "",
           "invoice_title": "",
           "goods_price": "68.00",
           "shipping_price": "10.00",
           "user_money": "0.00",
           "coupon_price": "0.00",
           "integral": "0",
           "integral_money": "0.00",
           "order_amount": "68.00",
           "add_time": "1450931982",
           "confirm_time": "0",
           "pay_time": "0",
            "order_prom_id":"0"        //活动ID编号
            "order_prom_amount":"0.00" //活动优惠
           "shipping_time": "0",
           "invoice_no": "",
           "pay_note": "",
           "discount": "0.00",
           "is_cod": "0",
           "total_fee": 0,
           "pay_btn": 1,           //是否显示支付按钮
           "cancel_btn": 1,         //是否显示取消订单按钮
           "receive_btn": 0,        //是否显示确认收货按钮
           "comment_btn": 0,        //是否显示评论按钮
           "shipping_btn": 0,        //是否显示查看物流按钮
           "return_btn": 0,                //显示退货按钮
           "goods_list": [
                {
                    "order_id":"34",  //订单id
                    "goods_id":"3",   //商品id
                    "goods_name":"诺基亚原装5800耳机",
                    "goods_sn":"ECS000002", 
                    "goods_num":"1",  //购买数量
                    "market_price":"81.60", 
                    "goods_price":"68.00",
                    "spec_key":"",
                    "spec_key_name":"",
                    "bar_code":"",
                    "is_comment":"0",
                    "original_img":"/Public/upload/banner/2015/10-29/5632094b6ddcd.png"
                }
           ]
       }
    ]
}

状态值

type参数值
WAITPAY => 待支付
WAITSEND => 待发货  
WAITRECEIVE => 待收货 
WAITCCOMMENT =>  待评价 
COMMENTED =>  已评价 
RETURNED =>  已退货
不传递该参数默认查询所有订单数据

查看表结构