- App/H5对接流程:
- API开放接口对接流程
- 小程序对接流程v1.1
- 数据推送说明
- 基础信息
- 电影票接口
- 卡券接口
- 点餐接口
下单(自己做产品展示,才需要下单接口)
POST
/api/gift_card/create_order
GiftCard
请求参数
Body 参数application/json
appId
string
必需
giftCardId
string <uuid>
卡券商品id
count
integer <int32>
数量
phone
string | null
可选
remark
string | null
实际充值的账号
entPara
string | null
对接方自定义参数
userId
string <uuid>
不用传
pushUrl
string
可选
示例
{
"appId": "string",
"giftCardId": "9c83b4f5-280c-4968-8797-b9fdb3bd911c",
"count": 0,
"phone": "string",
"remark": "string",
"entPara": "string",
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"pushUrl": "string"
}
返回响应
🟢200Success
application/json
code=96代表对接方预存余额不足,请尽快联系我方对接充值。
Body
code
integer <int32>
code
message
string | null
message
data
object (GiftCardOrderResult)
可选
state
enum<integer> <int32>
可选
0:ReadyToPay,等待支付;
1:Paid,订单已付;
2:ReadyToLock,等待抢单;
3:Locked,正在充值;
4:Success,订单成功;
5:Failed,订单失败;
6:Canceled,订单取消;
7:Refunded,订单退款;
8:NopayCancel,未付取消;
枚举值:
012345678
orderId
string | null
可选
msg
string | null
可选
title
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",
"title": "string",
"totalPrice": 0,
"giftAmount": 0,
"payPrice": 0,
"count": 0,
"orderCustomId": "string",
"createTime": "2019-08-24T14:15:22Z",
"payUrl": "string"
}
}
修改于 2024-09-20 02:30:58