Please review proper request headers here.
This endpoint is only available in SANDBOX
Parameters
The desired tier (bronze
, silver
, gold
)
Response
The ID of the tier status record
Current tier state (bronze
, silver
, gold
)
Description of what the user needs to do in order to earn the next tier
Current tier status expiration in ISO8601-format
Name of next tier. This will be blank if the user has gold
status
{
"tier_statuses": [
{
"id": "weourif",
"user_id": "woeru",
"merchant_id": "werouwer",
"level": "bronze",
"action_text": "Spend $100 before the end of the year to earn Silver.",
"progress": 50,
"expires_at": "2021-01-01T20:00:00Z",
"current_tier_name": "Bronze",
"next_tier_name": "Silver"
}
]
}
curl https://api.thanxsandbox.com/tier_statuses/:id \
-X PATCH \
-H "Content-Type: application/json" \
-H "Accept-Version: v4.0" \
-H "Accept: application/json" \
-H "X-ClientId: ${client_id}"
-d '{
"tier_status": {
"level": "silver"
}
}'
{
"tier_status": {
"id": "weourif",
"user_id": "woeru",
"merchant_id": "werouwer",
"level": "bronze",
"action_text": "Spend $100 before the end of the year to earn Silver.",
"progress": 50,
"expires_at": "2021-01-01T20:00:00Z",
"current_tier_name": "Bronze",
"next_tier_name": "Silver"
}
}