post https://api.splio.com/loyalty/rewards//instances/send
Add personalized codes to generate new instances of a reward. This is suitable for rewards that are not autogenerated and are limited.
Error cases
Reward external_id does not exist (404)
{
"error_key": "",
"error": "",
"error_description": "reward_test not found"
}
Reward is auto-generated (400)
{
"error_key": "",
"error": "",
"error_description": "reward must not have auto_generated option"
}
Missing codes data in payload (400)
{
"status": 400,
"errors": [
{
"error_key": "codes",
"error": "is_blank",
"error_description": "This value should not be blank."
},
{
"error_key": "codes",
"error": "is_blank",
"error_description": "wrong_type"
}
]
}