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

订单详情

,URL地址

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

请求方式

get

 参数列表

参数

是否必须

说明

user_id

必选

用户id

id

必选

订单id

token
必须
token

示例

 

{
   "status": 1,
   "msg": "获取成功",
   "result": {
       "order_id": "31",
       "order_sn": "1915",
       "user_id": "1",
       "order_status": "0",
       "shipping_status": "0",
       "pay_status": "1",
       "consignee": "叶先生",
       "country": "0",
       "province": "19",
       "city": "236",
       "district": "2336",
       "address": "通州区旗舰凯旋小区",
       "zipcode": "43r433",
       "mobile": "145345645445",
       "email": "text@ecshop.com",
       "shipping_code": "shunfeng",
       "shipping_name": "顺丰物流",
       "pay_code": "0",
       "pay_name": "",
       "invoice_title": "",    //发票抬头
       "taxpayer":"12121212",    //纳税人识别号
       "goods_price": "1326.00",
       "shipping_price":"100.00",
       "user_money": "10.00",
       "coupon_price": "50.00",
       "integral": "100",
       "integral_money": "1.00",
       "order_amount": "0.00",
       "add_time": "1450278305",
       "confirm_time": "0",
       "pay_time": "1451011470",
       "pay_btn": 1,           //是否显示支付按钮
       "cancel_btn": 1,         //是否显示取消订单按钮
       "receive_btn": 0,        //是否显示确认收货按钮
       "comment_btn": 0,        //是否显示评论按钮
       "shipping_btn": 0,        //是否显示查看物流按钮
       "return_btn": 0,                //显示退货按钮
       "order_prom_id":"0"    //优惠活动ID
       "order_prom_amount":"0"    //优惠活动
       "shipping_time": "0",
       "invoice_no": "",
       "pay_note": "",
       "discount": "0.00",
       "is_cod": "0",
       "goods_list": [],
       "total_fee": 1375,
       "order_goods":[
      {
        "rec_id":897,
        "order_id":869,
        "goods_id":180,
        "goods_name":"11111",
        "goods_sn":"TP0000180",
        "goods_num":1,
        "final_price":"100.00",
        "goods_price":"100.00",
        "cost_price":"0.00",
        "member_goods_price":"100.00",
        "give_integral":0,
        "spec_key":"",
        "spec_key_name":"",
        "bar_code":"",
        "is_comment":0,
        "prom_type":0,
        "prom_id":0,
        "is_send":3,
        "delivery_id":77,
        "sku":"",
        "store_id":1,
        "commission":0,
        "is_checkout":0,
        "deleted":0,
        "distribut":"0.00",
        "shop_id":0,
        "item_id":0,
        "return_id":32   //退款详情ID
      },
      {
        "rec_id":898,
        "order_id":869,
        "goods_id":183,
        "goods_name":"冰蚕软甲",
        "goods_sn":"TP0000183",
        "goods_num":1,
        "final_price":"99.00",
        "goods_price":"99.00",
        "cost_price":"50.00",
        "member_goods_price":"99.00",
        "give_integral":0,
        "spec_key":"",
        "spec_key_name":"",
        "bar_code":"",
        "is_comment":0,
        "prom_type":0,
        "prom_id":0,
        "is_send":3,
        "delivery_id":77,
        "sku":"",
        "store_id":1,
        "commission":0,
        "is_checkout":0,
        "deleted":0,
        "distribut":"9.90",
        "shop_id":0,
        "item_id":0,
        "return_id":33    //退款详情ID
      }
    ],
       "vrorder": [ //虚拟订单的兑换码
          {
            "vr_state": 0, //兑换码状态:0:(默认)未使用1:已使用2:已过期
            "vr_code": "492001206926005",//兑换码
            "vr_indate": 1509379200, //过期时间
            "vr_usetime": null //使用时间
          },
          ...
       ],
    }
}

查看表结构