- App/H5对接流程:
- API开放接口对接流程
- 小程序对接流程v1.1
- 数据推送说明
- 基础信息
- 电影票接口
- 卡券接口
- 点餐接口
创建订单
POST
/api/movie/create_order2
Movie
注:如果一个订单有不同区域的两个座位,票的价格可能一高一低,因为我们处理跨区座位订单的规则是使用(最高座位价*座位数量)来计算用户总价。
一般我们不建议对接方提交跨区座位订单,这种单出票失败的几率会比较大,所以建议一个订单要购买多个座位的情况,要让订单中的座位都在一个区域,
不同的区域请分开下单。
请求参数
Body 参数application/json
渠道下单
appId
string
必需
orderId
string | null
可选
cinemaCode
string
影院编码
movieCode
string | null
影片编码
cityName
string | null
城市名称
cinemaName
string | null
影院名称
hallName
string
影厅名称
movieName
string | null
影片名称
postImageUrl
string | null
影片海报图
seatNames
string
必需
switchSeat
boolean
是否可调座
cinemaAddress
string | null
影院地址
sessionBeginTime
string <date-time>
开场时间
sessionEndTime
string <date-time> | null
结束时间
movieVersion
string | null
可选
userMobile
string | null
用户手机号
originPrice
number <double>
必需
orderPayMode
enum<integer> <int32>
可选
1:PayLater,先下单再支付(在下单时必须指定支付方式状态为固定值 “1”。请严格按照此要求填写,若填写除 “1” 以外的其他数字,由此产生的一切后果需自行承担);
枚举值:
1
fastTicket
boolean
可选
test
boolean
可选
pushUrl
string
可选
示例
{
"appId": "string",
"orderId": "string",
"cinemaCode": "string",
"movieCode": "string",
"cityName": "string",
"cinemaName": "string",
"hallName": "string",
"movieName": "string",
"postImageUrl": "string",
"seatNames": "string",
"switchSeat": true,
"cinemaAddress": "string",
"sessionBeginTime": "2019-08-24T14:15:22Z",
"sessionEndTime": "2019-08-24T14:15:22Z",
"movieVersion": "string",
"userMobile": "string",
"originPrice": 0,
"orderPayMode": 1,
"fastTicket": true,
"test": true,
"pushUrl": "string"
}
返回响应
🟢200Success
application/json
code=96代表对接方预存余额不足,请尽快联系我方对接充值。系统会显示提示信息message=“系统升级中,请稍后再试”,此提示用于隐藏具体原因,以免用户直接看到余额不足的状态;请尽快联系我方对接人员充值,以确保服务恢复正常。
Body
code
integer <int32>
code
message
string | null
message
data
object (ChannelTicketOrderResult)
可选
orderId
string | null
平台订单号
示例
{
"code": 0,
"message": "string",
"data": {
"orderId": "string"
}
}
修改于 2024-11-22 05:32:38