订阅增值服务
下单订阅指定的增值服务,返回订阅后的最新状态。
| 请求方式 | POST |
| 接口路径 | /api/valueAdded/subscription/subscribe |
| Content-Type | application/json |
| 鉴权 | X-Nideshop-Token |
请求体字段
| 字段 | 类型 | 必填 | 说明 |
subscriptionType | String | 否 | { |
months | Integer | 否 | 1 / 3 / 6 / 12 |
curl 调用
curl -s 'https://www.8shu8.com/api/valueAdded/subscription/subscribe' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"subscriptionType": "string",
"months": 1
}'
响应示例
{
"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 | - |