Check-out

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

Parameters

ticket_number
required
The 19 digit ticket number
api-key
required

Return

is_successfulIndicates if the ticket could be checked out. If the ticket could not be checked-out, you find the reason in unsuccessful_code
unsuccessful_codeThere are 3 possible error codes:
- ticket_not_found

- ticket_deleted

- ticket_not_checkedin
product_idThe ID of the product. It will only be returned if the checkout was successful.
ticket_type_idThe ID of the ticket type. It will only be returned if the checkout was successful.

Example: Successful checkout

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

Example: Unsuccessful checkout

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