Checks out the last open check-in for a gym subscription.
Name | Type | Required | Description | Example |
---|---|---|---|---|
gym-id | int | Yes | ID of the gym | 123 |
subscription-id | int | Yes | ID of the subscription | 456 |
POST /api/v1/gyms/123/subscriptions/checkout/456
Authorization: Bearer {token}
Returns a success message when checked out successfully.
{
"message": "Checked out successfully"
}
Status | Description | Reference |
---|---|---|
404 | Not found (invalid gym or subscription, or inactive) | |
400 | No open check-in to check out | |
403 | Forbidden (no permission or gym inactive) | Permission error |
401 | Unauthorized | Authentication error |