{"openapi":"3.1.0","info":{"title":"GateHopper Public API","version":"1.1.0","summary":"Read-only access to the public events listed on GateHopper, and to an organizer's own data with an API key.","description":"List and look up the published, public events on GateHopper: dates, venues, ticket types, prices and whether tickets are on sale. No API key is needed for these, and requests may come from a browser on any origin.\n\nThe Organizer API under `/v1` lets an organization read its own events, order summaries and sales with an API key, from a server only. Orders never include buyer names, emails or phone numbers.\n\nFull guide: https://gatehopper.com/developers","contact":{"name":"GateHopper","url":"https://gatehopper.com/contact"},"termsOfService":"https://gatehopper.com/terms-of-use"},"externalDocs":{"description":"Developer guide","url":"https://gatehopper.com/developers"},"servers":[{"url":"https://api.gatehopper.com","description":"Production"}],"security":[],"tags":[{"name":"Events","description":"Published, public events."},{"name":"Organizer API","description":"An organization's own events, order summaries and sales, read with an organizer API key."}],"paths":{"/events":{"get":{"tags":["Events"],"operationId":"listEvents","summary":"List events","description":"Published, public events that are upcoming or under way. Events that have ended are not listed. Ticket types are not included here: fetch a single event for those.","parameters":[{"name":"event_phase","in":"query","description":"`upcoming` for events that haven't started, `ongoing` for events under way, or `all` for both.","schema":{"type":"string","enum":["all","upcoming","ongoing"],"default":"all"}},{"name":"search","in":"query","description":"Case-insensitive text matched against the title and description.","schema":{"type":"string"}},{"name":"location","in":"query","description":"Case-insensitive text matched against the venue name, city and province.","schema":{"type":"string"},"example":"Saskatoon"},{"name":"tags","in":"query","description":"Comma-separated tags. An event matches if it has any of them.","schema":{"type":"string"},"example":"market,holiday"},{"name":"price_min","in":"query","description":"Lowest `min_ticket_price` to include, in the event's currency.","schema":{"type":"number","minimum":0}},{"name":"price_max","in":"query","description":"Highest `min_ticket_price` to include, in the event's currency.","schema":{"type":"number","minimum":0}},{"name":"start_date_from","in":"query","description":"Only events starting at or after this time (ISO 8601).","schema":{"type":"string","format":"date-time"}},{"name":"start_date_to","in":"query","description":"Only events starting at or before this time (ISO 8601).","schema":{"type":"string","format":"date-time"}},{"name":"sort_by","in":"query","schema":{"type":"string","enum":["start_datetime","created_at","title"],"default":"start_datetime"}},{"name":"sort_order","in":"query","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"limit","in":"query","description":"Events per page. Values above 200 are treated as 200.","schema":{"type":"integer","minimum":1,"maximum":200,"default":48}},{"name":"offset","in":"query","description":"Number of events to skip.","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"A page of events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventListResponse"}}}},"500":{"$ref":"#/components/responses/Error"}}}},"/events/{event}":{"get":{"tags":["Events"],"operationId":"getEvent","summary":"Get an event","description":"One published, public event with its ticket types. Events that have ended can still be fetched.","parameters":[{"name":"event","in":"path","required":true,"description":"The event's `event_id` (a UUID) or its `slug`.","schema":{"type":"string"},"example":"our-best-to-you-handmade-market-saskatoon"}],"responses":{"200":{"description":"The event.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventResponse"}}}},"404":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"}}}},"/v1/events":{"get":{"tags":["Organizer API"],"operationId":"partnerListEvents","summary":"List your events","description":"The organization's own events, drafts included, newest start first. Needs the `events:read` scope.","security":[{"organizerApiKey":["events:read"]}],"parameters":[{"name":"status","in":"query","description":"Only events with this status.","schema":{"type":"string","enum":["draft","published","cancelled","completed"]}},{"$ref":"#/components/parameters/PartnerPage"},{"$ref":"#/components/parameters/PartnerLimit"}],"responses":{"200":{"description":"A page of events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerEventList"}}}},"400":{"$ref":"#/components/responses/PartnerError400"},"401":{"$ref":"#/components/responses/PartnerError401"},"403":{"$ref":"#/components/responses/PartnerError403"},"429":{"$ref":"#/components/responses/PartnerRateLimited"},"500":{"$ref":"#/components/responses/PartnerError500"},"503":{"$ref":"#/components/responses/PartnerError503"}}}},"/v1/events/{event_id}":{"get":{"tags":["Organizer API"],"operationId":"partnerGetEvent","summary":"Get one of your events","description":"One event with its ticket types. An event belonging to another organization returns 404. Needs `events:read`.","security":[{"organizerApiKey":["events:read"]}],"parameters":[{"$ref":"#/components/parameters/PartnerEventId"}],"responses":{"200":{"description":"The event.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerEventDetailResponse"}}}},"400":{"$ref":"#/components/responses/PartnerError400"},"401":{"$ref":"#/components/responses/PartnerError401"},"403":{"$ref":"#/components/responses/PartnerError403"},"404":{"$ref":"#/components/responses/PartnerError404"},"429":{"$ref":"#/components/responses/PartnerRateLimited"},"500":{"$ref":"#/components/responses/PartnerError500"},"503":{"$ref":"#/components/responses/PartnerError503"}}}},"/v1/events/{event_id}/sales":{"get":{"tags":["Organizer API"],"operationId":"partnerGetEventSales","summary":"Get an event's sales","description":"Sales for one event: a summary, then by ticket type and by day (days in the event's time zone). Needs `reports:read`.","security":[{"organizerApiKey":["reports:read"]}],"parameters":[{"$ref":"#/components/parameters/PartnerEventId"}],"responses":{"200":{"description":"The event's sales.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerEventSalesResponse"}}}},"400":{"$ref":"#/components/responses/PartnerError400"},"401":{"$ref":"#/components/responses/PartnerError401"},"403":{"$ref":"#/components/responses/PartnerError403"},"404":{"$ref":"#/components/responses/PartnerError404"},"429":{"$ref":"#/components/responses/PartnerRateLimited"},"500":{"$ref":"#/components/responses/PartnerError500"},"503":{"$ref":"#/components/responses/PartnerError503"}}}},"/v1/orders":{"get":{"tags":["Organizer API"],"operationId":"partnerListOrders","summary":"List your orders","description":"Order summaries for the organization's events, newest first. Complimentary orders are left out. Orders never include buyer names, emails, phone numbers or addresses. An `event_id` from another organization matches nothing. Needs `orders:read`.","security":[{"organizerApiKey":["orders:read"]}],"parameters":[{"name":"event_id","in":"query","description":"Only orders for this event.","schema":{"type":"string","format":"uuid"}},{"name":"created_from","in":"query","description":"Only orders placed at or after this time: an ISO 8601 date or date-time, inclusive. A date alone means the start of that UTC day.","schema":{"type":"string","format":"date-time"}},{"name":"created_to","in":"query","description":"Only orders placed at or before this time: an ISO 8601 date or date-time, inclusive.","schema":{"type":"string","format":"date-time"}},{"name":"status","in":"query","description":"Only orders with this status.","schema":{"type":"string","enum":["pending","confirmed","cancelled","expired"]}},{"$ref":"#/components/parameters/PartnerPage"},{"$ref":"#/components/parameters/PartnerLimit"}],"responses":{"200":{"description":"A page of order summaries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOrderList"}}}},"400":{"$ref":"#/components/responses/PartnerError400"},"401":{"$ref":"#/components/responses/PartnerError401"},"403":{"$ref":"#/components/responses/PartnerError403"},"429":{"$ref":"#/components/responses/PartnerRateLimited"},"500":{"$ref":"#/components/responses/PartnerError500"},"503":{"$ref":"#/components/responses/PartnerError503"}}}},"/v1/orders/{order_id}":{"get":{"tags":["Organizer API"],"operationId":"partnerGetOrder","summary":"Get one of your orders","description":"One order summary with its ticket counts by type. Needs `orders:read`.","security":[{"organizerApiKey":["orders:read"]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The order summary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOrderDetailResponse"}}}},"400":{"$ref":"#/components/responses/PartnerError400"},"401":{"$ref":"#/components/responses/PartnerError401"},"403":{"$ref":"#/components/responses/PartnerError403"},"404":{"$ref":"#/components/responses/PartnerError404"},"429":{"$ref":"#/components/responses/PartnerRateLimited"},"500":{"$ref":"#/components/responses/PartnerError500"},"503":{"$ref":"#/components/responses/PartnerError503"}}}}},"components":{"securitySchemes":{"organizerApiKey":{"type":"http","scheme":"bearer","bearerFormat":"gh_live_… (production) or gh_test_… (staging)","description":"An organizer API key, sent as `Authorization: Bearer <key>`. An account admin creates it in the organizer dashboard (Settings → API keys) once GateHopper has turned API access on for the organization. Keys are read-only, expire after 90 days and work only from a server: a request with an `Origin` header is refused, and so is a key in the query string."}},"parameters":{"PartnerPage":{"name":"page","in":"query","description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}},"PartnerLimit":{"name":"limit","in":"query","description":"Items per page.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},"PartnerEventId":{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}},"responses":{"PartnerError400":{"description":"`invalid_request`: a query parameter is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerErrorResponse"},"example":{"error":{"code":"invalid_request","message":"limit must be at most 100"}}}}},"PartnerError401":{"description":"`invalid_api_key` (missing, malformed, revoked, for the other environment, sent in the URL, or API access turned off) or `api_key_expired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerErrorResponse"},"example":{"error":{"code":"invalid_api_key","message":"Missing or invalid API key."}}}}},"PartnerError403":{"description":"`insufficient_scope` (the key lacks the scope) or `browser_not_allowed` (the request carried an `Origin` header).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerErrorResponse"},"example":{"error":{"code":"insufficient_scope","message":"This API key does not have the orders:read scope."}}}}},"PartnerError404":{"description":"`not_found`: no such item in this organization. Another organization's IDs, and IDs that aren't valid, answer this too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerErrorResponse"},"example":{"error":{"code":"not_found","message":"Not found."}}}}},"PartnerError503":{"description":"`unavailable`: the API couldn't check the key or its limit just then. Retry shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerErrorResponse"},"example":{"error":{"code":"unavailable","message":"The API is temporarily unavailable. Please try again shortly."}}}}},"PartnerError500":{"description":"`internal_error`: a problem on our side. Wait and try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerErrorResponse"},"example":{"error":{"code":"internal_error","message":"Something went wrong. Please try again."}}}}},"PartnerRateLimited":{"description":"`rate_limited`: more than 120 requests a minute with this key.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerErrorResponse"},"example":{"error":{"code":"rate_limited","message":"Too many requests. Each API key may make 120 requests a minute."}}}}},"Error":{"description":"The request failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"success":false,"error":{"code":"NOT_FOUND","message":"Event not found or not public"},"timestamp":"2026-11-20T22:30:01.124Z"}}}}},"schemas":{"PartnerErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_api_key","api_key_expired","insufficient_scope","browser_not_allowed","rate_limited","not_found","invalid_request","unavailable","internal_error"]},"message":{"type":"string","description":"For people; its wording can change."}}}}},"PartnerListMeta":{"type":"object","required":["total","page","limit","pages","has_more"],"properties":{"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"pages":{"type":"integer"},"has_more":{"type":"boolean"}}},"PartnerEvent":{"type":"object","description":"One of the organization's events.","required":["event_id","slug","title","status","phase","is_public","start_datetime","end_datetime","timezone","currency","location_name","created_at","updated_at"],"properties":{"event_id":{"type":"string","format":"uuid"},"slug":{"type":["string","null"]},"title":{"type":"string"},"status":{"type":["string","null"],"description":"`draft`, `published`, `cancelled` or `completed`."},"phase":{"type":["string","null"],"description":"`upcoming`, `ongoing` or `past`."},"is_public":{"type":"boolean"},"start_datetime":{"type":["string","null"],"format":"date-time"},"end_datetime":{"type":["string","null"],"format":"date-time"},"timezone":{"type":["string","null"],"example":"America/Vancouver"},"currency":{"type":["string","null"],"example":"CAD"},"location_name":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"PartnerTicketType":{"type":"object","required":["ticket_type_id","name","price","currency","quantity","sold"],"properties":{"ticket_type_id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"price":{"type":["string","null"],"pattern":"^-?\\d+\\.\\d{2}$","example":"8.00"},"currency":{"type":["string","null"]},"quantity":{"type":["integer","null"],"description":"Tickets on offer; null when capacity is set per time slot."},"sold":{"type":"integer","description":"Tickets holding a place, complimentary included."}}},"PartnerEventDetail":{"allOf":[{"$ref":"#/components/schemas/PartnerEvent"},{"type":"object","required":["ticket_types"],"properties":{"ticket_types":{"type":"array","items":{"$ref":"#/components/schemas/PartnerTicketType"}}}}]},"PartnerEventList":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PartnerEvent"}},"meta":{"$ref":"#/components/schemas/PartnerListMeta"}}},"PartnerEventDetailResponse":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PartnerEventDetail"}}},"PartnerOrder":{"type":"object","description":"An order summary. Never the buyer's name, email, phone number or address, and no payment card details.","required":["order_id","order_number","event_id","status","currency","subtotal","discount","fees","taxes","total","ticket_count","tickets_refunded","payment_method","checkout_type","created_at","updated_at"],"properties":{"order_id":{"type":"string","format":"uuid"},"order_number":{"type":"string","example":"K7QX4M2P"},"event_id":{"type":["string","null"],"format":"uuid"},"status":{"type":"string","description":"`pending`, `confirmed`, `cancelled` or `expired`."},"currency":{"type":["string","null"],"example":"CAD"},"subtotal":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"discount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"fees":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"taxes":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"ticket_count":{"type":"integer"},"tickets_refunded":{"type":"integer"},"payment_method":{"type":["string","null"]},"checkout_type":{"type":"string","enum":["logged_in","guest"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"PartnerOrderTicketType":{"type":"object","required":["ticket_type_id","name","quantity","checked_in"],"properties":{"ticket_type_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"quantity":{"type":"integer"},"checked_in":{"type":"integer"}}},"PartnerOrderDetail":{"allOf":[{"$ref":"#/components/schemas/PartnerOrder"},{"type":"object","required":["tickets_by_type"],"properties":{"tickets_by_type":{"type":"array","items":{"$ref":"#/components/schemas/PartnerOrderTicketType"}}}}]},"PartnerOrderList":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PartnerOrder"}},"meta":{"$ref":"#/components/schemas/PartnerListMeta"}}},"PartnerOrderDetailResponse":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PartnerOrderDetail"}}},"PartnerEventSales":{"type":"object","required":["event_id","currency","timezone","summary","by_ticket_type","by_day"],"properties":{"event_id":{"type":"string","format":"uuid"},"currency":{"type":["string","null"]},"timezone":{"type":"string","description":"The time zone `by_day` dates are in."},"summary":{"type":"object","required":["tickets_sold","tickets_refunded","gross_sales","discounts","returns","net_sales","service_fees","taxes","total_sales","checked_in","capacity"],"properties":{"tickets_sold":{"type":"integer"},"tickets_refunded":{"type":"integer"},"gross_sales":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"discounts":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"returns":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The value of refunded tickets.","example":"27.41"},"net_sales":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"service_fees":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"taxes":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"total_sales":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"checked_in":{"type":"integer"},"capacity":{"type":["integer","null"],"description":"Null when the event has no limit."}}},"by_ticket_type":{"type":"array","items":{"type":"object","required":["ticket_type_id","name","tickets_sold","tickets_refunded","gross_sales","discounts","returns","net_sales"],"properties":{"ticket_type_id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"tickets_sold":{"type":"integer"},"tickets_refunded":{"type":"integer"},"gross_sales":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"discounts":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"returns":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"net_sales":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"}}}},"by_day":{"type":"array","items":{"type":"object","required":["date","tickets_sold","net_sales","checked_in","capacity"],"properties":{"date":{"type":"string","format":"date"},"tickets_sold":{"type":"integer"},"net_sales":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount with exactly two decimals.","example":"27.41"},"checked_in":{"type":"integer"},"capacity":{"type":["integer","null"]}}}}}},"PartnerEventSalesResponse":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PartnerEventSales"}}},"EventListResponse":{"type":"object","required":["success","data","timestamp"],"properties":{"success":{"type":"boolean","const":true},"data":{"type":"object","required":["events","meta"],"properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/EventSummary"}},"meta":{"$ref":"#/components/schemas/ListMeta"}}},"timestamp":{"type":"string","format":"date-time"}}},"EventResponse":{"type":"object","required":["success","data","timestamp"],"properties":{"success":{"type":"boolean","const":true},"data":{"$ref":"#/components/schemas/Event"},"timestamp":{"type":"string","format":"date-time"}}},"ErrorResponse":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, machine-readable code such as `NOT_FOUND`."},"message":{"type":"string","description":"Human-readable explanation. Don't match on it: the wording can change."}}},"timestamp":{"type":"string","format":"date-time"}}},"ListMeta":{"type":"object","required":["total","limit","offset","has_more"],"properties":{"total":{"type":"integer","description":"Events matching the filters, across all pages."},"limit":{"type":"integer","description":"Page size used, after the 200 cap."},"offset":{"type":"integer"},"has_more":{"type":"boolean","description":"Whether another page follows this one."},"filters_applied":{"type":"object","description":"The filters the server applied, after ignoring invalid values."}}},"EventSummary":{"type":"object","required":["event_id","slug","title","start_datetime","end_datetime","timezone","currency","event_phase"],"properties":{"event_id":{"type":"string","format":"uuid"},"slug":{"type":"string","description":"URL name. The event page is `https://gatehopper.com/events/{slug}`."},"title":{"type":"string"},"description":{"type":["string","null"],"description":"The organizer's description. Usually sanitized HTML (`p`, `strong`, `em`, `ul`, `ol`, `li`, `a` and similar); older events may hold plain text."},"tags":{"type":["array","null"],"items":{"type":"string"}},"start_datetime":{"type":"string","format":"date-time","description":"UTC."},"end_datetime":{"type":"string","format":"date-time","description":"UTC."},"timezone":{"type":"string","description":"IANA time zone of the event, for showing local times.","example":"America/Vancouver"},"min_ticket_price":{"type":["string","null"],"description":"Cheapest ticket on offer as a decimal string, after any automatic promotion. `\"0.00\"` for free events.","example":"12.50"},"currency":{"type":"string","description":"ISO 4217 code.","example":"CAD"},"featured_image_url":{"type":["string","null"],"format":"uri"},"logo_url":{"type":["string","null"],"format":"uri"},"event_phase":{"type":"string","enum":["upcoming","ongoing","past"]},"location":{"oneOf":[{"$ref":"#/components/schemas/Location"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}}},"Event":{"allOf":[{"$ref":"#/components/schemas/EventSummary"},{"type":"object","properties":{"event_sessions":{"type":"array","description":"The ticket types buyers can see. Hidden ticket types are never included.","items":{"$ref":"#/components/schemas/TicketType"}},"vendor_id":{"type":"string","format":"uuid","description":"The organizer's account ID."},"vendor_name":{"type":["string","null"],"description":"The organizer's name."},"resolved_external_links":{"type":"array","description":"The organizer's links, such as their website and social pages.","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}}}},"date_time_details":{"type":["string","null"],"description":"Extra schedule information as sanitized HTML, such as daily opening hours."},"announcement":{"type":["object","null"],"description":"A notice the organizer is currently showing on the event page.","properties":{"text":{"type":"string"}}},"ticket_terms":{"type":["object","null"],"description":"Terms buyers must accept at checkout, or `null` if there are none.","properties":{"mode":{"type":"string","enum":["text","url"]},"label":{"type":"string"},"text":{"type":["string","null"],"description":"Sanitized HTML, when `mode` is `text`."},"url":{"type":["string","null"],"format":"uri","description":"When `mode` is `url`."}}},"contact_available":{"type":"boolean","description":"Whether buyers can message the organizer from the event page."}}}]},"Location":{"type":"object","properties":{"location_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"address":{"type":["object","null"],"properties":{"street1":{"type":"string"},"street2":{"type":"string"},"city":{"type":"string"},"state_province":{"type":"string","example":"BC"},"postal_code":{"type":"string"},"country":{"type":"string","description":"ISO 3166-1 alpha-2.","example":"CA"}}},"coordinates":{"type":["object","null"],"properties":{"latitude":{"type":"number"},"longitude":{"type":"number"}}}}},"SaleStatus":{"type":"string","description":"`on_sale`: can be bought now. `scheduled`: sales haven't opened. `sale_ended`: sales have closed. `sold_out`: none left. `off_sale`: paused by the organizer. The other values cover events that are no longer selling.","enum":["on_sale","scheduled","sale_ended","sold_out","off_sale","hidden","event_not_published","event_cancelled","event_ended"]},"TicketType":{"type":"object","properties":{"session_id":{"type":"string","format":"uuid"},"session_name":{"type":"string","example":"General Admission"},"session_description":{"type":["string","null"]},"session_price":{"type":"number","description":"Price before any promotion, in the event's currency. Fees and taxes are added at checkout."},"promotion":{"type":"object","description":"Present only while an automatic promotion applies to this ticket type.","properties":{"badge_label":{"type":"string","example":"Early Bird 25% Off"},"price":{"type":"number","description":"Price with the promotion applied."},"ends_at":{"type":["string","null"],"format":"date-time"},"combinable":{"type":"boolean","description":"Whether a promo code can be used on top of it."}}},"effective_sale_status":{"$ref":"#/components/schemas/SaleStatus"},"current_inventory":{"type":["integer","null"],"description":"Tickets left, or `null` when there's no limit."},"sale_start_datetime":{"type":["string","null"],"format":"date-time"},"sale_end_datetime":{"type":["string","null"],"format":"date-time"},"start_datetime":{"type":["string","null"],"format":"date-time","description":"When the ticket is valid from."},"end_datetime":{"type":["string","null"],"format":"date-time","description":"When the ticket is valid until."},"display_order":{"type":"integer"},"slot_mode":{"type":"string","enum":["legacy","per_slot"],"description":"`per_slot` means buyers choose a timeslot, and each slot has its own availability."},"timeslots":{"type":"array","items":{"$ref":"#/components/schemas/Timeslot"}}}},"Timeslot":{"type":"object","properties":{"timeslot_id":{"type":"string","format":"uuid"},"start_datetime":{"type":"string","format":"date-time"},"end_datetime":{"type":"string","format":"date-time"},"sale_status":{"$ref":"#/components/schemas/SaleStatus","description":"Only on `per_slot` ticket types."},"remaining":{"type":["integer","null"],"description":"Only on `per_slot` ticket types. Spots left, or `null` when there's no limit."}}}}}}