Skip to main content
POST
Create a new discount.

Body

application/json
title
string
required

The discount title

Example:

"architecto"

code
string
required

The discount code

Example:

"architecto"

type
string
required

The discount type (percentage/fixed)

Example:

"architecto"

value
number
required

The discount value

Example:

"architecto"

start_date
string<date>

The discount start date

Example:

"architecto"

end_date
string<date>

The discount end date

Example:

"architecto"

Response

200

Success