Skip to content

Step by step guide on how to get QR code for special event

Step 1: Find a special event

You need to call museum API to get list of special events [link]

  curl -i -X GET \
  -u <username>:<password> \
  'https://creativest.apishowdown.com/_mock/museum/museum/special-events?endDate=2023-04-18&limit=15&page=2&startDate=2023-02-23'

Step 2: Find a special event

Send a request to buy a ticket [link]

curl -i -X POST \
  -u <username>:<password> \
  https://creativest.apishowdown.com/_mock/museum/museum/tickets \
  -H 'Content-Type: application/json' \
  -d '{
    "ticketType": "general",
    "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
    "ticketDate": "2023-09-05",
    "email": "todd@example.com"
  }'

Step 3: Get QR code

Send a request to get QR code [link]

curl -i -X GET \
  -u <username>:<password> \
  'https://creativest.apishowdown.com/_mock/museum/museum/tickets/{ticketId}/qr'