Get statistics on the tickets processed during a certain period

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/tools/ticketsprocessedstatistics

Description

Use this method to retrieve the statistics on the number of tickets processed and sold online during a certain period. The results can be grouped by day or month. These statistics are often used as basis for invoicing or reporting.

Example

Request

 1use Ticketmatic\Endpoints\Tools;
 2
 3$result = Tools::ticketsprocessedstatistics($client, array(
 4    "endts" => "2015-06-01",
 5    "groupby" => "month",
 6    "startts" => "2015-03-01",
 7));
 8
 9// The parameters array is optional, it can be omitted when empty.
10$result = Tools::ticketsprocessedstatistics($client);

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/tools"
 4)
 5
 6result, err := tools.Ticketsprocessedstatistics(client, &ticketmatic.TicketsprocessedRequest{
 7    Endts: "2015-06-01",
 8    Groupby: "month",
 9    Startts: "2015-03-01",
10})
11
12// The query object is optional, it can be omitted when empty.
13result, err := tools.Ticketsprocessedstatistics(client, nil)

Request

1GET /api/1/{accountname}/tools/ticketsprocessedstatistics HTTP/1.1

Parameters

FieldDescription
endts
string 
(required)

End date of the period

Example value:"2015-06-01"
groupby
string 
(required)

How the results are grouped. Values can be ‘day’ or ‘month’

Example value:"month"
startts
string 
(required)

Start date of the period

Example value:"2015-03-01"

Type reference: TicketsprocessedRequest

Result fields

This call returns an array of objects.

FieldDescription
processed
int

The number of tickets processed

Example value:723
soldonline
int

The number of tickets sold online

Example value:723
ts
timestamp

Start of the period

Example value:"2015-01-01"

Type reference: TicketsprocessedStatistics[]