Skip to main content
Documentation for version v74

Get profile tier in a loyalty program

Description

Retrieves the current tier of a loyalty program member within the requested tiers group.

Request URL

Method: POST

https://example.com/api/v1.1/loyalty/account/tiers

Request parameters

ParameterTypeExampleRequiredDescription
loyalty_program_idint123YesLoyalty program ID
tiers_group_idint10YesTiers group ID (for example, 10)
matchingstring"email"YesProfile lookup method. Possible values: "email", "phone", "profile_id", "custom"
field_namestring"user_id"Yes, if matching = customCustom field name used for lookup
field_valuestring / int123456Yes, if matching = customCustom field value
emailstring"user@example.com"Yes, if matching = emailEmail used to find the profile
phonestring"+1234567890"Yes, if matching = phonePhone number in international format
profile_idstring"profile123"Yes, if matching = profile_idProfile ID
tokenstring"abc123def456"YesAPI token for authorization

Request example

{
"loyalty_program_id": 123,
"tiers_group_id": 10,
"matching": "email",
"email": "user@example.com",
"phone": "+1234567890",
"profile_id": "profile123",
"token": "abc123def456"
}

Response example

{
"error": 0,
"error_text": "Successful operation",
"data": [
{
"tiers_group_type": "cumulative",
"tier_eid": "silver1-2",
"tier_id": 13,
"tier_order": 1,
"reached_at": "2024-06-15T09:12:34Z"
},
{
"tiers_group_type": "cumulative",
"tier_eid": "gold1-3",
"tier_id": 14,
"tier_order": 2,
"reached_at": "2024-09-01T12:34:56Z"
}
]
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
tiers_group_typestringTiers group type
tier_eidstringExternal tier ID
tier_idintTier ID
tier_orderintTier order number (starting from 0)
reached_atstringTier reached date in RFC3339 format