{ "swagger": "2.0", "info": { "title": "Ticket Shop API", "description": "Ticket Shop API documentation.
Base URL: https://api.cm.com/ticketingapi/v2.0/ticketshop", "contact": { "email": "pascal.huijsmans@cm.com" }, "version": "2.0.0" }, "host": "api.cm.com/ticketingapi/v2.0/ticketshop", "schemes": [ "https" ], "paths": { "/events": { "get": { "tags": [ "Event" ], "summary": "Get all a list of future and/or ongoing events.", "description": "Get all a list of future and/or ongoing events.

Example: https://api.cm.com/ticketingapi/v2.0/ticketshop/events?key=KEY123", "operationId": "getEvents", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "X-CM-PRODUCTTOKEN", "in": "header", "description": "The product token.", "required": true, "type": "string" }, { "name": "key", "in": "query", "description": "In some cases, an organiser wants to lock the ticket store. This can be done with our access key option. The end user has a key to unlock the ticket store. In the case the access keys are activated, the key needs to be send to our API.", "required": false, "type": "string" } ], "responses": { "200": { "description": "Successful Operation.", "schema": { "type": "array", "items": { "$ref": "#/definitions/EventShopList" } } }, "default": { "description": "Error.", "schema": { "$ref": "#/definitions/Error" } } } } }, "/events/{event_uuid}": { "get": { "tags": [ "Event" ], "summary": "Get all event data for a specific event.", "description": "Get all event data for a specific event.

Example: https://api.cm.com/ticketingapi/v2.0/ticketshop/events/00000000-0000-0000-0000-000000000000?key=KEY123", "operationId": "getEvent", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "event_uuid", "in": "path", "description": "The UUID of an event can be retrieved from the Ticketing Dashboard.", "required": true, "type": "string" }, { "name": "X-CM-PRODUCTTOKEN", "in": "header", "description": "The product token.", "required": true, "type": "string" }, { "name": "key", "in": "query", "description": "In some cases, an organiser wants to lock the ticket store. This can be done with our access key option. The end user has a key to unlock the ticket store. In the case the access keys are activated, the key needs to be send to our API.", "required": false, "type": "string" } ], "responses": { "200": { "description": "Successful Operation.", "schema": { "$ref": "#/definitions/EventShop" } }, "default": { "description": "Error.", "schema": { "$ref": "#/definitions/Error" } } } } }, "/events/{event_uuid}/discountcodes/{code}": { "get": { "tags": [ "Discount Codes" ], "summary": "Get discount codes data for a specific event and given discount code.", "description": "Get discount codes data for a specific event and given discount code.

Example: https://api.cm.com/ticketingapi/v2.0/ticketshop/events/00000000-0000-0000-0000-000000000000/discountcodes/RElTQ09VTlQxMjM=?key=KEY123", "operationId": "getEventDiscountCode", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "event_uuid", "in": "path", "description": "The UUID of an event can be retrieved from the Ticketing Dashboard.", "required": true, "type": "string" }, { "name": "code", "in": "path", "description": "The discount code you want to check. This code must be base64 encoded.", "required": true, "type": "string" }, { "name": "X-CM-PRODUCTTOKEN", "in": "header", "description": "The product token.", "required": true, "type": "string" }, { "name": "key", "in": "query", "description": "In some cases, an organiser wants to lock the ticket store. This can be done with our access key option. The end user has a key to unlock the ticket store. In the case the access keys are activated, the key needs to be send to our API.", "required": false, "type": "string" } ], "responses": { "200": { "description": "Successful Operation.", "schema": { "$ref": "#/definitions/DiscountCode" } }, "default": { "description": "Error.", "schema": { "$ref": "#/definitions/Error" } } } } }, "/events/{event_uuid}/calendar/year/{year}/month/{month}/timeslots": { "get": { "tags": [ "Calendar" ], "summary": "Get all event calendar data by year and month.", "description": "Get all event calendar data by year and month.

Note: the time slot id can not be used on the create and update reservation end-point when using the month end-point

Example: https://api.cm.com/ticketingapi/v2.0/ticketshop/events/00000000-0000-0000-0000-000000000000/calendar/year/2020/month/01/timeslots", "operationId": "getEventCalendarTimeSlotsYearMonth", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "event_uuid", "in": "path", "description": "The UUID of an event can be retrieved from the Ticketing Dashboard.", "required": true, "type": "string" }, { "name": "year", "in": "path", "description": "The year number of which you want to retrieve the calendar for.", "required": true, "type": "string" }, { "name": "month", "in": "path", "description": "The month number of which you want to retrieve the calendar for.", "required": true, "type": "string" }, { "name": "X-CM-PRODUCTTOKEN", "in": "header", "description": "The product token.", "required": true, "type": "string" }, { "name": "key", "in": "query", "description": "In some cases, an organiser wants to lock the ticket store. This can be done with our access key option. The end user has a key to unlock the ticket store. In the case the access keys are activated, the key needs to be send to our API.", "required": false, "type": "string" } ], "responses": { "200": { "description": "Successful Operation.", "schema": { "$ref": "#/definitions/TimeSlotYearMonth" } }, "default": { "description": "Error.", "schema": { "$ref": "#/definitions/Error" } } } } }, "/events/{event_uuid}/calendar/year/{year}/month/{month}/day/{day}/timeslots": { "get": { "tags": [ "Calendar" ], "summary": "Get all event calendar data by year, month and day.", "description": "Get all event calendar data by year, month and day.

Note: the time slot id can now be used on the create and update reservation end-point as property 'time_slot_id'.

Example: https://api.cm.com/ticketingapi/v2.0/ticketshop/events/00000000-0000-0000-0000-000000000000/calendar/year/2020/month/01/day/31/timeslots", "operationId": "getEventCalendarTimeSlotsYearMonthDay", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "event_uuid", "in": "path", "description": "The UUID of an event can be retrieved from the Ticketing Dashboard.", "required": true, "type": "string" }, { "name": "year", "in": "path", "description": "The year number of which you want to retrieve the calendar for.", "required": true, "type": "string" }, { "name": "month", "in": "path", "description": "The month number of which you want to retrieve the calendar for.", "required": true, "type": "string" }, { "name": "day", "in": "path", "description": "The day number of which you want to retrieve the calendar for.", "required": true, "type": "string" }, { "name": "X-CM-PRODUCTTOKEN", "in": "header", "description": "The product token.", "required": true, "type": "string" }, { "name": "key", "in": "query", "description": "In some cases, an organiser wants to lock the ticket store. This can be done with our access key option. The end user has a key to unlock the ticket store. In the case the access keys are activated, the key needs to be send to our API.", "required": false, "type": "string" } ], "responses": { "200": { "description": "Successful Operation.", "schema": { "$ref": "#/definitions/TimeSlotYearMonthDay" } }, "default": { "description": "Error.", "schema": { "$ref": "#/definitions/Error" } } } } }, "/events/{event_uuid}/reservations": { "post": { "tags": [ "Reservation" ], "summary": "Create a new reservation for a specific event.", "description": "Create a new reservation for a specific event.

Example: https://api.cm.com/ticketingapi/v2.0/ticketshop/events/00000000-0000-0000-0000-000000000000/reservations?key=KEY123", "operationId": "postReservation", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "event_uuid", "in": "path", "description": "The UUID of an event can be retrieved from the Ticketing Dashboard.", "required": true, "type": "string" }, { "name": "X-CM-PRODUCTTOKEN", "in": "header", "description": "The product token.", "required": true, "type": "string" }, { "name": "key", "in": "query", "description": "In some cases, an organiser wants to lock the ticket store. This can be done with our access key option. The end user has a key to unlock the ticket store. In the case the access keys are activated, the key needs to be send to our API.", "required": false, "type": "string" }, { "name": "body", "in": "body", "description": "The reservation.", "required": true, "schema": { "$ref": "#/definitions/Order" } } ], "responses": { "201": { "description": "Successful Operation.", "schema": { "$ref": "#/definitions/Order" } }, "default": { "description": "Error.", "schema": { "$ref": "#/definitions/Error" } } } } }, "/events/{event_uuid}/reservations/{order_id}": { "put": { "tags": [ "Reservation" ], "summary": "Update a reservation for a specific event.", "description": "Update a reservation for a specific event.

Example: https://api.cm.com/ticketingapi/v2.0/ticketshop/events/00000000-0000-0000-0000-000000000000/reservations?key=KEY123", "operationId": "putReservation", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "event_uuid", "in": "path", "description": "The UUID of an event can be retrieved from the Ticketing Dashboard.", "required": true, "type": "string" }, { "name": "order_id", "in": "path", "description": "The order_id which is returned in the response body of the post reservation call.", "required": true, "type": "string" }, { "name": "X-CM-PRODUCTTOKEN", "in": "header", "description": "The product token.", "required": true, "type": "string" }, { "name": "key", "in": "query", "description": "In some cases, an organiser wants to lock the ticket store. This can be done with our access key option. The end user has a key to unlock the ticket store. In the case the access keys are activated, the key needs to be send to our API.", "required": false, "type": "string" }, { "name": "body", "in": "body", "description": "The reservation.", "required": true, "schema": { "$ref": "#/definitions/Order" } } ], "responses": { "200": { "description": "Successful Operation.", "schema": { "$ref": "#/definitions/Order" } }, "default": { "description": "Error.", "schema": { "$ref": "#/definitions/Error" } } } } }, "/events/{event_uuid}/reservations/{order_id}/checkout": { "post": { "tags": [ "Checkout" ], "summary": "Create a checkout/payment for a reservation, so you can finish the order.", "description": "Create a checkout/payment for a reservation, so you can finish the order.

Example: https://api.cm.com/ticketingapi/v2.0/ticketshop/events/00000000-0000-0000-0000-000000000000/reservations/CMTICKETS123XX/checkout?key=KEY123", "operationId": "postCheckout", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "event_uuid", "in": "path", "description": "The UUID of an event can be retrieved from the Ticketing Dashboard.", "required": true, "type": "string" }, { "name": "order_id", "in": "path", "description": "The order_id which is returned in the response body of the post/put reservation call.", "required": true, "type": "string" }, { "name": "X-CM-PRODUCTTOKEN", "in": "header", "description": "The product token.", "required": true, "type": "string" }, { "name": "key", "in": "query", "description": "In some cases, an organiser wants to lock the ticket store. This can be done with our access key option. The end user has a key to unlock the ticket store. In the case the access keys are activated, the key needs to be send to our API.", "required": false, "type": "string" }, { "name": "body", "in": "body", "description": "The checkout.", "required": true, "schema": { "$ref": "#/definitions/Checkout" } } ], "responses": { "201": { "description": "Successful Operation.", "schema": { "$ref": "#/definitions/Payment" } }, "default": { "description": "Error.", "schema": { "$ref": "#/definitions/Error" } } } } } }, "definitions": { "Error": { "required": [ "error" ], "properties": { "error": { "description": "Render an exception into an HTTP response.", "properties": { "message": { "description": "Readable error message.", "type": "string", "example": "Could not initialize event because event configuration is not complete." }, "error_code": { "description": "Unique error code to indentify the specific error.", "type": "int", "example": "400158" }, "details": { "description": "In some cases this field gives more additional info.", "type": "string", "example": "" } }, "type": "object" } }, "type": "object" }, "AccessKey": { "properties": { "key": { "type": "string", "example": "KEY123" }, "max_order_amount": { "type": "integer", "example": 2 } }, "type": "object", "xml": { "name": "AccessKey" } }, "CallbackUrls": { "properties": { "success_url": { "type": "string", "example": "https://cm.com/success" }, "failed_url": { "type": "string", "example": "https://cm.com/failed" }, "cancelled_url": { "type": "string", "example": "https://cm.com/cancelled" }, "expired_url": { "type": "string", "example": "https://cm.com/expired" } }, "type": "object", "xml": { "name": "CallbackUrls" } }, "Checkout": { "properties": { "order_id": { "type": "string", "example": "CMTICKETS123XX" }, "payment_method_uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "ideal_issuer_id": { "type": "string", "example": "ABNANL2A" }, "callback_urls": { "$ref": "#/definitions/CallbackUrls" } }, "type": "object", "xml": { "name": "Checkout" } }, "Country": { "properties": { "id": { "type": "string", "example": "NL" }, "name": { "type": "Translation" } }, "type": "object", "xml": { "name": "Country" } }, "CustomerData": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "first_name": { "type": "string", "example": "John" }, "initials": { "type": "string", "example": "J.A." }, "last_name": { "type": "string", "example": "Doe" }, "email": { "type": "string", "example": "john.doe@email.com" }, "mobile": { "type": "string", "example": "+31612345678" }, "gender": { "type": "string", "example": "M" }, "address_line_1": { "type": "string", "example": "Pazzanistraat" }, "address_line_1_building_number": { "type": "string", "example": "33" }, "address_line_2": { "type": "string", "example": "" }, "address_line_2_building_number": { "type": "string", "example": "" }, "zipcode": { "type": "string", "example": "1014 DB" }, "city": { "type": "string", "example": "Amsterdam" }, "state": { "type": "string", "example": "Noord-Holland" }, "organisation_name": { "type": "string", "example": "CM.com" }, "position_name": { "type": "string", "example": "Developer" }, "date_of_birth": { "type": "string", "example": "1990-01-31" }, "custom_field_1": { "type": "string", "example": "" }, "custom_field_2": { "type": "string", "example": "" }, "custom_field_3": { "type": "string", "example": "" }, "has_accepted_newsletter": { "type": "boolean", "example": true }, "created_at": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "updated_at": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "country_id": { "type": "string", "example": "NL" } }, "type": "object", "xml": { "name": "CustomerData" } }, "CustomerDataInputFields": { "properties": { "first_name": { "type": "string", "example": "REQUIRED" }, "last_name": { "type": "string", "example": "REQUIRED" }, "email": { "type": "string", "example": "REQUIRED" }, "mobile": { "type": "string", "example": "REQUIRED" }, "gender": { "type": "string", "example": "OPTIONAL" }, "position_name": { "type": "string", "example": "OPTIONAL" }, "date_of_birth": { "type": "string", "example": "OPTIONAL" }, "address_line_1": { "type": "string", "example": "NOT_IN_USE" }, "address_line_1_building_number": { "type": "string", "example": "NOT_IN_USE" }, "zipcode": { "type": "string", "example": "NOT_IN_USE" }, "city": { "type": "string", "example": "REQUIRED" }, "country_id": { "type": "string", "example": "REQUIRED" }, "organisation_name": { "type": "string", "example": "NOT_IN_USE" }, "custom_field_1": { "type": "string", "example": "OPTIONAL" }, "custom_field_1_label": { "$ref": "#/definitions/Translation" }, "custom_field_2": { "type": "string", "example": "NOT_IN_USE" }, "custom_field_2_label": { "$ref": "#/definitions/Translation" }, "custom_field_3": { "type": "string", "example": "NOT_IN_USE" }, "custom_field_3_label": { "$ref": "#/definitions/Translation" } }, "type": "object", "xml": { "name": "CustomerDataInputFields" } }, "DiscountCode": { "properties": { "code": { "type": "string", "example": "DISCOUNT123" }, "external_code": { "type": "string" }, "fixed_balance": { "type": "number", "example": 0 }, "percentage": { "type": "number", "example": 0 }, "capacity": { "type": "integer", "example": 100 }, "stock": { "type": "integer", "example": 93 }, "discount_type_id": { "type": "string", "example": "DISCOUNT_TICKET_TYPE" }, "description": { "$ref": "#/definitions/Translation" }, "ticket_types": { "type": "array", "items": { "$ref": "#/definitions/DiscountCodeTicketType" } } }, "type": "object", "xml": { "name": "DiscountCode" } }, "DiscountCodeTicketType": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "max_order_amount": { "type": "integer", "example": 2 }, "fixed_balance": { "type": "number", "example": 3.5 } }, "type": "object", "xml": { "name": "DiscountCodeTicketType" } }, "Event": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "name": { "type": "string", "example": "CM Festival" }, "start_at": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "end_at": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "online_from": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "online_till": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "is_ongoing": { "type": "boolean", "example": false }, "description": { "$ref": "#/definitions/Translation" }, "discount_label": { "$ref": "#/definitions/Translation" }, "minutes_to_order": { "type": "number", "example": 20 }, "shop_image": { "type": "string", "example": "https://www.cm.com/cdn/cm/cm.svg" }, "is_discount_enabled": { "type": "boolean", "example": false }, "is_calendar_enabled": { "type": "boolean", "example": false }, "is_order_invoicing_enabled": { "type": "boolean", "example": false }, "google_analytics_tracking_code": { "type": "string", "example": "" }, "google_adwords_conversion_code": { "type": "string", "example": "" }, "google_adwords_conversion_label": { "type": "string", "example": "" }, "google_adwords_remarketing_code": { "type": "string", "example": "" }, "google_adwords_remarketing_label": { "type": "string", "example": "" }, "facebook_pixel_tracking_code": { "type": "string", "example": "" }, "support_email": { "type": "string", "example": "info@cm.com" }, "organiser_entity": { "type": "string", "example": "CM.com" }, "privacy_policy_url": { "type": "string", "example": "https://cm.com" }, "newsletter_label": { "$ref": "#/definitions/Translation" }, "terms_and_conditions_url": { "type": "string", "example": "https://cm.com" } }, "type": "object", "xml": { "name": "Event" } }, "EventShop": { "properties": { "event": { "example": "", "$ref": "#/definitions/Event" }, "shop_style": { "example": "", "$ref": "#/definitions/ShopStyle" }, "venue": { "example": "", "$ref": "#/definitions/Venue" }, "categories": { "type": "array", "items": { "$ref": "#/definitions/TicketCategory" } }, "ticket_statuses": { "type": "array", "items": { "$ref": "#/definitions/TicketStatus" } }, "customer_data": { "example": "", "$ref": "#/definitions/CustomerDataInputFields" }, "payment_methods": { "type": "array", "items": { "$ref": "#/definitions/PaymentMethod" } }, "ideal_issuers": { "type": "array", "items": { "$ref": "#/definitions/IdealIssuer" } }, "access_key": { "example": "", "$ref": "#/definitions/AccessKey" } }, "type": "object", "xml": { "name": "EventShop" } }, "EventShopList": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "name": { "type": "string", "example": "CM Festival" }, "start_at": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "end_at": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "venue_name": { "type": "string", "example": "Westergasfabriek" } }, "type": "object", "xml": { "name": "EventShopList" } }, "IdealIssuer": { "properties": { "id": { "type": "string", "example": "ABNANL2A" }, "name": { "type": "string", "example": "ABN Amro" } }, "type": "object", "xml": { "name": "IdealIssuer" } }, "Order": { "properties": { "order_id": { "type": "string", "example": "CMTICKETS123XX" }, "due_at": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "time_slot_id": { "type": "string", "example": "2020-01-31T14:00:00+00:00" }, "customer_data": { "$ref": "#/definitions/CustomerData" }, "ticket_types": { "type": "array", "items": { "$ref": "#/definitions/OrderTicketType" } } }, "type": "object", "xml": { "name": "Order" } }, "OrderTicketType": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "amount": { "type": "integer", "example": 5 } }, "type": "object", "xml": { "name": "OrderTicketType" } }, "Payment": { "properties": { "order_id": { "type": "string", "example": "CMTICKETS123XX" }, "due_at": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "status": { "type": "string", "example": "OPEN" }, "redirect_url": { "type": "string", "example": "https://cm.com/payment" } }, "type": "object", "xml": { "name": "Checkout" } }, "PaymentMethod": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "name": { "type": "string", "example": "Bancontact" }, "description": { "type": "string", "example": "" }, "fixed_fee": { "type": "number", "example": 1.2 }, "percentage_fee": { "type": "number", "example": 2.1 }, "image_uri": { "type": "string", "example": "https://www.cm.com/cdn/cm/cm.svg" }, "display_order": { "type": "integer", "example": 10 } }, "type": "object", "xml": { "name": "PaymentMethod" } }, "ShopStyle": { "properties": { "general_background_color": { "type": "string", "example": "#FFFFFF" }, "general_font_color": { "type": "number", "example": "#FFFFFF" }, "general_link_color": { "type": "number", "example": "#FFFFFF" }, "category_background_color": { "type": "number", "example": "#FFFFFF" }, "category_font_color": { "type": "string", "example": "#FFFFFF" }, "category_background_color_highlight": { "type": "number", "example": "#FFFFFF" }, "category_font_color_highlight": { "type": "string", "example": "#FFFFFF" }, "is_showing_event_name": { "type": "boolean", "example": true }, "is_showing_event_venue": { "type": "boolean", "example": true }, "is_showing_event_date": { "type": "boolean", "example": true } }, "type": "object", "xml": { "name": "ShopStyle" } }, "Tag": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "content": { "type": "string", "example": "weekend-tickets" } }, "type": "object", "xml": { "name": "Tag" } }, "TicketCategory": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "display_order": { "type": "integer", "example": 10 }, "is_visible": { "type": "boolean", "example": true }, "is_initialized": { "type": "boolean", "example": true }, "max_order_amount": { "type": "integer", "example": 2 }, "name": { "$ref": "#/definitions/Translation" }, "description": { "$ref": "#/definitions/Translation" }, "tickets": { "type": "array", "items": { "$ref": "#/definitions/TicketType" } } }, "type": "object", "xml": { "name": "TicketCategory" } }, "TicketStatus": { "properties": { "id": { "type": "string", "example": "ONLINE" }, "status": { "$ref": "#/definitions/Translation" } }, "type": "object", "xml": { "name": "TicketStatus" } }, "TicketType": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "price": { "type": "number", "example": "25.5" }, "fixed_fee": { "type": "number", "example": "1.5" }, "is_visible": { "type": "boolean", "example": true }, "is_upsell": { "type": "boolean", "example": false }, "is_selectable_on_calendar": { "type": "boolean", "example": false }, "min_order_amount": { "type": "integer", "example": 1 }, "max_order_amount": { "type": "integer", "example": 10 }, "increment_amount": { "type": "integer", "example": 2 }, "online_from": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "online_till": { "type": "string", "example": "2020-01-31T23:59:59+00:00" }, "display_order": { "type": "integer", "example": 10 }, "name": { "$ref": "#/definitions/Translation" }, "subtitle": { "$ref": "#/definitions/Translation" }, "description": { "$ref": "#/definitions/Translation" }, "ticket_status_type_id": { "type": "string", "example": "ONLINE" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/Tag" } } }, "type": "object", "xml": { "name": "TicketType" } }, "TimeSlotTicketType": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "name": { "$ref": "#/definitions/Translation" } }, "type": "object", "xml": { "name": "TimeSlotTicketType" } }, "TimeSlotYearMonth": { "properties": { "id": { "type": "string", "example": "2020-01-31" }, "start_at": { "type": "string", "example": "2020-01-31T23:00:00+00:00" }, "end_at": { "type": "string", "example": "2020-01-31T22:59:59+00:00" }, "status_id": { "type": "string", "example": "OPEN" }, "stock": { "type": "string", "example": 288 } }, "type": "object", "xml": { "name": "Tag" } }, "TimeSlotYearMonthDay": { "properties": { "id": { "type": "string", "example": "2020-01-31T14:00:00+00:00" }, "start_at": { "type": "string", "example": "2020-01-31T14:00:00+00:00" }, "end_at": { "type": "string", "example": "2020-01-31T14:30:00+00:00" }, "status_id": { "type": "string", "example": "OPEN" }, "stock": { "type": "string", "example": 15 }, "ticket_types": { "type": "array", "items": { "$ref": "#/definitions/TimeSlotTicketType" } } }, "type": "object", "xml": { "name": "TimeSlotYearMonthDay" } }, "Translation": { "properties": { "nl": { "type": "string", "example": "Vertaling" }, "en": { "type": "string", "example": "Translation" }, "fr": { "type": "string", "example": "Traduction" }, "de": { "type": "string", "example": "\u00dcbersetzung" } }, "type": "object", "xml": { "name": "Translation" } }, "Venue": { "properties": { "name": { "type": "string", "example": "Westergasfabriek" }, "address_line_1": { "type": "string", "example": "Pazzanistraat 33" }, "address_line_2": { "type": "string", "example": "" }, "zipcode": { "type": "string", "example": "1014 DB" }, "city": { "type": "string", "example": "Amsterdam" }, "country_id": { "type": "string", "example": "NL" } }, "type": "object", "xml": { "name": "Event" } }, "TicketTypeOrderAmount": { "properties": { "uuid": { "type": "string", "example": "00000000-0000-0000-0000-000000000000" }, "name": { "type": "string" }, "amount": { "type": "integer" }, "is_canceled": { "type": "boolean" }, "ticket_type_price_incl_vat": { "type": "number" }, "total_balance_excl_service_fee": { "type": "number" } }, "type": "object", "xml": { "name": "TicketTypeAmount" } } } }