Skip to content

Search available subscriptions for event

Request

Retrieves subscriptions that can be used to create a client schedule for a series of events.

This method returns subscriptions (memberships) that:

  • Belong to the specified client
  • Are valid and active
  • Can be applied to the specified activity
  • Have remaining visits available

Use cases:

  • Display available subscriptions when scheduling recurring activity sessions
  • Check which subscriptions cover specific activity types
  • Validate subscription applicability before creating schedules

Note: Returns subscriptions with their types and availability intervals.

Security
BearerPartner
Path
location_idintegerrequired

Location ID

Example:720441
client_idintegerrequired

Client ID

Example:146915197
Query
event_idintegerrequired

Event (group event) ID

Example:event_id=12345
Headers
Acceptstringrequired
Default:"application/vnd.api.v2+json"
Content-Typestringrequired
Default:"application/json"
Authorizationstringrequired

Bearer {partner_token}, User {user_token}

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/api/v1/company/720441/client/146915197/loyalty/abonements/search_for_activity?event_id=12345' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
  -H 'Content-Type: application/json'

Responses

List of available subscriptions

Bodyapplication/json
dataArray of objects
includedArray of objects

Related membership types and availability intervals

Response
{ "data": [ {} ], "included": [ {} ] }