در حال بارگذاری…
Creates a check-in record for a gym subscription.
| Permission | Description |
|---|---|
gym_subscriptions.checkin | Gym admin can check in a user |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| gym-id | int | Yes | ID of the gym | 123 |
| subscription-id | int | Yes | ID of the subscription | 456 |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| notes | string | No | Optional note for check-in | "Arrived late" |
{
"notes": "Arrived late"
}
Returns the created check-in resource.
{
"data": { /* gym subscription check-in resource */ }
}
For a full schema, see Gym Subscription Check-in Resource.
| Status | Description | Reference |
|---|---|---|
| 404 | Not found (invalid gym or subscription, or inactive) | |
| 400 | Already open check-in exists | |
| 403 | Forbidden (no permission or gym inactive) | Permission error |
| 401 | Unauthorized | Authentication error |
| 422 | Validation error | Validation error |