Retrieve user group member details

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Use this API to retrieve all members of a user group. The response includes each member's role (PRIMARY or SECONDARY), identifiers, permissions, and points contributed to the group.

This API supports the following:

  • View all members of a group using the group's internal ID.
  • View card details for each member using includeCardDetails=true.
  • View card status information (active/suspended status, reason, timestamps) using includeStatusDetails=true.
  • Paginate through large groups using paginationDetails=true with limit and offset.
  • Sort results or filter by member join date using fromDate and toDate.

The response also includes each member's email, mobile number, and list of registered identifiers.

❗️

Make sure you have the appropriate access control configured. For more information, see access group documentation.

📘

Current membership records only

The API returns only the current membership status for each member. If a member leaves and re-enrolls, only the latest active membership record is shown. Historical membership records (such as a previous EXITED status) are not included in the response.

Example request

curl -L 'https://eu.api.capillarytech.com/v2/userGroup2/members?source=INSTORE&identifierName=id&identifierValue=3948622' \
-H 'Authorization: Basic {base64-encoded-credentials}'
curl -L 'https://eu.api.capillarytech.com/v2/userGroup2/members?source=INSTORE&identifierName=id&identifierValue=3948622&includeCardDetails=true&includeStatusDetails=true&paginationDetails=true&sortOrder=DESC&limit=20' \
-H 'Authorization: Basic {base64-encoded-credentials}'

Query parameters

ParameterTypeRequiredDescription
sourceEnumYesSource in which the group identifier is registered. Supported values: INSTORE, MARTJACK, WECHAT, FACEBOOK, WEB_ENGAGE, TMALL, TAOBAO, JD, ECOMMERCE, WEBSITE, LINE, ALL. Case-sensitive.
identifierNameEnumYesIdentifier type used to look up the group. Supported value: id (internal group ID).
identifierValueStringYesValue of the identifier specified in identifierName. For example, if identifierName is id, pass the numeric group ID.
includeCardDetailsBooleanOptionalPass true to include card details for each member in the response. Defaults to false.
includeStatusDetailsBooleanOptionalPass true to include customer status details for each member's cards in the response. Defaults to false.
paginationDetailsBooleanOptionalPass true to include a pagination object in the response. Defaults to false.
limitIntegerOptionalMaximum number of members to return per page. Used with paginationDetails=true.
offsetIntegerOptionalStarting index for paginated results. Used with paginationDetails=true.
sortByStringOptionalField to sort results by. Pass IS_PRIMARY to list the primary member first.
sortOrderEnumOptionalSort direction. Supported values: ASC, DESC. Defaults to DESC.
fromDateDateTimeOptionalStart of the date range to filter members by join date. Format: YYYY-MM-DD HH:MM:SS.
toDateDateTimeOptionalEnd of the date range to filter members by join date. Format: YYYY-MM-DD HH:MM:SS.

Response parameters

FieldTypeDescription
.paginationObjectPagination details. Present only when paginationDetails=true.
..limitIntegerMaximum number of records returned per page.
..offsetIntegerStarting index of the current page.
..sortByStringField used to sort results.
..sortOrderStringSort direction: ASC or DESC.
..totalIntegerTotal number of members in the group.
.dataArrayList of member objects in the user group.
..fleetUserIdIntegerUnique identifier of the member (customer ID).
..firstNameStringFirst name of the member.
..lastNameStringLast name of the member.
..joinedOnStringDate the member joined the group, in YYYY-MM-DD format.
..permissionsStringComma-separated list of permissions assigned to the member. Possible values: allow_points_redemption, allow_points_transfer, block_points_redemption, block_points_transfer.
..pointsContributedNumberTotal points contributed by the member to the group.
..emailStringEmail address of the member.
..mobileStringMobile number of the member, including country code.
..roleStringRole of the member in the group. Possible values: PRIMARY, SECONDARY.
..roleCodeStringShort code for the member's role as configured in the hierarchy definition.
..identifiersArrayList of registered identifiers for the member.
...typeStringIdentifier type. Possible values: mobile, email, externalId, cardnumber.
...valueStringValue of the identifier.
..cardsArrayCard objects owned by the member. Present only when includeCardDetails=true.
...cardIdIntegerUnique identifier for the card.
...issuedDateStringDate and time the card was issued, in ISO 8601 format, returned in the server time zone.

EU server example: 2022-05-05T17:45:58+05:30 → 05 May 2022, 17:45:58 (IST)

Note: The response time zone always matches the server time zone, regardless of the time zone offset in the request.
...createdDateStringDate the card record was created, in YYYY-MM-DD format.
...expiryDaysIntegerNumber of days from issuance until card expiry.
...expiryDateStringDate and time the card expires, in ISO 8601 format, returned in the server time zone.
...seriesNameStringName of the card series the card belongs to.
...seriesIdIntegerUnique identifier of the card series.
...seriesCodeStringCode of the card series.
...cardNumberStringUnique card number.
...typeStringType of card. Possible values: DIGITAL, PHYSICAL.
...customerIdIntegerCustomer ID of the member the card is issued to.
...maxActiveCardsIntegerMaximum number of active cards allowed for this series.
...orgIdIntegerUnique identifier of the organisation.
...entityIdIntegerUnique identifier of the entity associated with the card.
...customFieldsObjectKey-value pairs of custom field data associated with the card.
...transactionNotAllowedBooleanIndicates whether transactions are blocked on this card.
...statusInfoObjectStatus details of the card. Present only when includeStatusDetails=true.
....idIntegerUnique identifier of the card status record.
....isActiveBooleanIndicates whether the current card status is active.
....labelStringUser-defined status label (e.g., ACTIVE, SUSPENDED).
....statusStringSystem-defined status code. Possible values: ACTIVE, SUSPENDED, DELETED, EXPIRED, NOT_ISSUED.
....labelIdIntegerUnique identifier of the status label.
....reasonStringReason for the current card status.
....createdByIntegerID of the entity that created the card status.
....createdOnStringDate and time the card status was created, in ISO 8601 format.
....autoUpdateTimeStringDate the card status was last auto-updated, in YYYY-MM-DD format.
....entityIdIntegerCard ID associated with this status record.
....actionsArrayList of actions associated with this card status.
..inActiveBooleanIndicates whether the member is active in the group. true means active; false means inactive.
..primaryMemberBooleanIndicates whether the member is the primary member. true for primary; false for secondary.
.warningsArrayList of warning messages, if any.
.errorsArrayList of error messages, if any.
Query Params
string
string
string
boolean
boolean
boolean
int32
int32
string
string
enum
Defaults to DESC
Allowed:
date
date
Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json