NATSpayment.subscription.get读取订阅
Try it 面板需要启用 JavaScript。
返回订阅详情。
Request Payload
消息格式:JSON
| Name | Data Type | Required | Description |
|---|---|---|---|
| subscriptionId | string | Yes | 订阅 ID |
type RequestBody = {
/** 订阅 ID */
subscriptionId: string
}{
"subscriptionId": "01JD8SOBHV0C3D9JD"
}Response Payload
回复使用统一信封 {id, code, messages, result},其 result:
| 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 | 下次续订时间 |
| 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
/** 创建时间 */
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"
}Response Code
回复使用统一信封 {id, code, messages, result},其 code 字段:
| code | Meaning | Notes |
|---|---|---|
| 0 | 成功 | 读取订阅 |
Examples
{ "subscriptionId": "01JD8SOBHV0C3D9JD" }
{
"id": "01JD8SX7VK1I8JF",
"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"
}
}