增值服务订阅记录
分页查看历史订阅记录和到期时间。
| 请求方式 | GET/POST |
|---|---|
| 接口路径 | /api/valueAdded/subscription/records/page |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
|---|---|---|---|
required | String | 否 | URL 参数 |
defaultValue | Integer | 是 | URL 参数 |
defaultValue | Integer | 是 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/valueAdded/subscription/records/page?required=xxx&defaultValue=1&defaultValue=1' \ -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
data 为分页对象,业务数据在 records。
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"records": [
{
"id": 1,
"userId": 1,
"subscriptionType": "string",
"subscriptionTypeLabel": "string",
"durationMonths": 1,
"durationLabel": "string",
"subscriptionFee": 0.0,
"expireTime": "string",
"freeTrialUsed": 1,
"addTime": "string",
"targetName": "string"
}
],
"total": 0,
"size": 10,
"current": 1,
"pages": 0
}
}