Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v75
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
  • Mailings
  • Automation scenarios
  • Loyalty Programs
    • Get profile tier in a loyalty program
    • Export points transactions
    • Expiring points for a period
    • Get profile account transactions
    • Get trigger promotions list
    • Accrue points to a member
    • Redeem member points
    • Commit temporary transaction
    • Roll back temporary transaction
    • Cancel points transaction
    • Get points account balance
    • Register member in a loyalty program
    • Remove member from loyalty program
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Loyalty Programs
  • Get profile tier in a loyalty program
Documentation for version v75

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​

  • JSON
  • XML
{
"loyalty_program_id": 123,
"tiers_group_id": 10,
"matching": "email",
"email": "user@example.com",
"phone": "+1234567890",
"profile_id": "profile123",
"token": "abc123def456"
}
<xml>
<loyalty_program_id>123</loyalty_program_id>
<tiers_group_id>10</tiers_group_id>
<matching>email</matching>
<email>user@example.com</email>
<phone>+1234567890</phone>
<profile_id>profile123</profile_id>
<token>abc123def456</token>
</xml>

Response example​

  • JSON
  • XML
{
"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"
}
]
}
<xml>
<data>
<tiers_group_type>cumulative</tiers_group_type>
<tier_eid>silver1-2</tier_eid>
<tier_id>13</tier_id>
<tier_order>1</tier_order>
<reached_at>2024-06-15T09:12:34Z</reached_at>
</data>
<data>
<tiers_group_type>cumulative</tiers_group_type>
<tier_eid>gold1-3</tier_eid>
<tier_id>14</tier_id>
<tier_order>2</tier_order>
<reached_at>2024-09-01T12:34:56Z</reached_at>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

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
Last updated on Nov 13, 2025
Previous
Loyalty Programs
Next
Export points transactions
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.