- 请求格式说明
- 响应格式说明
- 影片管理
- 平台影院管理
- 商城
- 短信管理
- 公共接口
- 电视端API
- 晨星3
- 晨星4
- 1905系统
- 地面1905系统
- 影院信息管理
- 联营影院
- 小程序代码上传
- api接口
- 卡券管理
- 财务订单
- 自营接口
- 影厅设置
- 营销中心
- 凤凰佳影
- 凤凰云智
- 节假日数据
- 自营接口2.0
- 用户管理
- 影院用户管理
- 用户数据
- 平台配置信息管理
- 影院端
添加商品卡卷
开发中
POST
http://store.xcyxfl.com/cinema/goods/add-coupon
责任人:唐得才
请求参数
Header 参数
Version
integer
可选
默认值:
1
Body 参数application/json
name
string
券包名称
merchant
integer
商家id
price
number
价格
logo
string
封面图片
introduce
string
购买须知
tag
integer
标签id
sort
integer
排序
close_time
string
下架时间
gift
array [object {3}]
可选
gift_type
integer
必需
gift_id
integer
赠品id
num
integer
赠品数量
discount_type
integer
必需
discount_value
array [object {3}]
自定义会员折扣信息
id
integer
会员卡id
discount
integer
折扣值
name
string
会员卡类型名称
limit_buy
integer
必需
gift_coupon_status
integer
必需
coupon
array [object {2}]
券包组合
id
integer
优惠券id
num
integer
优惠券数量
示例
{
"name": "测试卡券",
"merchant": 14,
"price": 43,
"sort": 47,
"tag": 2,
"introduce": "Duis nisi quis",
"logo": "Lorem aliquip",
"discount_type": 23,
"gift_coupon_status": 2,
"coupon": [
{
"id": "69",
"num": "78"
}
],
"discount_value": [
{
"id": 40,
"discount": 39
},
{
"id": 60,
"discount": 36
}
],
"close_time": "2011-01-24"
}
示例代码
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/goods/add-coupon' \
--header 'Version: 1' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "测试卡券",
"merchant": 14,
"price": 43,
"sort": 47,
"tag": 2,
"introduce": "Duis nisi quis",
"logo": "Lorem aliquip",
"discount_type": 23,
"gift_coupon_status": 2,
"coupon": [
{
"id": "69",
"num": "78"
}
],
"discount_value": [
{
"id": 40,
"discount": 39
},
{
"id": 60,
"discount": 36
}
],
"close_time": "2011-01-24"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
示例
{"code":200,"message":"success","data":{}}