ورود | ثبت نام
  • FA
  • EN

API Docs

GET /api/v1/gyms/{gym-id}/plans

Retrieves a list of subscription plans for a specific gym.

No authentication required.


Permissions

PermissionDescription
gyms.view_allRequired to view plans for a gym that is inactive or whose license is not approved, or to view inactive plans

A gym's public sub-resources are only served while the gym is active and its license is approved. The gym owner and holders of gyms.view_all are exempt; everyone else gets a 403. See Gym List.


URL Parameters

NameTypeRequiredDescriptionExample
gym-idintYesID of the gym123

Request Example

GET /api/v1/gyms/123/plans
Authorization: Bearer {token}

Response

200 OK

Returns a list of gym plan resources.

Example

{
  "data": [ { /* gym plan resource */ }, ... ]
}

For a full schema, see Gym Plan Resource.


Error Responses

StatusDescriptionReference
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
404Not foundNot-found error
Dambel

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutubeTelegramGitHub