get https://api.splio.com/loyalty/v2/rewards
Get the list of created rewards.
Error cases
Wrong cursor - see dedicated doc (400)
Reward external_id does not exist (404)
{
"status": 404,
"errors": [
{
"error_key": "id",
"error": "wrong_value",
"error_description": "Record not found for id test_reward."
}
]
}
Invalid search parameter (400)
{
"error_key": "",
"error": "",
"error_description": "invalid parameters: fields. Available ones: use_internal_id,name,external_id,monetary,monetary_type,monetary_value,nqp_value,description,rich_description,image_url,holding_days,validity_interval_type,validity_interval_count,forced_validity,forced_validity_start,forced_validity_end,limited,auto_generated,max_attribution_count,with_stats,c0,reward_custom_field,c1,reward_2,c3,c3"
}
Invalid search operator (400)
{
"error_key": "external_id",
"error": "invalid_operator",
"error_description": "begins_with isn't allowed for key external_id. Use one of equals,not equals,contains,begins,ends"
}