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

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

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.