dambel

دمبل

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

API Docs / gyms / subscriptions / manage / index



GET /api/v1/gyms/{gym-id}/subscriptions/manage

Retrieves a list of subscriptions for a specific gym, with filtering and pagination options.


Permissions

PermissionDescription
gym_subscriptions.viewView subscriptions for your own gyms
gym_subscriptions.view_anyView subscriptions for any gym

URL Parameters

NameTypeRequiredDescriptionExample
gym-idintYesID of the gym123

Query Parameters

NameTypeRequiredDescriptionExample
pageintNoPage number for pagination1
user_idstringNoUser ID(s), comma-separated"10,20"
gym_plan_idstringNoPlan ID(s), comma-separated"1,2,3"
expires_at_fromstringNoFilter: subscriptions expiring after this date"2025-01-01"
expires_at_tostringNoFilter: subscriptions expiring before this date"2025-12-31"

Request Example

GET /api/v1/gyms/123/subscriptions/manage?user_id=10&gym_plan_id=1&page=1
Authorization: Bearer {token}

Response

200 OK

Returns a paginated list of gym subscription resources.

Example

{
  "data": [ { /* gym subscription resource */ }, ... ],
  "links": { /* pagination data */ },
  "meta": { /* pagination data */ }
}

For a full schema, see Gym Subscription Resource and Pagination Data.


Error Responses

StatusDescriptionReference
404Not found (invalid gym or plan)
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
footer wave
logo

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

LinkedinInstagramXYoutube