Handy tools for interacting with pretix
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-31 19:54:40 +01:00
.gitignore Initial commit 2026-10-07 13:58:47 +02:00
pretix-add-to-checkin-list.sh Initial commit 2026-10-07 13:58:47 +02:00
pretix-get-order-ids.sh More helpers 2026-10-29 17:19:48 +01:00
pretix-get-waitinglist.sh Email and waiting list helpers 2026-10-29 19:09:22 +01:00
pretix-remove-from-waitinglist.sh Delete from waitinglist 2026-10-31 19:54:40 +01:00
pretix-send-email.sh Email and waiting list helpers 2026-10-29 19:09:22 +01:00
pretix-ticket-types.sh More helpers 2026-10-29 17:19:48 +01:00
readme.md Delete from waitinglist 2026-10-31 19:54:40 +01:00

Pretix utils

Get a token:

  • Organizer teams
  • eth0
  • Team members
  • API tokens

Setup with direnv:

$ cat .envrc
export PRETIX_TOKEN="xxx"
export SMTP_HOST="xxx"
export SMTP_PASSWORD="xxx"
export SMTP_PORT="xxx"
export SMTP_USER="xxx"
$ direnv allow

Get a list of orders that answered a question

./pretix-get-order-ids.sh 10 True

Add a user to a checkin list

./pretix-add-to-checkin-list.sh 17 1234

Add all users that answered a question to a checkin list

Question ID = 11
Answer = "True"
Checkin list = 17

./pretix-get-order-ids.sh 11 True | cut -f 1 | xargs -n 1 ./pretix-add-to-checkin-list.sh 17

! Make sure the checkin list has this disabled:

Tickets with a check-in on this list should be considered "used"
This is relevant in various situations, e.g. for deciding if a ticket can still be canceled by the customer.

Send email to all waiting list people

./pretix-get-waitinglist.sh | cut -f 2 | sort | uniq | xargs -n 1 ./pretix-send-email.sh

Delete everyone from the waitinglist, except the email addresses listed in keep.txt

comm -23 <(./pretix-get-waitinglist.sh | cut -f 2 | sort | uniq) keep.txt | xargs -n 1 ./pretix-remove-from-waitinglist.sh