订单结算信息

简要描述
  • 获取订单结算信息
请求url
  • https://www.商城域名.com/index.php?s=/api/bargain.checkout/order
请求方式
  • GET
是否需授权登录
请求header
参数名 类型 是否必须 示例值 说明
storeId int 必填 10001 商城ID
platform string 必填 H5 当前请求的客户端(APP、小程序、H5等)
Access-Token string 选填 - 当前登录用户的 Token
请求参数
参数名 类型 是否必须 示例值 说明
mode string 必填 bargain 结算模式(bargain砍价活动)
delivery int 必填 10 配送方式(10快递配送 20上门自提)
shopId int 必填 0 自提门店ID
couponId int 必填 0 优惠券ID
isUsePoints int 必填 0 是否使用积分抵扣(1使用 0不使用)
taskId int 必填 10026 砍价任务ID
返回示例
{
  "status": 200,
  "message": "success",
  "data": {
    "order": {
      "goodsList": [
        {
          "goods_id": 10018,
          "goods_name": "简约风条纹客厅沙发卧室床头抱枕靠垫套",
          "goods_no": "",
          "video_id": 0,
          "video_cover_id": 0,
          "selling_point": "",
          "spec_type": 10,
          "goods_price_min": "48.90",
          "goods_price_max": "48.90",
          "line_price_min": "129.00",
          "line_price_max": "129.00",
          "stock_total": 80003,
          "delivery_id": 10001,
          "is_points_gift": 1,
          "is_points_discount": 1,
          "is_alone_points_discount": 0,
          "points_discount_config": "",
          "is_enable_grade": 1,
          "is_alone_grade": 0,
          "alone_grade_equity": [],
          "status": 10,
          "is_ind_dealer": 0,
          "dealer_money_type": 10,
          "first_money": "0.00",
          "second_money": "0.00",
          "third_money": "0.00",
          "goods_image": "http://static.yoshop.xany6.com/10001/20210316/41cdb778199f99ebebb6090680f382fc.png",
          "goods_sales": 160,
          "is_user_grade": false,
          "skuInfo": {
            "id": 10662,
            "goods_sku_id": "0",
            "goods_id": 10018,
            "image_id": 0,
            "goods_sku_no": "",
            "goods_price": "49.90",
            "line_price": "129.00",
            "stock_num": 80003,
            "goods_weight": 0.8,
            "goods_props": null,
            "spec_value_ids": null,
            "store_id": 10001,
            "create_time": "2022-02-28 14:34:39",
            "update_time": "2022-02-28 14:34:39"
          },
          "goods_price": "39.22",
          "total_num": 1,
          "goods_sku_id": "0",
          "total_price": "39.22",
          "grade_ratio": 0,
          "grade_goods_price": 0,
          "grade_total_money": 0,
          "coupon_money": 0,
          "max_points_num": 0,
          "pointsNum": 0,
          "points_money": 0,
          "total_pay_price": "39.22",
          "expressPrice": 0,
          "points_bonus": "1"
        }
      ],
      "orderTotalNum": 1,
      "couponList": [],
      "hasError": false,
      "errorMsg": "",
      "delivery": 10,
      "address": {
        "address_id": 10052,
        "name": "test",
        "phone": "13212341234",
        "province_id": 1,
        "city_id": 2,
        "region_id": 3,
        "detail": "125125",
        "user_id": 10125,
        "region": {
          "province": "北京",
          "city": "北京市",
          "region": "东城区"
        }
      },
      "existAddress": true,
      "expressPrice": "0.00",
      "isIntraRegion": true,
      "extractShop": [],
      "isAllowPoints": false,
      "isUsePoints": "0",
      "pointsMoney": 0,
      "pointsBonus": 1,
      "lastExtract": {
        "linkman": "陈锋",
        "phone": "13212341234"
      },
      "orderTotalPrice": "39.22",
      "couponId": 0,
      "couponMoney": 0,
      "orderPrice": "39.22",
      "orderPayPrice": "39.22"
    },
    "personal": {
      "user_id": 10125,
      "balance": "91560.22",
      "points": 64,
      "address_id": 10052
    },
    "setting": {
      "deliveryType": [
        10,
        20
      ],
      "points_name": "积分",
      "points_describe": "a) 积分不可兑现、不可转让,仅可在本平台使用;\nb) 您在本平台参加特定活动也可使用积分,详细使用规则以具体活动时的规则为准;\nc) 积分的数值精确到个位(小数点后全部舍弃,不进行四舍五入)\nd) 买家在完成该笔交易(订单状态为“已签收”)后才能得到此笔交易的相应积分,如购买商品参加店铺其他优惠,则优惠的金额部分不享受积分获取;"
    }
  }
}
返回参数
参数名 类型 示例值 说明
status int 200 请求状态(200:请求成功;500:请求错误/失败)
message string success 请求结果的信息,默认为 success
data object - 返回的业务数据
data 参数
参数名 类型 示例值 说明
order object - 订单信息;可参考 “订单结算信息” API