For AI agents: visit https://developers.e-guma.ch/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
POST https://api.e-guma.ch/v1/ticketing/tickets/{ticket_number}/checkout.json?apikey={api-key}
| |
|---|
ticket_numberrequired | The 19 digit ticket number |
api-key
required | |
| |
|---|
| is_successful | Indicates if the ticket could be checked out. If the ticket could not be checked-out, you find the reason in unsuccessful_code |
| unsuccessful_code | There are 3 possible error codes:
- ticket_not_found
- ticket_deleted
- ticket_not_checkedin
|
| product_id | The ID of the product. It will only be returned if the checkout was successful. |
| ticket_type_id | The ID of the ticket type. It will only be returned if the checkout was successful. |
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"
}
POST https://api.e-guma.ch/v1/ticketing/tickets/4688892266798743783/checkout.json?apikey=510e32c594d84816a4af9df1
{
"is_successful": false,
"unsuccessful_code": "ticket_not_checkedin"
}