增值服务订阅状态
查某个增值服务现在是否还在有效期内。
| 请求方式 | GET/POST |
| 接口路径 | /api/valueAdded/subscription/status |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
subscriptionType | String | 是 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/valueAdded/subscription/status?subscriptionType=xxx' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"subscriptionType": "string",
"typeLabel": "string",
"typeDesc": "string",
"active": true,
"expireTime": "string",
"freeTrialUsed": 1,
"freeTrialLimit": 1,
"freeTrialRemaining": 1,
"freeTrialTip": "string",
"durationPrices": [
"..."
],
"months": 1,
"label": "string",
"price": 0.0
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
subscriptionType | String | - |
typeLabel | String | - |
typeDesc | String | - |
active | boolean | - |
expireTime | LocalDateTime | - |
freeTrialUsed | Integer | - |
freeTrialLimit | Integer | - |
freeTrialRemaining | Integer | - |
freeTrialTip | String | - |
durationPrices | 对象数组 | - |
months | int | - |
label | String | - |
price | BigDecimal | - |