Skip to main content
PATCH
Update an event voucher

Authorizations

Api-Token
string
header
required

Server-to-server authentication. Generate a token in the admin UI at Settings → Developers → API Access. Send the raw token in the Api-Token header — there is no Bearer prefix.

Tokens can be marked read-only at creation time, in which case the API rejects any non-GET request with 403 Forbidden.

Path Parameters

uuid
string
required

EventVoucher identifier

Body

application/merge-patch+json

The updated EventVoucher resource

event
string<iri-reference>
Example:

"/api/v1/events/1"

code
string
discountType
enum<string>
Available options:
percentage,
fixed
discountValue
string
currency
string | null
maxUses
integer | null
Required range: x > 0
maxTickets
integer | null
Required range: x > 0
isActive
boolean
default:true
validFrom
string<date-time> | null
validTo
string<date-time> | null
allowedTicketTypes
string<iri-reference>[]
Example:
maxDiscountAmount
string | null

Response

EventVoucher resource updated

uuid
string | null
event
string<iri-reference>
Example:

"/api/v1/events/1"

code
string
discountType
enum<string>
Available options:
percentage,
fixed
discountValue
string
currency
string | null
maxUses
integer | null
Required range: x > 0
usedCount
integer
default:0
maxTickets
integer | null
Required range: x > 0
isActive
boolean
default:true
validFrom
string<date-time> | null
validTo
string<date-time> | null
dateCreated
string<date-time>
read-only
dateUpdated
string<date-time>
read-only
allowedTicketTypes
string<iri-reference>[]
Example:
maxDiscountAmount
string | null