Skip to content
Developer

Tickets

Events9 EndpointsEvent / Tickets

Ticket shop of an event: ticket categories with price, sale state and tickets left, max tickets per order and whether tickets are personalized. Logged in, member prices of the selected person are offered.

GET/api/event/public/ticket_shop/{identifier}

Not cached: tickets left change with every order.

Path parameters

identifierrequiredstring

Responses

200Ticket shop of the event

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/public/ticket_shop/42 \
  --header 'x-iw-jwt-token: <TOKEN>'
Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/public/ticket_seating/42 \
  --header 'x-iw-jwt-token: <TOKEN>'

An order with its tickets (codes, status, payment), opened with the token of the order.

GET/api/event/public/ticket_order/{token}

Path parameters

tokenrequiredstring

Responses

200The order with its tickets

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/public/ticket_order/42 \
  --header 'x-iw-jwt-token: <TOKEN>'

The own tickets (of the selected household) for an event, with their QR codes.

GET/api/event/customer/ticket/event/{identifier}

Path parameters

identifierrequiredstring

Responses

200Tickets of the household for the event

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/customer/ticket/event/42 \
  --header 'x-iw-jwt-token: <TOKEN>'

Public key of the ticket QR codes (JWT, RS256) for scanners that verify a ticket themselves.

GET/api/event/public/ticket_key

Responses

200kid, alg, sub and the public key (PEM)

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/public/ticket_key \
  --header 'x-iw-jwt-token: <TOKEN>'

Looks a ticket up without checking it in.

GET/api/event/ticket/{code}

Path parameters

coderequiredstring

Responses

200The ticket

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/ticket/42 \
  --header 'x-iw-jwt-token: <TOKEN>'

Checks a ticket in (entrance). `code` is the ticket code or the scanned QR code (signed JWT). With `?event=` the ticket must belong to that event.

POST/api/event/ticket/{code}/check_in

Refused: unknown code 1594, other event 1598, cancelled 1596, checked in already 1595 (with the time), unpaid 1597 (ignorable with x-ignore-iw-error-code: 1597 or the setting event_ticket_check_in_allow_unpaid).

Path parameters

coderequiredstring

Responses

200The checked in ticket

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/event/ticket/42/check_in \
  --header 'x-iw-jwt-token: <TOKEN>'

Takes a check-in back.

DELETE/api/event/ticket/{code}/check_in

Path parameters

coderequiredstring

Responses

200The ticket

Request
curl --request DELETE \
  --url https://your-instance.iw-erp.de/api/event/ticket/42/check_in \
  --header 'x-iw-jwt-token: <TOKEN>'

Ticket overview of an event: per category quota, sold (paid / payment open), checked in, revenue; totals.

GET/api/event/base_event/{identifier}/ticket_stats

Path parameters

identifierrequiredstring

Responses

200Ticket overview

Request
curl --request GET \
  --url https://your-instance.iw-erp.de/api/event/base_event/42/ticket_stats \
  --header 'x-iw-jwt-token: <TOKEN>'