post https://api.splio.com/loyalty/v1/reward-attributions//burn
Use a reward granted to a loyalty member.
Error cases
Reward attribution id does not exist (404)
{
"error_key": "external_id",
"error": "external_id_not_found",
"error_description": "no reward attribution {id} found"
}
store_id does not exist (404)
{
"status": 404,
"errors": {
"error_key": null,
"error": "not_found",
"error_description": "extid \"test_store_id\" not found in splio3_ecommerce.qa03_stores"
}
}
Reward attribution already burned (400)
{
"error_key": "external_id",
"error": "external_id_already_burned",
"error_description": "reward attribution 88317113 already burned at 2023-01-01 00:00:00"
}
Cardcode does not exist (or not valid at target burned_date) (400)
{
"error_key": "card_code",
"error": "card_code_not_found",
"error_description": "no membership found for cardcode test on the 2023-07-18 19:15:01"
}
Cardcode does not match the attribution’s cardcode (400)
{
"error_key": "card_code",
"error": "inconsistent_card_code",
"error_description": "the given cardcode 2673935406285 does not match the card_code of the given reward attribution 18374174"
}
Burned_date inconsistency with attribution dates (400)
{
"error_key": "burned_date",
"error": "inconsistent_dates",
"error_description": "burn date should be after earned date 2018-01-12 15:00:00"
}
{
"error_key": "burned_date",
"error": "inconsistent_dates",
"error_description": "burn date should be before expiration date 2050-01-01 00:00:00"
}