Retrieve user group members list

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

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

Example request

curl --location 'https://eu.api.capillarytech.com/v2/userGroup2?id=3918893&primaryUserId=566998132&programDetails=true&expiredPoints=true&expirySchedules=true&gapToUpgradeFor=2&gapToRenewFor=2&companyDetails=true' \
--header 'Authorization: Basic bWFkaHVfcmltYTowZjAwNmZlNGM4ZjFhNmRjMmI2ZDI1N2NkNzI3MjU2YQ==' \
--data ''

Query parameters

Query ParameterData typeDescription
externalIdStringThis parameter is used to filter user groups by their external identifier.
expiredPointsbooleanThis parameter, when set to true, requests that information about points that have expired be included in the response.
expirySchedulesbooleanThis parameter, when set to true, requests that information about the schedules for point expiry be included in the response.
gapToUpgradeForIntegerThis parameter requests the point gap required for upgrading to the next level for a user group.
gapToRenewForIntegerThis parameter requests the point gap required for renewing the current level for a user group.
companyDetailsbooleanThis parameter requests details about the company associated with the user group.

Example response

{
    "id": 3918893,
    "externalId": "uat_ug_10_txn",
    "groupStatus": "ACTIVE",
    "fleetGroupUsers": [
        {
            "userId": 566998132,
            "groupId": 3918893,
            "defaultGroup": true,
            "primaryMember": true,
            "active": true
        },
        {
            "userId": 567219877,
            "groupId": 3918893,
            "defaultGroup": true,
            "primaryMember": false,
            "active": true
        },
        {
            "userId": 567219954,
            "groupId": 3918893,
            "defaultGroup": true,
            "primaryMember": false,
            "active": true
        },
        {
            "userId": 564662499,
            "groupId": 3918893,
            "defaultGroup": false,
            "primaryMember": false,
            "active": false
        }
    ],
    "createdBy": 75155297,
    "createdOn": "2025-11-03T05:23:40Z",
    "groupName": "uatUserGroup10Transactions",
    "maxGroupSize": 6,
    "lifeTimePurchases": 70100,
    "expiredPoints": [],
    "expirySchedules": [
        {
            "points": 49500.0,
            "expiryDate": "2026-04-27",
            "expiryDateISO": "2026-04-27T00:00:00Z",
            "programId": 973
        },
        {
            "points": 5000.0,
            "expiryDate": "2125-11-03",
            "expiryDateISO": "2125-11-03T00:00:00Z",
            "programId": 973
        }
    ],
    "gapToUpgrade": [
        {
            "upgradeBasedOn": "CURRENT_POINTS",
            "upgradeThreshold": 2000.0,
            "customerUpgradeEntityValues": {
                "currentValue": 0.0,
                "gapToUpgrade": 2000.0,
                "valueValidUpto": "2125-11-03"
            }
        }
    ],
    "gapToRenew": {
        "tierExpiryDate": "2125-11-19",
        "renewConfirmed": false,
        "renewStrategies": []
    },
    "totalActiveMembers": 3,
    "totalExitedMembers": 1,
    "pointsSummaries": [
        {
            "redeemed": 0.0,
            "expired": 0.0,
            "returned": 0.0,
            "adjusted": 0.0,
            "lifetimePoints": 54500.0,
            "loyaltyPoints": 54500.0,
            "userGroup2Id": 3918893,
            "currentSlab": "Diamond",
            "currentSlabDescription": "Tier 8",
            "nextSlab": "",
            "nextSlabSerialNumber": -1,
            "nextSlabDescription": "",
            "slabSNo": 8,
            "slabExpiryDate": "2125-11-19T23:59:59Z",
            "programId": 973,
            "delayedPoints": 0.0,
            "delayedReturnedPoints": 0.0,
            "delayedExpiredPoints": 0.0,
            "totalAvailablePoints": 54500.0,
            "totalReturnedPoints": 0.0,
            "linkedPartnerPrograms": [],
            "programTitle": "DocDemoDefaultProgram",
            "programDescription": "Default program for DocDemo",
            "programPointsToCurrencyRatio": 1.0,
            "upgradeStrategies": [],
            "gapToRenewSummary": {
                "tierExpiryDate": "2125-11-19",
                "renewConfirmed": false,
                "renewStrategies": []
            },
            "pointsContributionToGroup": 0.0
        },
        {
            "redeemed": 0.0,
            "expired": 0.0,
            "returned": 0.0,
            "adjusted": 0.0,
            "lifetimePoints": 0.0,
            "loyaltyPoints": 0.0,
            "userGroup2Id": 3918893,
            "currentSlab": "Topaz",
            "currentSlabDescription": "Slab 1",
            "nextSlab": "Coral",
            "nextSlabSerialNumber": 2,
            "nextSlabDescription": "Tier 2",
            "slabSNo": 1,
            "slabExpiryDate": "2125-11-03T23:59:59Z",
            "programId": 983,
            "delayedPoints": 4000.0,
            "delayedReturnedPoints": 0.0,
            "delayedExpiredPoints": 0.0,
            "totalAvailablePoints": 4000.0,
            "totalReturnedPoints": 0.0,
            "linkedPartnerPrograms": [],
            "programTitle": "Group Loyalty Program",
            "programDescription": "Loyalty program for groups",
            "programPointsToCurrencyRatio": 1.0,
            "upgradeStrategies": [
                {
                    "upgradeBasedOn": "CURRENT_POINTS",
                    "upgradeThreshold": 2000.0,
                    "customerUpgradeEntityValues": {
                        "currentValue": 0.0,
                        "gapToUpgrade": 2000.0,
                        "valueValidUpto": "2125-11-03"
                    }
                }
            ],
            "pointsContributionToGroup": 0.0
        }
    ],
    "extendedFields": {
        "ug_status": "Active",
        "usergroup2_automation_extended_field": 25
    },
    "warnings": [
        {
            "status": false,
            "code": 1656,
            "message": "Fleet group do not have a mapped hierarchy"
        }
    ]
}

Response parameters

KeyData typeDescription
idLongThe unique identifier for the group.
userIdLongThe unique identifier for the user.
groupIdLongThe unique identifier for the group to which the user belongs.
defaultGroupbooleanA boolean indicating if this group is the default group for the user.
activebooleanA boolean indicating if the user is currently active.
primaryMemberbooleanA boolean indicating if the user is the primary member of the group.
externalIdStringThe external identifier for the group.
groupStatusEnum

The status of the group.

Possible values: ACTIVE, INACTIVE, DELETED.

fleetGroupUsersAn array of user objects, each with details about a user in the group.
createdByLongThe ID of the user who created the group.
createdOnThe date and time when the group was created.
groupNameStringThe name of the group.
maxGroupSizeLongThe maximum size of the group.
lifeTimePurchasesDecimalThe total purchases made over the lifetime of the group.
expiredPointsAn array containing details about points that have expired.
expirySchedulesAn array containing details about the schedules for point expiry.
gapToUpgradeAn array containing details about the gap required to upgrade to the next level.
totalActiveMembersThe total number of active members in the group.
totalExitedMembersThe total number of members who have exited the group.
warningsAn array of warning messages generated during the processing of the request.
Query Params
int32
required
string
required
boolean
boolean
boolean
boolean
boolean
boolean
boolean
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