dambel

دمبل

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

API Docs / gyms / subscriptions / checkout



POST /api/v1/gyms/{gym-id}/subscriptions/checkout/{subscription-id}

Checks out the last open check-in for a gym subscription.


URL Parameters

NameTypeRequiredDescriptionExample
gym-idintYesID of the gym123
subscription-idintYesID of the subscription456

Request Example

POST /api/v1/gyms/123/subscriptions/checkout/456
Authorization: Bearer {token}

Response

200 OK

Returns a success message when checked out successfully.

Example

{
  "message": "Checked out successfully"
}

Error Responses

StatusDescriptionReference
404Not found (invalid gym or subscription, or inactive)
400No open check-in to check out
403Forbidden (no permission or gym inactive)Permission error
401UnauthorizedAuthentication error
footer wave
logo

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

LinkedinInstagramXYoutube