Subscribes the user to a gym plan.
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| gym-id | int | Yes | ID of the gym | 123 |
| plan-id | int | Yes | ID of the gym plan | 10 |
POST /api/v1/gyms/123/subscriptions/subscribe/10
Authorization: Bearer {token}
Returns the created gym subscription resource.
{ /* gym subscription resource */ }
For a full schema, see Gym Subscription Resource.
| Status | Description | Reference |
|---|---|---|
| 400 | Insufficient account balance | |
| 404 | Not found (invalid gym or plan, or inactive) | |
| 401 | Unauthorized | Authentication error |