Skip to main content

Ticket

For loop type tec_ticket, here are the query parameters and fields.

Query parameters

  • event - Event ID to get tickets for
    Type: integer

  • post - Event ID to get tickets for. Can be used instead of 'event'. Event Calendar allows other post types than Event to have tickets.
    Type: integer

Fields

  • all - Show all custom fields (for development purpose)

  • attendees - Ticket attendees

  • available - Provides the quantity of Available tickets based on the Attendees number

  • capacity - Original stock capacity

  • description - Ticket name

  • end_date - Date the ticket should be stop being sold

  • end_time - Time the ticket should be stop being sold

  • frontend_link - Link to the front end of this ticket, if the providers has single view for this ticket.

  • id - Id

  • is_in_stock - Determines if there is any stock for purchasing

  • name - Ticket name

  • on_sale - Indicates if the ticket is currently being offered at a reduced price as part of a special sale.

  • price - Ticket price

  • price_suffix - Holds the price suffix

  • qty_cancelled - Quantity cancelled

  • qty_pending - Quantity pending

  • qty_refunded - Quantity refunded

  • qty_sold - Quantity sold

  • regular_price - Regular price (if the ticket is not on a special sale this will be identical to $price).

  • sku - Holds the SKU for the ticket

  • start_date - Date the ticket should be put on sale

  • start_time - Time the ticket should be put on sale