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 amount constraint.

Example:

0

min_quantity
integer

Minimum quantity constraint.

Example:

0

max_quantity
integer

Maximum quantity constraint. Must be greater than or equal to min_quantity when both are provided.

Example:

0

max_uses
integer

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

Example:

0

max_products
integer

Maximum number of products that can be discounted with this code across all purchases.

Example:

0

event_id
string

Event identifier of the discount code. Required when updating rate_ids on event-scoped codes.

Example:

"el4gr63f00xkq01i1d8jh5ohuzaZhvoE"

rate_ids
string[]

Ticket rate identifiers to associate. Replaces current associations. Requires event_id and an event-scoped discount code.

Maximum array length: 100
Example:
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