Total scans
Total scans per event
- GET /fast-events/v1/admin/events/(integer: id)/scans
Retrieve the total number of scans per ticket type. If the
scan_location
in the list of scans is empty, it means that this is the amount of tickets that have not yet been scanned.Optional query parameters:
- _fields
A comma separated string of fields included in the response. For example
id,sold,tickets
.
Example request
$ curl \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ https://exampledomain.com/wp-json/fast-events/v1/admin/events/29/scans
<?php $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/29/scans'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/29/scans' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') response = requests.get(URL, headers=HEADERS, auth=AUTH) print(response.json())
Example response
{ "id": 29, "tickets": [ { "ticket_type": "Gold (Backstage)", "scans": [ { "scan_location": "", "scan_level": 0, "scan_total": 3 }, { "scan_location": "Main entrance", "scan_level": 0, "scan_total": 2 }, { "scan_location": "Backstage entrance", "scan_level": 1, "scan_total": 2 }, { "scan_location": "Free cocktail", "scan_level": 1, "scan_total": 4 } ] }, { "ticket_type": "Silver", "scans": [ { "scan_location": "Main entrance", "scan_level": 0, "scan_total": 2 } ] }, ], "_links": { "self": [ { "href": "https://ijsclubdwarsgracht.nl/wp-json/fast-events/v1/admin/events/29/scans" } ] } }
Changelog
Version
Description
1.0
Introduced.
Total scans in event-group
- GET /fast-events/v1/admin/events/(integer: id)/scans/group
Retrieve the total number of scans per ticket type across all events that are part of the same event group. If the
scan_location
in the list of scans is empty, it means that this is the amount of tickets that have not yet been scanned.Optional query parameters:
- _fields
A comma separated string of fields included in the response. For example
id,sold,tickets
.
Example request
$ curl \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ https://exampledomain.com/wp-json/fast-events/v1/admin/events/29/scans/group
<?php $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/29/scans/group'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/29/scans/group' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') response = requests.get(URL, headers=HEADERS, auth=AUTH) print(response.json())
Example response
{ "event_group": "Openair", "tickets": [ { "ticket_type": "Gold (Backstage)", "scans": [ { "scan_location": "", "scan_level": 0, "scan_total": 23 }, { "scan_location": "Main entrance", "scan_level": 0, "scan_total": 12 }, { "scan_location": "Backstage entrance", "scan_level": 1, "scan_total": 2 }, { "scan_location": "Free cocktail", "scan_level": 1, "scan_total": 7 } ] }, { "ticket_type": "Silver", "scans": [ { "scan_location": "Main entrance", "scan_level": 0, "scan_total": 3 } ] }, ], "_links": { "self": [ { "href": "https://ijsclubdwarsgracht.nl/wp-json/fast-events/v1/admin/events/29/scans/group" } ] } }
Changelog
Version
Description
2.0
Introduced.