- 商城
- 账号
- 上传文件
- 购物车
- 收货地址
- 商品
- 分销
- 营销
- 首页
- 订单
- 售后
- 收藏
- 用户
- 评论
- 广告
- 分享
- 菜单
- 消息订阅
- 消息中心
- 足迹气泡
- 短信
- 地区
- pc端接口
拼团下单
POST
/api/team/buy
请求参数
Header 参数
token
string
可选
默认值:
{{token}}
Body 参数application/x-www-form-urlencoded
pay_way
integer
可选
item_id
integer
商品id
goods_num
integer
商品数量
remark
string
用户备注
action
string
可选
address_id
integer
地址id
type
string
可选
order_source
string
可选
use_integral
integer
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/team/buy' \
--header 'token: {{token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
order_type
integer
必需
goods_lists
array [object {55}]
商品列表
coupon_id
string
必需
total_num
string
订单总数量
total_goods_price
integer
订单商品总价
total_amount
integer
订单总金额
order_amount
integer
订单应付金额
address
object
用户地址
discount_amount
integer
订单优惠金额
integral_amount
integer
订单积分优惠金额
shipping_price
integer
订单总运费
remark
string
必需
pay_way
string
必需
user_money
string
用户余额
user_use_integral
integer
必需
user_integral
integer
必需
integral_limit
integer
必需
integral_switch
integer
必需
integral_config
number
必需
team
object
必需
show
integer
必需
time
string
必需
示例
{
"code": 1,
"msg": "",
"data": {
"order_type": 2,
"goods_lists": [
{
"goods_name": "顺丰包邮 12期免息日本PILOT百乐Justus 95钢笔14K金尖FJ-3MR可调书写软硬金笔成人书法练字商务办公送礼盒装",
"id": 10,
"team_id": 1,
"goods_id": 10,
"item_id": 10,
"team_price": "50.00",
"sales_sum": 0,
"del": 0,
"name": "顺丰包邮 12期免息日本PILOT百乐Justus 95钢笔14K金尖FJ-3MR可调书写软硬金笔成人书法练字商务办公送礼盒装",
"code": "656251",
"first_category_id": 1,
"second_category_id": 8,
"third_category_id": 15,
"brand_id": 2,
"supplier_id": 1,
"status": 1,
"image": "",
"remark": "好看",
"content": "",
"sort": 0,
"virtual_sales_sum": 685,
"click_count": 0,
"spec_type": 1,
"max_price": "1680.00",
"min_price": "1680.00",
"market_price": "2400.00",
"stock": 2369,
"stock_warn": 0,
"is_show_stock": 1,
"free_shipping_type": 1,
"free_shipping": "0.00",
"free_shipping_template_id": 0,
"is_commission": 1,
"first_ratio": "",
"second_ratio": "",
"three_ratio": "",
"is_share_bouns": 0,
"region_ratio": null,
"shareholder_ratio": null,
"is_new": 1,
"is_best": 1,
"is_like": 1,
"is_team": 0,
"create_time": 1607586032,
"update_time": 1607586216,
"spec_value_ids": "10",
"spec_value_str": "默认",
"price": "1680.00",
"cost_price": "768.00",
"volume": 2,
"weight": 2,
"bar_code": "36555",
"original_price": "1680.00",
"goods_price": "50.00",
"goods_num": "25"
}
],
"coupon_id": "1",
"total_num": "25",
"total_goods_price": 1250,
"total_amount": 1250,
"order_amount": 1250,
"address": {
"id": 1,
"contact": "测试先生",
"telephone": "13104997825",
"province_id": 110000,
"city_id": 110100,
"district_id": 110101,
"address": "测试小区",
"is_default": 0,
"province": "北京",
"city": "北京市",
"district": "东城区"
},
"discount_amount": 0,
"integral_amount": 0,
"shipping_price": 0,
"remark": "",
"pay_way": "1",
"user_money": "0.00",
"user_use_integral": 0,
"user_integral": 270,
"integral_limit": 1000,
"integral_switch": 1,
"integral_config": 0.01,
"team": {
"joins": [
{
"avatar": "http://www.likeshopv2.localhost/uploads/user/avatar/03f1dece077e0dd9d4053fb6029912a0.jpeg",
"nickname": "Jason",
"is_found": 0
}
],
"notice": "您正在参与2人团"
}
},
"show": 0,
"time": "0.366239"
}