Upload a reward’s codes

Add personalized codes to generate new instances of a reward. This is suitable for rewards that are not autogenerated and are limited.

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

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"
        }
    ]
}
Path Params
string
required

Reward external identifier.

Body Params

Add personalized codes for a given reward.

codes
array of strings
codes
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