Get Plan (v1)
Get a single plan by ID.
Method & Path
GET /v1/admin/plans/:planId
Description
Retrieves detailed information about a specific subscription plan.
Authentication
Required: Admin authentication with plans.manage permission.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
planId | string | Yes | The plan ID |
Response 200 OK
{
"plan": {
"id": "507f1f77bcf86cd799439011",
"name": "Pro Plan",
"price": 99.99,
"billingPeriod": "monthly"
}
}
Common Errors
- 401 Unauthorized: Missing or invalid admin authentication token
- 403 Forbidden: Insufficient permissions
- 404 Not Found: Plan not found
- 500 Internal Server Error: Server error