post https://api.splio.com/loyalty/v1/rewards/grant
Grant a list of reward
Error cases
Partially OK call (207)
See failure cases for Grant a reward ⇒ most will result in a 207 here
{
"elements_success": [
{attribution_detail_here}
],
"elements_error": [
{
"reward_id": "9701a96f-ee5",
"card_code": "4081110706088",
"description": "burn date should be after earned date 2018-01-12 15:00:00",
"code": 400
}
],
"success_count": 2,
"errors_count": 1
}
Store_id not found (404)
{
"status": 404,
"errors": {
"error_key": null,
"error": "not_found",
"error_description": "extid \"heyyy\" not found in splio3_ecommerce.qa03_stores"
}
}
reward_id is missing in an attribution (400)
Error will not be verbose, but this error is encountered in this case
{
"error_key": "",
"error": "payload_error",
"error_description": "Payload is invalid : check the JSON format of the payload and/or associated documentation"
}