در حال بارگذاری…
Represents a user's subscription to a gym plan, including expiration, available sessions, and check-ins.
| Field | Type | Description | Example |
|---|---|---|---|
| id | int | Unique identifier for the subscription | 123 |
| user_id | int | ID of the user | 789 |
| user | object | User resource object | { ... } |
| gym_plan | object | Gym plan resource object | { ... } |
| expires_at | string | Expiration date (YYYY-MM-DD) | "2025-01-01" |
| available_sessions_count | int | Number of available sessions | 16 |
| checkins_count | int | Number of check-ins on this subscription | 14 |
| checkins | array | Deprecated. List of check-in resources. Use checkins_count, or GET /gyms/{gym-id}/subscriptions/{subscription-id}/checkins, instead — this array is unbounded and will be removed once no released client reads it. | [ { ... }, ... ] |
{
"id": 123,
"user_id": 789,
"gym_plan": { /* gym plan resource */ },
"expires_at": "2025-01-01",
"available_sessions_count": 16,
"checkins_count": 14,
"checkins": [ { /* gym subscription checkin resource */ } ]
}
For schemas, see Gym Plan Resource, User Resource and Gym Subscription Check-in Resource.