- 首页
- App/H5对接流程:
- API开放接口对接流程
- 小程序对接流程v1.0
- 数据推送说明
- 基础信息
- 电影票接口
- 吃喝玩乐接口
- GroupBuy
- GroupBuyOrder
- 购物接口
- 卡券接口
- 点餐接口
- 礼金接口
下单(自己做产品展示,才需要下单接口)
POST
/api/groupbuy_order/create_order
GroupBuyOrder
请求参数
Body 参数application/json
appId
string
必需
dealerId
string <uuid>
商品的商家id
goodsId
string <uuid>
商品id
skuId
string
商品套餐id
count
integer <int32>
数量
username
string | null
购买用户
phone
string | null
用户电话
recAddress
string | null
可选
idCard
string | null
可选
useDate
string <date-time> | null
可选
note
string | null
备注
userId
string <uuid>
用户id
entPara
string | null
对接方自定义参数
giftAmount
number <double>
礼金
示例
{
"appId": "string",
"dealerId": "9a3886aa-092e-48f1-a601-a186b7552a80",
"goodsId": "c36d38e0-002e-4252-a736-2d46359e3857",
"skuId": "string",
"count": 0,
"username": "string",
"phone": "string",
"recAddress": "string",
"idCard": "string",
"useDate": "2019-08-24T14:15:22Z",
"note": "string",
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"entPara": "string",
"giftAmount": 0
}
返回响应
🟢200Success
application/json
Body
code
integer <int32>
code
message
string | null
message
data
object (GroupBuyOrderResult)
可选
state
integer <int32>
可选
orderId
string | null
可选
msg
string | null
可选
codes
string | null
可选
title
string | null
可选
skuTitle
string | null
可选
totalPrice
number <double>
可选
giftAmount
number <double>
可选
payPrice
number <double>
可选
count
integer <int32>
可选
orderCustomId
string | null
可选
createTime
string <date-time>
可选
payUrl
string | null
可选
示例
{
"code": 0,
"message": "string",
"data": {
"state": 0,
"orderId": "string",
"msg": "string",
"codes": "string",
"title": "string",
"skuTitle": "string",
"totalPrice": 0,
"giftAmount": 0,
"payPrice": 0,
"count": 0,
"orderCustomId": "string",
"createTime": "2019-08-24T14:15:22Z",
"payUrl": "string"
}
}