This is fake endpoint to describe variant of POST /api/v2.1/campaigns/{campaign_id}/rewardsAsk AIpost https://admin.sandbox.vouchery.app/api/v2.1/campaigns/{campaign_id}/rewards#___generate_voucherCreate a reward.Path Paramscampaign_idintegerrequiredCampaign IDBody ParamsObject to createcode_typestringrequiredWhat characters should the code include. Possible choices are digits, letters, and mixed.descriptionstringrequiredprefixstringrequiredA prefix in all generated vouchers. Needs to be unique within a project.random_part_lengthint32requiredHow long should the random part of the code be? Valid values are between 3 and 10.titlestringrequiredtypestringenumrequiredGenerateVoucherAllowed:GenerateVouchervoucher_campaign_idint64requiredSub campaign ID, new voucher will be related to.voucher_lifetimeint64Nullable. Number of seconds, each voucher will be valid from the time of it's creation.Responses 200Created object 401Unauthorized error. 403Forbidden error. 422Unprocessable entity error. Validation failed. 500Internal server error. Try again in a few minutes or contact support.Updated over 2 years ago