Create discount code

Body Params
string
required

Random string, if a discount code with the same string already exists then the new code will be created as "inactive"

string

If set, the code can only be used on the specified subscription

integer
required

Absolute value of the discount code, depends on the type.
Ex : 10 with type = fixed_amount then the code is of 10€

string
enum
required

Defines if value is a percentage or an amount in euro

Allowed:
string
enum
required

Defines on which element the discount code is applied.

Allowed:
date-time
required
date-time
required
string
required
Defaults to {}

Set to empty object - Work in progress

Responses
200

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