Create Discount

Creates a new discount for the authenticated account.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

The request body must include required fields such as the discount name, type (currently only "discount" is allowed), applicable items (treatments or products), and filter configuration. Additional optional fields like group, category, condition, expiration, and enabled status can also be provided. The endpoint performs extra validations, such as ensuring no duplicate days in the filter and that the end hour is not earlier than the start hour if time intervals are specified. Upon successful creation, the endpoint returns the newly created discount object.

Body Params
string
required

Discount name

string

Discount type (discount)

string
required

Discount apply to (treatments, products)

string

id of treatment to apply discount (not apply if has any value on category)

string

id of product to apply discount (not apply if has any value on category)

string
Defaults to _all_

group clients (need previous configuration to client group)

string

If discount apply to all elements contains by category

int32
Defaults to 1

percentage value of discount

int32
string

true, false

filter
object

use to apply filters on discounts, such as business days and times.

Responses

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