Get active members

View as Markdown
# Get Active Members This endpoint retrieves all active members of a rotating group, including the current user's membership details and information about all other active members in the group. ## Endpoint **Method:** `GET` **Path:** `{{host}}/rotating_groups/{{group_id}}/active_members` ## Required Variables - `host` - The base URL of the API server - `group_id` - The unique identifier of the rotating group - `token` - Authentication token (used in request headers) ## Response Structure The response contains two main objects: ### currentMembership Details about the authenticated user's membership in the rotating group: - `membershipId` (string) - Unique identifier for the membership - `customerId` (string) - ID of the customer/user - `groupId` (string) - ID of the rotating group - `status` (string) - Membership status (e.g., "active") - `autoContribute` (boolean) - Whether automatic contributions are enabled - `position` (number) - Member's position in the rotation cycle - `role` (string) - User's role in the group ("admin" or "member") ### activeMemberships An array containing all active members in the rotating group. Each member object includes: - `membershipId` (string) - Unique identifier for the membership - `customerId` (string) - ID of the customer/user - `groupId` (string) - ID of the rotating group - `status` (string) - Membership status - `autoContribute` (boolean) - Whether automatic contributions are enabled - `position` (number) - Member's position in the rotation cycle - `role` (string) - User's role ("admin" or "member") - `customer` (object) - Detailed customer information: - `customerId` (string) - Customer's unique ID - `firstName` (string) - Customer's first name - `lastName` (string) - Customer's last name - `fullName` (string) - Customer's full name - `name` (string) - Customer's display name - `avatar` (string) - URL to customer's avatar image - `isSuspended` (boolean) - Whether the customer account is suspended ## Success Response **Status Code:** `200 OK` The response includes a success message and the body containing both the current membership and all active memberships with full customer details.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Response

OK
bodyobject
messagestring