This is fake endpoint to describe variant of POST /api/v2.1/triggers/{trigger_id}/rewards

Create a reward.

Path Params
integer
required

Trigger ID

Body Params

Object to create

string
required

What characters should the code include. Possible choices are digits, letters, and mixed.

string
required
string
required

A prefix in all generated vouchers. Needs to be unique within a project.

int32
required

How long should the random part of the code be? Valid values are between 3 and 10.

string
required
string
enum
required
Allowed:
int64
required

Sub campaign ID, new voucher will be related to.

int64

Nullable. Number of seconds, each voucher will be valid from the time of it's creation.

Responses

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