dambel

دمبل

shevron
ورود | ثبت نام

API Docs / gyms / subscriptions / subscribe



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

201 Created

Returns the created gym subscription resource.

Example

{ /* 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

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

LinkedinInstagramXYoutube