Trigger · 1 of 9Order paid
The online store sends the order to the system the moment it is paid.
- Tool
- Shopify
- Hands on
- The order, its items and the buyer
Decision · 2 of 9Signed by the store?
Each order is checked against a secret only the store and the system share, so nobody can forge a ticket.
- Tool
- Shopify
- Hands on
- A trusted order, or a refusal
- Ways out
- Signed: What is each item? · Unsigned: Refused
Decision · 3 of 9What is each item?
Each item is sorted on its own: a ticket for a show, or extra raffle entries for someone who already holds a ticket. A ticket always wins, so a look-alike name can never cost a buyer their pass, and an item the system cannot place is reported to the team with its order, never dropped in silence.
- Tool
- Postgres
- Hands on
- A ticket, or extra entries
- Ways out
- Ticket: Passes, saved at once · Entries: Record extra entries
End · 4 of 9Refused
An order the store did not sign is turned away before anything is written.
- Tool
- The system
- Leaves
- Nothing written
Step · 5 of 9Passes, saved at once
Every ticket becomes its own pass, so tickets can be handed on; a raffle ticket becomes one pass with three entries for each one bought. The whole order is saved in one write, so the daily retry never picks up half an order.
- Tool
- Postgres
- Hands on
- Every pass for the order
End · 6 of 9Record extra entries
Three raffle entries are recorded for each one bought, against its show, with no new pass.
- Tool
- Postgres
- Leaves
- Raffle entries for the draw
Decision · 7 of 9Email on the order?
Some checkouts give only a phone number, so the system checks there is somewhere to send the passes. Only a real address is added to the contact list.
- Tool
- Shopify
- Hands on
- Send now, or hold for the gate
- Ways out
- Yes: Email the passes · No: Held, team told
End · 8 of 9Email the passes
The Apple Wallet passes are generated and the buyer gets one email with all of them. If sending fails, they stay waiting for the daily retry.
- Tool
- Resend
- Leaves
- Wallet passes in the buyer's inbox
End · 9 of 9Held, team told
The passes are kept for check-in at the gate, and the team is emailed so they can reach the buyer by phone.
- Tool
- Resend
- Leaves
- An alert to the team