Event Ticket Sales Report

Event Ticket Sales Report

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

Event ticket sale properties

AttributeTypeDescription
total_salesstringTotal sale amount.
net_salesstringNet sales amount.
average_salesstringAverage sales amount.
total_ordersstringTotal orders.
total_itemsstringTotal items.
total_taxstringTotal tax amount.
total_shippingstringTotal shipping charge.
total_refundsintegerTotal number of refunds.
total_discountstringTotal discount amount.
totals_grouped_bystringReport type.
total_tickets_salesobjectTotal ticket sale data.
totalsobjectData of report based on date

 

Event ticket sale – Total Tickets Sales properties

 

AttributeTypeDescription
Ticket idintegerWill return total no. of ticket sale

 

Event ticket sale – Totals properties

 

AttributeTypeDescription
salesstringTotal sales amount
ordersintegerTotal no. of orders
itemsintegerTotal no. of items
taxstringTotal tax amount
shippingstringTotal shipping amount
discountstringTotal discount amount
customersintegerTotal no. of customers

Get Event ticket sales report

This API helps you to get event ticket sales reports.

HTTP request
Method : GET
URL : /wp-json/wpem/reports/sales

Available parameters

AttributeTypeDescription
periodstringDefault would be “month”(day, week, month). Based on this you will get a daily, weekly or monthly report.
event_idstringEvent Id(To get a particular event sales report).
date_mindateMin date to get a report.
date_maxdateMax date to get a report.
grouped_bystringUsed to get reports based on a group by query. Default would be “month”(day, week, month).