post https://api.splio.com/loyalty/members//tier_change
Change the a loyalty member's tier based on its card code.
Error cases
Cardcode does not exist (404)
{
"status": 404,
"errors": [
{
"error_key": "card_code",
"error": "wrong_value",
"error_description": "Loyalty membership not found for card code test."
}
]
}
Target tier does not exist (400)
{
"status": 400,
"errors": [
{
"error_key": "tier_change",
"error": "validation",
"error_description": "validation & building: find tier: tier with name 'Tiers #28' does not exists"
}
]
}
Event date is before member program_join_date (400)
{
"status": 400,
"errors": [
{
"error_key": "tier_change",
"error": "validation",
"error_description": "validation & building: fetch information needed for tier change : did not find any active status for cardcode '2673935406285' at date '1998-01-01 00:00:00'"
}
]
}
Malformatted value (400)
Generic error for all fields and custom fields values types
{
"status": 400,
"errors": [
{
"error_key": "tier_name",
"error": "wrong_type",
"error_description": "This value should be of type string."
},
{
"error_key": "force_points",
"error": "wrong_type",
"error_description": "This value should be of type bool."
}
]
}