兑换

基本信息

  • 接口状态:已完成
  • 接口URL:POST /api/shopintegral/goods/buy
  • Content-Type:application/json
  • 认证方式:token认证

请求参数

{
  "goodsList":[{"id":41,"catalog_id":[1129,1187],"title":"Upany悠伴智能无烟无油可视空气炸锅 4L 雾霭蓝","unit":"件","video_type":0,"video":"","images":[{"title":"1.png","type":"image","size":"318308","url":"/upload/image/20230310/0fb95c0b9a17ce98ad0199afe7af651c.png","status":1,"theme":"onekeyadmin","create_time":"2023-03-10 14:31:32","id":"1333","cover":"/upload/image/20230310/0fb95c0b9a17ce98ad0199afe7af651c100x100.png","rename":false,"ctitle":"1.png","check":true}],"shipping_delivery":[0,1],"shipping_type":0,"shipping_fee":"0.00","shipping_template_id":0,"spec_type":0,"code":"","price":"299.00","original_price":"359.00","cost_price":"289.00","stock":40,"weight":"0.00","volume":"0.00","user_discount":1,"content":"<p><img src=\"https://demo26.crmeb.net/uploads/attach/2021/11/20211115/8f1bb86470d4bb3915e5c8001a665d44.jpg\" /><img src=\"https://demo26.crmeb.net/uploads/attach/2021/11/20211115/ca093b8384490ddd2045da8c9b921b58.jpg\" /><img src=\"https://demo26.crmeb.net/uploads/attach/2021/11/20211115/73507223dee1596b84d1a7c6b6032e8c.jpeg\" /><img src=\"https://demo26.crmeb.net/uploads/attach/2021/11/20211115/f77c2fd2cbd2602592bc8fbf0f9e1122.jpg\" /><img src=\"https://demo26.crmeb.net/uploads/attach/2021/11/20211115/e201520b63ff05932dc8fec8fc78e4a0.jpg\" /><img src=\"https://demo26.crmeb.net/uploads/attach/2021/11/20211115/d0bbf0282655af34b7b0cfcada0d8077.jpg\" /></p>","integral_exchange_type":0,"integral_exchange_number":0,"integral_give":0,"max_buy":0,"min_buy":1,"sales":4,"evaluates":0,"shares":0,"clicks":10,"star":"5.0","seo_url":"","seo_title":"Upany悠伴智能无烟无油可视空气炸锅 4L 雾霭蓝","seo_keywords":"Upany悠伴智能无烟无油可视空气炸锅 4L 雾霭蓝","seo_description":"","top":0,"recommend":1,"hot":1,"new":1,"promotion":1,"sort":0,"presale_type":0,"presale_shipping_day":1,"statr_presale_time":0,"end_presale_time":0,"create_time":"2023-03-10 14:31","update_time":"2023-03-10 14:31","sale_time":"2023-03-10 14:31","type":0,"status":1,"delete":0,"collect":0,"activity":[{"title":"参与秒杀","id":9,"url":"shop/seckill/detail"},{"title":"参与砍价","id":10,"url":"shop/bargain/detail"}],"spec":[],"sku":[],"cover":"/upload/image/20230310/0fb95c0b9a17ce98ad0199afe7af651c.png","chooseSku":[],"number":1}],
  "token":"$2y$12$JCI11AA3vFRoIOT9s4xH2u1MLKtnYiUQ51xZr2uayNvrNwuDakWYK"
}
参数名 参数值 是否必填 参数类型  描述说明
goodsList [] Array 商品信息,兼容购物车里的结算
token   String 用户token

响应示例

{
  "status":"success",
  "message":"兑换成功",
  "data":"20230316145921cWsQ84"
}
参数名 参数值 参数类型  描述说明
status
success String 状态
message
获取成功
String
描述
data 20230316145921cWsQ84 String 订单号

 

文档最后更新时间:2023-03-17 11:26:01