API reference

List events

With this API you can list all orders of ticket purchases of a selected organisation.


Request

Make a GET request to the following endpoint with the API Key.

https://api.hipsy.nl/v1/organisation/{organisation-slug}/orders

The URL parameter organsation-slug is the slug of the organisation to get the events from. This slug can be found in the Hipsy dashboard in menu 'Organisatie' and tab 'Profiel'. Or you can retrieve the slug in the List organisatie API.

Changing the slug

Be aware that if you change the slug of the organisation in the Hipsy dashboard, you need to update your API endpoints as well.

The following parameters are available and can be passed in the URL as GET parameters.

ParameterRequiredDescriptionDefault value
eventoptionalID of an event to filter only orders of the given event.
limitoptionalCan return up to 100 orders25
pageoptionalPage selection in case there are more results than the given limit.1

Response

An array will be returned with the orders.

KeyDescription
idThe ID of the order
event_idThe ID of the event
event_nameThe name of the event
revenueThe revenue of the order which will be paid out to the organisation. This is exclusive service costs.
first_nameFirst name of the buyer
last_nameLast name of the buyer
localeUsed language when buying the ticket. Can be either nl, en or de
newsletter1 or 0. Returns 1 if ther buyer has subscribed to your newsletter
dateDate of the order

Example

{
  "data": [
    {
      "id": 1148,
      "event_id": 1030,
      "event_name": "Ecstatic Dance Universe - Kareem",
      "revenue": "17.50",
      "first_name": "Jochem",
      "last_name": "Gruter",
      "email": "info@hipsy.nl",
      "locale": "nl",
      "newsletter": 0,
      "date": "2022-12-16T15:04:51.000000Z"
    },
    ...
  ],
  "links": {
    "first": "https:\/\/api.hipsy.nl\/1.0\/organisation\/ecstatic-dance-universe\/orders?page=1",
    "last": "https:\/\/api.hipsy.nl\/1.0\/organisation\/ecstatic-dance-universe\/orders?page=41",
    "prev": null,
    "next": "https:\/\/api.hipsy.nl\/1.0\/organisation\/ecstatic-dance-universe\/orders?page=2"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 3,
    "links": [
      {
        "url": null,
        "label": "« Previous",
        "active": false
      },
      {
        "url": "https:\/\/api.hipsy.nl\/1.0\/organisation\/ecstatic-dance-universe\/orders?page=1",
        "label": "1",
        "active": true
      },
      ...
    ],
    "path": "https:\/\/api.hipsy.nl\/1.0\/organisation\/ecstatic-dance-universe\/orders",
    "per_page": 25,
    "to": 25,
    "total": 81
  }
}
Previous
List events