购物车下单

简要描述
  • 购物车下单
请求URL
  • http://101.34.87.143:8083/wx/cart/checkout?cartId=0&addressId=0&couponId=0&userCouponId=0&grouponRulesId=0
请求方式
  • GET
参数

返回示例
 {
  "errno": 0,
  "data": {
    "grouponRulesId": 0,
    "actualPrice": 87,
    "orderTotalPrice": 87,
    "cartId": 0,
    "userCouponId": 0,
    "couponId": 0,
    "goodsTotalPrice": 79,
    "addressId": 17,
    "grouponPrice": 0,
    "checkedAddress": {
      "id": 17,
      "name": "小程",
      "userId": 1,
      "province": "天津市",
      "city": "市辖区",
      "county": "和平区",
      "addressDetail": "而非",
      "areaCode": "120101",
      "tel": "18693652561",
      "isDefault": true,
      "addTime": "2021-10-04 11:32:47",
      "updateTime": "2021-10-04 11:32:47",
      "deleted": false
    },
    "couponPrice": 0,
    "availableCouponLength": 0,
    "freightPrice": 8,
    "checkedGoodsList": [
      {
        "id": 169,
        "userId": 1,
        "goodsId": 1057036,
        "goodsSn": "1057036",
        "goodsName": "日式纯色水洗亚麻抱枕",
        "productId": 71,
        "price": 79,
        "number": 1,
        "specifications": [
          "标准"
        ],
        "checked": true,
        "picUrl": "http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png",
        "addTime": "2021-10-07 20:51:46",
        "updateTime": "2021-10-07 20:51:46",
        "deleted": false
      }
    ]
  },
  "errmsg": "成功"
}
返回参数说明
参数 类型 描述
errno number
- data object
grouponRulesId number
actualPrice number
orderTotalPrice number
cartId number
userCouponId number
couponId number
goodsTotalPrice number
addressId number
grouponPrice number
- - checkedAddress object
id number
name string
userId number
province string
city string
county string
addressDetail string
areaCode string
tel string
isDefault boolean
addTime string
updateTime string
deleted boolean
couponPrice number
availableCouponLength number
freightPrice number
- - checkedGoodsList object
id number
userId number
goodsId number
goodsSn string
goodsName string
productId number
price number
number number
- - - specifications object
0 string
1 string
checked boolean
picUrl string
addTime string
updateTime string
deleted boolean
errmsg string
备注
  • 更多返回错误代码请看首页的错误代码描述