Skip to main content
GET/point-customer-level/:id/

Get specific customer level

You can return a specific customer level details.

Attributes

Optional unless marked required

idintegerrequired
A unique identifier for the point acquire rule which is given by User

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/point-customer-level/:id/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"id": 1,
"name": "Platinum",
"point_campaign": 13,
"user_attribute": null,
"min_threshold": 9000000,
"max_threshold": 9999999,
"rewards": [
{
"type": 2
}
]
}

Response fields​

Fields returned in the 200 OK response body.

idinteger
ID of the customer level.
namestring
Name of the customer level.
point_campaigninteger
ID of the point campaign the level belongs to.
user_attributestringnullable
name_std of the contact attribute the points are spent from.
min_thresholdinteger
Lowest number of points a contact needs to be in this level.
max_thresholdinteger
Highest number of points a contact can have and still be in this level.
rewardsarray of objects
Rewards a contact gets on reaching the level.
rewards[].typeinteger
Type of the reward: 0 amount discount, 1 percentage off, 2 free shipping, 3 free product, 4 coupon code, 5 create event or 6 API.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.