Check-out
POST https://api.e-guma.ch/v1/ticketing/tickets/{ticket_number}/checkout.json?apikey={api-key}
Parameters
ticket_numberrequired | The 19 digit ticket number |
api-keyrequired |
Return
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. |
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"
}
Updated 9 months ago