- 请求格式说明
- 响应格式说明
- 影片管理
- 平台影院管理
- 商城
- 短信管理
- 公共接口
- 电视端API
- 晨星3
- 晨星4
- 1905系统
- 地面1905系统
- 影院信息管理
- 联营影院
- 小程序代码上传
- api接口
- 卡券管理
- 财务订单
- 自营接口
- 影厅设置
- 营销中心
- 凤凰佳影
- 凤凰云智
- 节假日数据
- 自营接口2.0
- 用户管理
- 影院用户管理
- 用户数据
- 平台配置信息管理
- 影院端
添加、编辑团购券
开发中
POST
http://store.xcyxfl.com/cinema/write_off/save-coupon
请求参数
Header 参数
Version
integer
可选
默认值:
1
Body 参数application/json
id
integer
核销券id
coupon_id
string
团购券id
pro_type
integer
项目类型id
coupon_name
string
团购券名称
num
integer
选座数量
movie_id
string
可选
plan_id
string
可选
movie_type
integer
可选
is_holiday
integer
可选
disable_time
array [array]
不适用放映时间
string
时间
usable_time
array [array]
适用场次时间段
string
时间
disable_week
array[integer]
周几不适用
goods
array [object {3}]
卖品信息
id
integer
卖品id
num
integer
卖品数量
name
string
卖品名称
price
number
套餐价格
img
string
套餐图片
category_id
integer
会员卡类id
use_times
integer
次卡可用次数
holiday_price
number
节假日所加价格
add_price_hall
array[integer]
加价影厅id
hall_price
number
影厅所加价格
add_price_movie_type
array[integer]
可选
movie_type_price
number
影片类型所加价格
示例
{
"id": 26,
"coupon_id": "444",
"pro_type": 0,
"coupon_name": "单人观影通兑券",
"movie_id": "0",
"plan_id": "0",
"num": 1,
"consume_limit": "0",
"goods": [
{
"id": 26,
"name": "爆米花",
"num": 2
}
],
"holiday_price": 1,
"add_price_hall": [
1
],
"hall_price": 1,
"add_price_movie_type": [
2
],
"movie_type_price": 1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://store.xcyxfl.com/cinema/write_off/save-coupon' \
--header 'Version: 1' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 26,
"coupon_id": "444",
"pro_type": 0,
"coupon_name": "单人观影通兑券",
"movie_id": "0",
"plan_id": "0",
"num": 1,
"consume_limit": "0",
"goods": [
{
"id": 26,
"name": "爆米花",
"num": 2
}
],
"holiday_price": 1,
"add_price_hall": [
1
],
"hall_price": 1,
"add_price_movie_type": [
2
],
"movie_type_price": 1
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
示例
{
"code": 200,
"message": "success",
"data": {}
}