Login | Sign Up
  • FA
  • EN

API Docs

POST /api/v1/gyms/{gym-id}/subscriptions/subscribe/{plan-id}

Subscribes the user to a gym plan.


URL Parameters

NameTypeRequiredDescriptionExample
gym-idintYesID of the gym123
plan-idintYesID of the gym plan10

Request Example

POST /api/v1/gyms/123/subscriptions/subscribe/10
Authorization: Bearer {token}

Response

200 OK

Returns the created gym subscription resource.

Example

{
  "data": { /* gym subscription resource */ }
}

For a full schema, see Gym Subscription Resource.


Error Responses

StatusDescriptionReference
400Insufficient account balance
404Not found (invalid gym or plan, or inactive)
401UnauthorizedAuthentication error
footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub