创建活动商品
开发中
POST
https://saas-open.vhall.com/v3/interacts/goods/create-goods
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://saas-open.vhall.com/v3/interacts/goods/create-goods' \
--header 'token;' \
--header 'platform: 15' \
--form 'webinar_id=""' \
--form 'name=""' \
--form 'img_id[]=""' \
--form 'description=""' \
--form 'price=""' \
--form 'url=""' \
--form 'cover_id=""' \
--form 'app_key=""' \
--form 'sign_type=""' \
--form 'signed_at=""' \
--form 'sign=""'
响应示例响应示例
{
"code": 0,
"msg": "string",
"data": {
"webinar_id": 0,
"goods_id": 0,
"name": "string",
"order_num": 0,
"description": "string",
"price": 0,
"discount": 0,
"discount_price": 0,
"goods_url": "string",
"is_url_to_taobao": 0,
"tao_password": "string",
"shop_url": "string",
"status": "string",
"img_list": [
{
"img_url": "string",
"img_id": 0,
"is_cover": 0
}
]
}
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/x-www-form-urlencoded
token
string
必需
platform
integer
可选
默认值:
15
Body 参数multipart/form-data
webinar_id
string
活动ID
name
string
必需
img_id[]
string
必需
description
string
商品描述
price
string
商品价格
discount_price
string
商品折后价格
url
string
必需
tao_password
string
淘口令
shop_url
string
可选
cover_id
string
必需
order_num
string
可选
示例值:
0
status
string
可选
示例值:
1
app_key
string
必需
默认值:
{{app_key}}
sign_type
integer
必需
默认值:
{{sign_type}}
signed_at
integer
必需
默认值:
{{signed_at}}
sign
string
计算生成的签名值
默认值:
{{sign}}
返回响应
修改于 2025-05-28 05:26:48