Grant a list of reward

Grant a list of reward

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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"
}
Body Params

Grant a list of reward based on card code and granted reward external identifier.

elements
array of objects
elements
Responses

401

Authentication failed.

403

Forbidden.

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json