Get some basic general Order data
POST/statistics/orders/:company_guid
Get all Orders of a Company based on input from ElasticSearch with aggregations.
Request
Path Parameters
The guid of the Company.
- application/json
Body
Input data
From which Order to start with returning.
The maximum number of Orders to return.
Possible values: [year
, month
, week
, day
, hour
]
The interval.
Possible values: [created_at
, updated_at
]
The range on which the dates will be taken.
Possible values: [swapped
, paid
, cancelled
, expired
, pending
]
A list of statii to include in the aggregations.
The start time of the data.
The end time of the data.
The filters that will be applied to the query.
The Events for which we need to filter on the Ticket Types.
The keys with their direction for which sorting should be applied to the query.
Responses
- 200
- 403
- 404
- 406
- 500
All Orders directly from Elasticsearch.
Unauthorized. You do not have permission to retrieve the Company Orders.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Company 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"
}
Internal server error. The input json is malformed.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}