Skip to Content
Developers
API referenceTicket types

Update a ticket type

Update a ticket type. Only the fields you send are changed.

PATCH
/ticket-types/{id}

Update a ticket type. Only the fields you send are changed.

Authorization

http
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body

Create (POST) or update (PATCH) a ticket type. Amounts are integer cents including VAT; vat_rate is a percentage (0, 9 or 21). name and description take a string (in the event's default language) or an object of translations.

event*string
Lengthlength <= 64
name*string
description?string
price*integer
Range0 <= value <= 10000000
vat_rate*VatRate
Value in2190
administration_fee?|
Range0 <= value <= 1000000
limit?|
Range0 <= value
min_per_order?integer
Range0 <= value <= 1000
max_per_order?|
Range1 <= value <= 1000
available_from?|
Formatdate-time
available_until?|
Formatdate-time
availability?EventAvailabilitySetting
Value in"auto""hidden""sold_out"
group_size?|
Range2 <= value <= 100

Response Body

TicketTypeResource

application/json
  1. response
id*string
object*string
event*string
name*unknown
description*unknown
translations*
currency*string
price*integer|null
price_excl_vat*integer|null
vat_rate*number|null
administration_fee*integer|null
limit*integer|null
sold*integer
available*integer|null
availability*string
available_from*string|null
available_until*string|null
min_per_order*integer
max_per_order*integer|null
group_size*integer|null
number_of_days*integer|null
sort_order*integer
created_at*string|null
updated_at*string|null
Example Request
curl -X PATCH 'https://api.tixxy.nl/v1/ticket-types/string' \  -H 'Content-Type: application/json' \  -d '{  "event": "string",  "name": "string",  "price": 0,  "vat_rate": 21}'
Example Response
{  "id": "string",  "object": "ticket_type",  "event": "string",  "name": null,  "description": null,  "translations": {    "name": [      null    ],    "description": [      null    ]  },  "currency": "eur",  "price": 0,  "price_excl_vat": 0,  "vat_rate": 0,  "administration_fee": 0,  "limit": 0,  "sold": 0,  "available": 0,  "availability": "string",  "available_from": "string",  "available_until": "string",  "min_per_order": 0,  "max_per_order": 0,  "group_size": 0,  "number_of_days": 0,  "sort_order": 0,  "created_at": "string",  "updated_at": "string"}