GET/api/v1/subscriptions/:subscriptionId查看订阅详情
Try it 面板需要启用 JavaScript。
返回指定订阅;订阅所属用户与管理员可查。
Request
| Name | Data Type | Required | Description |
| Authorization | string | Yes | 会话令牌认证,格式 `Bearer <sessionToken>` |
type RequestHeaders = {
/** 会话令牌认证,格式 `Bearer <sessionToken>` */
Authorization: string
}
URL Parameters
| Name |
Data Type |
Description |
| subscriptionId |
string |
订阅 ID |
Response
Body
| Name | Data Type | Required | Description |
| subscriptionId | string | Yes | 订阅 ID |
| userId | string | Yes | 用户 ID |
| title | string | Yes | 订阅标题 |
| businessService | string | Yes | 业务服务 |
| amount | number | Yes | 周期金额 |
| currency | string | Yes | 币种 |
| interval | string | Yes | monthly / yearly |
| status | string | Yes | active / canceled / expired |
| nextRenewalAt | string | No | 下次续订时间 |
| canceledAt | string | No | 取消时间 |
| createdAt | string | Yes | 创建时间 |
type ResponseBody = {
/** 订阅 ID */
subscriptionId: string
/** 用户 ID */
userId: string
/** 订阅标题 */
title: string
/** 业务服务 */
businessService: string
/** 周期金额 */
amount: number
/** 币种 */
currency: string
/** monthly / yearly */
interval: string
/** active / canceled / expired */
status: string
/** 下次续订时间 */
nextRenewalAt?: string
/** 取消时间 */
canceledAt?: string
/** 创建时间 */
createdAt: string
}
{
"subscriptionId": "01JD8SOBHV0C3D9JD",
"userId": "01JD8SEGQ0P9N2XK4L7VDH3T6C",
"title": "Xeegam Cloud · 专业版",
"businessService": "cloud",
"amount": 28,
"currency": "USD",
"interval": "monthly",
"status": "active",
"nextRenewalAt": "2026-11-13T09:00:00Z",
"createdAt": "2026-10-14T15:30:00Z"
}
HTTP Code
| HTTP Status |
Meaning |
Notes |
| 200 |
成功 |
返回订阅详情 |
Response Code
响应使用统一信封 {id, code, messages, result},其 code 字段:
| code |
Meaning |
Notes |
| 0 |
成功 |
返回订阅详情 |
Examples
GET /api/v1/subscriptions/01JD8SOBHV0C3D9JD
Authorization: Bearer st_7c1f9e05b28d4a63
{
"id": "01JD8SSVLQ0L8NG",
"code": 0,
"messages": [],
"result": {
"subscriptionId": "01JD8SOBHV0C3D9JD",
"userId": "01JD8SEGQ0P9N2XK4L7VDH3T6C",
"title": "Xeegam Cloud · 专业版",
"businessService": "cloud",
"amount": 28,
"currency": "USD",
"interval": "monthly",
"status": "active",
"nextRenewalAt": "2026-11-13T09:00:00Z",
"createdAt": "2026-10-14T15:30:00Z"
}
}