Get sales stats for this Event
POST/event/:guid/salesstats
Retrieve (date based) sales statistics for all Ticket Types related to an Event.
Request
Path Parameters
The guid of the Event.
- application/json
Body
Input data
Possible values: [free_and_paid
, free
, paid
]
Default value: free_and_paid
What type of sales you want to retrieve.
Responses
- 200
- 404
- 406
Statistics retrieved.
- application/json
- Schema
- Example (from schema)
Schema
tickets
object
The Ticket Types with their statistics - keyed by the guid of the Ticket.
:ticket_guid
object
The guid of the Ticket Type.
The name of this Ticket Type.
Possible values: [auto
, sold_out
]
The status of the Ticket Type.
The total amount sold of this Ticket Type.
The total amount reserved or pending of this Ticket Type.
The available stock of this Ticket Type, zero is unlimited.
The total revenue of this Ticket Type in cents.
date_info
object
required
The sales stats of this Ticket Type per day - keyed by day (yyyy-mm-dd).
:date
object
The total amount sold of this Ticket Type on this day.
The total revenue of this Ticket Type in cents.
{
"tickets": {
":ticket_guid": {
"ticket_id": "string",
"name": "string",
"status": "auto",
"sold_count": 0,
"pending_count": 0,
"available_stock": 0,
"turnover": 0,
"date_info": {
":date": {
"amount": 0,
"turnover": 0
}
}
}
}
}
Event not found.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Request is invalid, see error context for validation errors.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}