Event Tickets

Event Tickets

The event ticket API allows you to view event ticket information.

Event ticket properties

AttributeTypeDescriptionPermission
idintegerUnique identifier for the object.READ-ONLY
namestringEvent ticket name.MANDATORY
slugstringEvent ticket slug.READ-ONLY
permalinkstringUrl of Event ticket for web page.READ-ONLY
date_createddate-timeThe date the event ticket was created, in the site’s timezone.READ-ONLY
date_created_gmtdate-timeThe date the event ticket was created, as GMT.READ-ONLY
date_modifieddate-timeThe date the event ticket was last modified, in the site’s
timezone.
READ-ONLY
date_modified_gmtdate-timeThe date the event ticket was modified, as GMT.READ-ONLY
typestringProduct type.
statusstringThe status of event ticket  ex. Publish, draft etc.
featuredbooleanFeatured product. Default is false .
catalog_visibilitystringCatalog visibility. Options: visible , catalog , search and hidden . Default is visible .
descriptionstringEvent ticket description.
short_descriptionstringEvent ticket short description.
skustringUnique identifier.
pricestringCurrent event ticket price.READ-ONLY
regular_pricestringEvent ticket regular price.
sale_pricestringEvent ticket sale price.
date_on_sale_fromdate-timeStart date of sale price, in the site’s timezone.
date_on_sale_from_gmtdate-timeStart date of sale price, as GMT.
date_on_sale_todate-timeAPI URL to get individual event data
date_on_sale_to_gmtdate-timeEnd date of sale price, as GMT.
price_htmlstringPrice formatted in HTML.READ-ONLY
on_salebooleanShows if the event ticket is on sale.READ-ONLY
purchasablebooleanShows if the event ticket can be bought.READ-ONLY
total_salesintegerAmount of sales.READ-ONLY
virtualbooleanIf the is virtual. Default is false , but for event ticket, it
will return true.
tax_classstringTax class.
manage_stockbooleanStock management at product level. Default is false .
stock_quantityintegerStock quantity.
stock_statusstringControls the stock status of the product. Options: instock , outofstock , onbackorder . Default is
instock .
sold_individuallybooleanAllow one item to be bought in a single order. Default is false .
average_ratingstringReviews average rating.READ-ONLY
rating_countintegerAmount of reviews that the product have.READ-ONLY
related_idsarrayList of related products IDs.READ-ONLY
upsell_idsarrayList of up-sell products IDs.
cross_sell_idsarrayList of cross-sell products IDs.
parent_idintegerProduct parent ID.
purchase_notestringOptional note to send the customer after purchase.
menu_orderintegerMenu order, used to custom sort products.
meta_dataarrayMeta data.

Event ticket – Metadata properties

AttributeTypeDescription
idintegerMeta ID.READ-ONLY
keystringMeta key.
valuestringMeta value.

Get Event tickets

This API helps you to get particular event tickets.

HTTP request
Method : GET
URL : /wp-json/wpem/events/<event_id>/tickets/

    • Related Articles

    • Event Ticket Sales Report

      The event sales report API allows you to view event ticket sales information. Event ticket sale properties Attribute Type Description total_sales string Total sale amount. net_sales string Net sales amount. average_sales string Average sales amount. ...
    • Event Orders

      The event orders API allows you to view particular event orders information. Order properties Attribute Type Description Permission id integer Unique identifier for the object. READ-ONLY parent_id integer Parent order ID. number string Order number. ...
    • Events

      The events API allows you to view and delete individual, or a batch, of events. Event properties Attribute Type Description Permission id int Unique identifier for the object. READ-ONLY name string Event name. MANDATORY slug string Event slug. ...
    • Scan QRCode

      The scan QRCode API allows you to scan QRCode of tickets of attendees. Scan QRCode properties Attribute Type Description Permission message string Message for attendee ticket scan READ-ONLY event_title string Event name. attendee_name string Attendee ...
    • Attendee

      The attendee API allows you to view, checkin, checkout and delete an individual, or a batch, of attendee. Attendee properties Attribute Type Description Permission id integer Unique identifier for the object. READ-ONLY name string Attendee name. ...