Retrieves a list of subscription plans for a specific gym.
No authentication required.
| Permission | Description |
|---|---|
gyms.view_all | Required to view plans for an inactive gym or inactive plans |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| gym-id | int | Yes | ID of the gym | 123 |
GET /api/v1/gyms/123/plans
Authorization: Bearer {token}
Returns a list of gym plan resources.
{
"data": [ { /* gym plan resource */ }, ... ]
}
For a full schema, see Gym Plan Resource.
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |