Check-in

POST https://api.e-guma.ch/v1/ticketing/tickets/{ticket_number}/checkin.json?apikey={api-key}

Parameters

ticket_number required

The 19 digit ticket number

api-key
required

Return

is_successful

Indicates if the ticket could be checked-in. If the ticket could not be checked-in, you find the reason in unsuccessful_code

product_id

The ID of the product. It will only be returned if the check-in was successful.

ticket_type_id

The ID of the ticket type. It will only be returned if the check-in was successful.

unsuccessful_code

There are 3 possible error codes:

  • ticket_not_found
  • ticket_deleted
  • ticket_already_checkedin

Example: Successful check-in

POST https://api.e-guma.ch/v1/ticketing/tickets/4688892266798743783/checkin.json?apikey=510e32c594d84816a4af9df1
{
    "is_successful": true,
    "product_id": "61ecd917e336544444750b28", 
    "ticket_type_id": "49f4f00f-5f64-4fe4-b0d4-3cb37517c5c7",
    "unsuccessful_code": null,
    "unsuccessful_message": null
}

Example: Unsuccessful check-in

POST https://api.e-guma.ch/v1/ticketing/tickets/4688892266798743783/checkin.json?apikey=510e32c594d84816a4af9df1
{
    "is_successful": false,
    "unsuccessful_code": "ticket_already_checkedin"
}