- 请求格式说明
- 响应格式说明
- 影片管理
- 平台影院管理
- 商城
- 短信管理
- 公共接口
- 电视端API
- 晨星3
- 晨星4
- 1905系统
- 地面1905系统
- 影院信息管理
- 联营影院
- 小程序代码上传
- api接口
- 卡券管理
- 财务订单
- 自营接口
- 影厅设置
- 营销中心
- 凤凰佳影
- 凤凰云智
- 节假日数据
- 自营接口2.0
- 用户管理
- 影院用户管理
- 用户数据
- 平台配置信息管理
- 影院端
修改商品信息
开发中
POST
http://store.xcyxfl.com/cinema/goods/update-goods
责任人:唐得才
请求参数
Header 参数
Version
integer
可选
默认值:
1
Body 参数application/json
id
integer
商品卡卷id
type
integer
必需
spec
integer
必需
stock
integer
商品库存
name
string
券包名称
merchant
integer
商家id
shelt_goods_type_id
integer
商品分类id
line_price
number
划线价格
price
number
价格
logo
string
封面图片
introduce
string
购买须知
tag
integer
标签id
sort
integer
排序
close_time
string
下架时间
verify_time
string
核销时间
discount_type
integer
必需
discount_value
array [object {3}]
自定义会员折扣信息
id
integer
会员卡id
discount
integer
折扣值
name
string
会员卡类型名称
limit_buy
integer
必需
gift_coupon_status
integer
必需
hand_receipt
integer
必需
coupon
array [object {2}]
券包组合
id
integer
优惠券id
num
integer
优惠券数量
is_package
integer
可选
package_info
array [object {3}]
套餐信息
name
string
分组名称
num
integer
必选卖品数量
goods_ids
array[integer]
卖品ids
示例
{
"id": 185,
"type": 0,
"spec": 2,
"stock": 100,
"name": "新的商品",
"merchant": 48,
"shelt_goods_type_id": 48,
"line_price": 100,
"price": 50,
"verify_time": 0,
"hand_receipt": 0,
"sort": 42,
"tag": 9,
"introduce": "介绍",
"logo": "https://cinema-media.oss-cn-chengdu.aliyuncs.com/image/WSRP5zXwdWAjzihniCNF6ECBm5xFzTim.png",
"discount_type": 1,
"gift_coupon_status": 26,
"coupon": [
{
"id": 53,
"num": 82
},
{
"id": 7,
"num": 84
}
],
"is_package": 1,
"package_info": [
{
"name": "分组1",
"num": 1,
"goods_ids": [26]
},
{
"name": "分组1",
"num": 2,
"goods_ids": [145]
}
],
"close_time": "2028-12-04"
}
示例代码
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/update-goods' \
--header 'Version: 1' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 185,
"type": 0,
"spec": 2,
"stock": 100,
"name": "新的商品",
"merchant": 48,
"shelt_goods_type_id": 48,
"line_price": 100,
"price": 50,
"verify_time": 0,
"hand_receipt": 0,
"sort": 42,
"tag": 9,
"introduce": "介绍",
"logo": "https://cinema-media.oss-cn-chengdu.aliyuncs.com/image/WSRP5zXwdWAjzihniCNF6ECBm5xFzTim.png",
"discount_type": 1,
"gift_coupon_status": 26,
"coupon": [
{
"id": 53,
"num": 82
},
{
"id": 7,
"num": 84
}
],
"is_package": 1,
"package_info": [
{
"name": "分组1",
"num": 1,
"goods_ids": [26]
},
{
"name": "分组1",
"num": 2,
"goods_ids": [145]
}
],
"close_time": "2028-12-04"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
示例
{"code":200,"message":"success","data":{}}