GET /openapi/memorylake/admin/v1/billing/subscription
status 为 none 表示团队没有有效订阅。
所需权限:
subscription:viewcurl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/subscription' \
-H 'Authorization: Bearer sk_xxxxxx'
响应
显示 Subscription 对象
显示 Subscription 对象
已订阅的套餐
显示 Subscription Plan Summary 对象
显示 Subscription Plan Summary 对象
套餐 ID(即预览套餐变更接受的
plan_id){
"success": true,
"message": "Operation completed successfully",
"data": {
"cancel_at_period_end": false,
"status": "active",
"current_period_end": 1760000000,
"current_period_start": 1760000000,
"plan": {
"billing_interval": "month",
"id": 1,
"name": "Example name",
"price": {
"amount": 1999,
"currency": "usd"
},
"tier": "free",
"tokens_per_cycle": 1200000
}
}
}
错误
出错时返回success: false、message 和 error_code。全部错误码见错误码。
| 状态码 | 含义 |
|---|---|
401 | API Key 缺失、无效、已停用或已过期 |
403 | 该 Key 无权执行此操作 |
429 | 请求过多,请按 Retry-After 等待后重试 |
500 | 服务端错误 |