获取订单列表
URL地址 | http://www.tpshop.com/index.php?m=Api&c=User&a=getOrderList |
请求方式 | get |
参数列表
参数 | 是否必须 | 说明 |
user_id | 必选 | 用户id |
type | 可选 | 订单类型(见下方说明) |
| token | 必须 | token |
示例
{
"status":1,
"msg":"获取成功",
"result":[
{
"order_id":457,
"order_sn":"201709071527035107",
"master_order_sn":"",
"user_id":58,
"order_status":0,
"shipping_status":0,
"pay_status":0,
"consignee":"mkv",
"country":0,
"province":0,
"city":0,
"district":0,
"twon":0,
"address":"",
"zipcode":"",
"mobile":"13137460131",
"email":"",
"shipping_code":"",
"shipping_name":"",
"pay_code":"",
"pay_name":"",
"invoice_title":"",
"goods_price":"400.00",
"shipping_price":"0.00",
"user_money":"0.00",
"coupon_price":"0.00",
"integral":0,
"integral_money":"0.00",
"order_amount":"400.00",
"total_amount":"400.00",
"add_time":1504769223,
"confirm_time":0,
"pay_time":0,
"transaction_id":null,
"shipping_time":1517328000,
"order_prom_id":0,
"order_prom_type":5,
"order_prom_amount":"0.00",
"discount":"0.00",
"user_note":"无备注",
"admin_note":"",
"parent_sn":null,
"store_id":1,
"is_comment":0,
"deleted":0,
"order_statis_id":0,
"order_status_detail":"待支付",
"order_button":{
"pay_btn":1,
"cancel_btn":1,
"receive_btn":0,
"comment_btn":0,
"shipping_btn":0,
"return_btn":0
},
"order_goods":[
{
"rec_id":593,
"order_id":457,
"goods_id":167,
"goods_name":"骏网一卡通1000元卡密骏网接口卡",
"goods_sn":"TP01291029102",
"goods_num":1,
"market_price":"400.00",
"goods_price":"400.00",
"cost_price":"350.00",
"member_goods_price":"400.00",
"give_integral":0,
"spec_key":"177",
"spec_key_name":"面值:银卡",
"bar_code":"",
"is_comment":0,
"prom_type":0,
"prom_id":0,
"is_send":0,
"delivery_id":0,
"sku":"TP01291029102",
"store_id":1,
"commission":10,
"is_checkout":0,
"deleted":0,
"distribut":"0.00"
}
],
"store":{
"store_id":1,
"store_name":"TPSHP旗舰店",
"store_qq":"1273276548",
"store_phone":"0755-86140794",
"store_logo":"/public/upload/ad/2016/09-19/57dfb3549027a.jpg",
"store_avatar":null,
"qitian":0,
"store_free_price":"0.00"
}
}
}状态值
type参数值 WAITPAY => 待支付 WAITSEND => 待发货 WAITRECEIVE => 待收货 WAITCCOMMENT => 待评价 COMMENTED => 已评价 RETURNED => 已退货 不传递该参数默认查询所有订单数据
