getTicketTypes

Get all available ticket types of a selected user (museum).

URL
https://globalreseller.nl/webservices/getTicketTypes

HMAC calculation
apiKey + environment + language + ticketDate + userId
Please note: optional fields only needs to be included when an optional field is used.

Input:

Name Datatype Description
apiKey String Your public apiKey needs to be included in every request.
environment Enum "test" or "production"
userId Integer The userId is a reference to the user (museum / attraction). The userId can be requested via getAvailableUsers and can be cached in your application.
language String (optional) Language code by the ISO 639-1 (most users only supply "nl" and "en").
ticketDate date Y-m-d (optional) it is advisable to implement this to correctly display any adjusted prices after a specific date.
HMACKey String The HMACKey is calculated based on the input fields.

Output:

Name Datatype Description
success Boolean Indicates if the request was successfully executed.
ticketTypes
Array with ticketTypes
Name Datatype
ticketTypeId Integer
ticketTypeName String
ticketTypePrice Decimal
cancelationPolicy
Array with cancelation policy properties
Name Datatype
cancelCompleteReservationMinutesBeforeTicketDate Integer
cancelCompleteReservationMinutesAfterReservationDate Integer

JSON output example

{
   "success":true,
   "ticketTypes":[
      {
         "ticketTypeId":1001,
         "ticketTypeName":"Adult test #1",
         "ticketTypePrice":20,
         "cancelationPolicy": {
             "cancelCompleteReservationMinutesBeforeTicketDate": 123456789,
             "cancelCompleteReservationMinutesAfterReservationDate" 123456789:
        }
      },
      {
         "ticketTypeId":1002,
         "ticketTypeName":"Adult test #2",
         "ticketTypePrice":19.5,
         "cancelationPolicy": {
             "cancelCompleteReservationMinutesBeforeTicketDate": 123456789,
             "cancelCompleteReservationMinutesAfterReservationDate" 123456789:
        }
      },
      {
         "ticketTypeId":1003,
         "ticketTypeName":"Child test #1",
         "ticketTypePrice":6,
         "cancelationPolicy": {
             "cancelCompleteReservationMinutesBeforeTicketDate": 123456789,
             "cancelCompleteReservationMinutesAfterReservationDate" 123456789:
        }
      }
   ]
}