购物车

API - 获取购物车信息

描述:获取购物车信息

请求方式:GET

请求地址:v1/cart

版本:v1

内部API调用方法名:Cart_cartPage

请求参数

参数类型验证规则最大长度描述示例
   position array[] 购物车商品位置信息:0开始的自然数,如0,1,2 position[]:0 position[]:1

返回参数

参数类型验证规则最大长度描述示例
  _currency array[] - 货币信息
         Lid int - 货币ID 1
         Lcode string - 货币代码 CNY
         Lprefix string - 货币前缀
         Lsuffix string - 货币后缀
   total_price price - 总价 1002.00
   saleproducts price - 折扣后价格(仅拥有折扣返回) 1002.00
   default_gateway string - 默认支付方式 WxPay
  _gateway_list array[] - 支持的支付方式 { "name": "WxPay", "title": "微信支付", "url": "upload/pay/WxPay.png", "author_url": "data:image/png;base64,iVBORw0KGgoA……" }
         Lid int - 支付方式ID 1
         Lname string - 支付方式标识 WxPay
         Ltitle string - 支付方式名称 微信支付
         Lurl string - 支付方式图标:资源地址(已舍弃) upload/pay/WxPay.png
         Lauthor_url base64 - 支付方式图标:base64数据 data:image/png;base64,iVBORw0KGgoA……
  _cart_products array[] - 购物车商品数据 { "productid": "379", "productsname": "升降级8001", "api_type": "normal", "groupn": { "id": 1, "groupname": "云服务器", "fa_icon": "el-icon-menu", "order": 0, "hostid": 0 }, "pay_ontrial_cycle": "10", "pay_ontrial_cycle_type": "day", "product_type": "dcimcloud", "host_show": "0", "password_show": "0", "is_truename": 0, "host": "ser422497445528", "password": "daLSEOK4wUIR", "allow_qty": 0, "os_name": "", "billingcycle": "monthly", "qty": 1, "billingcycle_desc": "月", "product_base_sale": "1000.00", "product_base_sale_setupfee": 0, "product_pricing": "1002.00", "product_sale": "600.000", "pricing": "601.00", "setup_pricing": "0.00", "product_sale_setupfee": 0, "type": { "type": 1, "bates": 6 }, "_sale_price": "601.20", "saleproducts": "400.80" }
         Lproductid int - 商品ID 379
         Lproductsname string - 商品名称 升降级8001
         Lpay_ontrial_cycle int - 商品试用周期 10
         Lpay_ontrial_cycle_type string - 商品试用类型:day天,hour小时 10
         Lhost string - 主机 ser422497445528
         Lpassword string - 密码 daLSEOK4wUIR
         Lallow_qty int - 是否允许购买多个 1
         Lbillingcycle string - 周期 monthly
         Lqty int - 购买数量 1
         Lproduct_pricing price - 单个商品价格 1002.00
         Lsetup_pricing price - 初装费 1002.00
         Lsaleproducts price - 折扣 400.80
   L_type array[] - 折扣类型:1百分比,2固定金额(当有折扣才返回) { "type": 1, "bates": 6 }
            Ltype int - 折扣类型:1百分比,2固定金额 1
            Lbates float - 折扣 6
  _promo array[] - 优惠码,应用优惠码成功后有此字段 { "promo": "1YMLbk64", "promo_desc": "百分比 6折终身", "promo_desc_str": "1YMLbk64 折扣: 6折 终身", "promo_price": "652.48", "promo_price_str": "-¥652.48元" }
         Lpromo string - 优惠码 1YMLbk64
         Lpromo_desc string - 优惠码描述 百分比 6折终身
         Lpromo_price string - 优惠码优惠价格 652.48
  _client array[] - 客户信息(登录后返回此字段) { "credit": "6001.10", "credit_limit": "2000.00", "is_open_credit_limit": 1, }
         Lusername string - 姓名 test
         Lemail string - 邮箱 test@qq.com
         Laddress1 string - 地址 重庆市
         Lphonenumber string - 手机号码 12345678910
         Lcredit price - 余额 1000.00
         Lcredit_limit_balance price - 信用额(客户剩余信用额) 2000.00
         Lis_open_credit_limit int - 是否开启信用额:1是,0否 1