获取门票信息
开发中POST
https://www.micecube.com/api/ticket/data请求参数
Header 参数
Mice-Auth
string
必需
示例值:
{"UserPublicKey":"6VOmse12346VeuCf","ActivityId":203672,"Time":1692270716,"Version":1,"Signature":"94ff067bf716e632baf60c4192e567a4"}
Body 参数multipart/form-data
ticket_id
string
可选
要查询的门票id,不传查询当前活动下所有门票
示例值:
902
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
返回状态 1-成功 0-失败
msg
string
返回描述
data
array [object {5}]
必需
id
integer
门票id
name
string
门票名称
num
integer
可选
门票总库存(已出售库存+剩余库存)
sold_num
integer
已出售库存
money
integer
可选
门票金额(非折扣优惠金额)
示例
{
"code": 1,
"msg": "查询成功",
"data": [
{
"id": 860,
"name": "测试1",
"num": 100,
"sold_num": 27,
"money": 0.01
},
{
"id": 902,
"name": "测试2",
"num": 100,
"sold_num": 7,
"money": 0
},
{
"id": 903,
"name": "测试3",
"num": 100,
"sold_num": 26,
"money": 15
},
{
"id": 904,
"name": "测试4",
"num": 100,
"sold_num": 11,
"money": 0.04
}
]
}
修改于 1 年前