Generate a reward’s codes

Add more stock to generate new instances of a reward. This is suitable for rewards that are autogenerated and limited.

Error cases

Reward external_id does not exist (404)

{
    "error_key": "",
    "error": "",
    "error_description": " not found"
}

Reward is unlimited (400)

{
    "error_key": "max_attribution_count",
    "error": "unlimited_count",
    "error_description": "you cannot add stock to a reward with unlimited stock"
}

Value to add not specified in payload (400)

{
    "status": 400,
    "errors": [
        {
            "error_key": "to_add",
            "error": "is_blank",
            "error_description": "This value should not be null."
        }
    ]
}

Value to add has wrong type (400)

{
    "status": 400,
    "errors": [
        {
            "error_key": "to_add",
            "error": "wrong_type",
            "error_description": "This value should be of type int."
        }
    ]
}
Language
Credentials
Bearer
JWT
URL
Click Try It! to start a request and see the response here!