Update Discount

Updates an existing discount identified by its unique ID in the URL path.

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

The request body can include any fields that need to be updated, such as name, applicable items, group, category, condition, expiration, enabled status, and filter configuration. The endpoint validates the input, checking for duplicate days in the filter and correct time intervals if provided. After updating, the endpoint confirms the operation with a success response. This endpoint is used to modify the details of an existing discount.

Path Params
string
required

id discount

Body Params
string

Discount name

string

Discount type (discount)

string

Discount apply to (treatments, products)

string

If discount apply to all elements contains by category

int32
int32
string

true, false

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)

filter
object

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

string

group clients (need previous configuration to client group)

Responses

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