Skip to main content
PATCH
cURL

Authorizations

integration_id
string
header
required

Identifier of the integration (Auth v1)

secret
string
header
required

Secret of the organization (Auth v1)

x-api-key
string
header
required

API key (Auth v2)

Path Parameters

discountCodeId
string
required

Discount code identifier.

Body

application/json

Fields to update. At least one field is required.

description
string

Discount code description.

Example:

"Summer promotion"

active
boolean

Whether the discount code is active.

Example:

true

fixed_amount
number

Fixed discount amount.

Example:

0

percentage
number

Percentage discount between 0 and 100. Cannot be greater than 0 when fixed_amount is greater than 0.

Required range: 0 <= x <= 100
Example:

20

min_amount
number

Minimum booking price required to apply the discount.

Example:

0

max_uses
integer

Maximum number of times (transactions) the discount code can be used.

Example:

0

event_id
string

Event identifier of the discount code.

Example:

"el4gr63f00xkq01i1d8jh5ohuzaZhvoE"

expires_at
string<date-time>

Expiration date in ISO 8601 format. Must be a valid future date.

Example:

"2026-12-31T23:59:59.000Z"

Response

HTTP OK

success
boolean
Example:

true

data
object