# 获取服务用户有效期
# 接口调用请求说明
http请求方式:POST
https://api.weixin.qq.com/wxa/servicemarket/service/get_service_buyer?access_token=xxxxxxxxx
access_token为第三方平台component_access_token
# 请求参数示例
{
"appid":"wxb24cc230ace685a3",
"service_id": 10000000005
}
# 回包示例
{
"errcode": 0,
"errmsg":"ok",
"buyer":
{
"appid": "wxb24cc230ace685a3",
"service_id": 10000000005,
"spec_list": [
{
"expire_time": 1619010767,
"specification_id": "free"
},
{
"expire_time": 1637987028,
"specification_id": "pro"
}
]
}
}
# 请求参数说明
参数 | 类型 | 是否必填 | 说明 |
---|---|---|---|
service_id | number | 是 | 服务id,64位无符号整数 |
appid | string | 是 | 小程序appid |
# 回包参数说明
参数 | 类型 | 说明 |
---|---|---|
errcode | number | 错误码 |
errmsg | string | 错误信息 |
buyer | ServiceBuyerInfo |
ServiceBuyerInfo
参数 | 类型 | 说明 |
---|---|---|
appid | string | 小程序appid |
service_id | number | 服务id,64位无符号整数 |
spec_list | ServiceBuyerInfoItem List |
ServiceBuyerInfoItem
参数 | 类型 | 说明 |
---|---|---|
specification_id | string | 规格ID |
expire_time | number | 过期时间 |