Create a single discount coupon

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 1 and 255

Discount coupon code

string

Discount coupon description

string

Discount coupon name

string

Discount coupon image URL

string

Partner name

int32
Defaults to 100

Discount percentage (0-100)

int32

Duration in days (alternative to expirationDate)

number

Energy limit in kWh

date-time

Expiration date and time (YYYY-MM-DD'T'HH:MM:SS)

string
enum
Defaults to PERCENTAGE

Discount coupon type

Allowed:
number

Discount value (for non-percentage types)

allowedEmails
array of strings

List of allowed email addresses

allowedEmails
string

Referrer coupon ID

string

Referrer user ID

string
enum
Defaults to NORMAL

Coupon type (NORMAL or WEEKLY)

Allowed:
Responses
201

Discount coupon created successfully

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