Handy tools for interacting with pretix
- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| pretix-add-to-checkin-list.sh | ||
| pretix-get-order-ids.sh | ||
| pretix-get-waitinglist.sh | ||
| pretix-remove-from-waitinglist.sh | ||
| pretix-send-email.sh | ||
| pretix-ticket-types.sh | ||
| readme.md | ||
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