get https://api.accelevents.com/rest/host/ticketing//purchaserData/order/
This API is used to get ticketing purchaser attributes data by order id associated with the specified event. This API can be accessed by an event admin and super admin. It will return attributes data like seatNumber, eventTicketingId, eventKey, holder related attributes information and question related attributes information.
To call this API, user will have to pass query param with API URL like orderId, dataType and authentication key to authenticate user.
Here is the description of response attributes, which returns to the form of JSON.
Attribute | Description |
---|---|
seatNumber | This contains the selected seat number of holder. |
attributes | This contains the holder related attributes information. name: Name of html field, this will use when send back data to server. type: Type of html field, possible values are TEXT, DROPDOWN, EMAIL, NUMBER, DATE. value: This will be empty for ticket purchase but will be user while editing order. defaultValue: Xml data to render default value, this can be array for dropdown. mandatory: Is field mandatory during submission. eventTicketTypeId: This will check if attribute needs to show for specific event type. |
eventTicketingId | This contains the event ticketing id. |
questions | This contains the question related attributes information. name: Name of html field, this will use when send back data to server. type: Type of html field, possible values are TEXT, DROPDOWN, EMAIL, NUMBER, DATE. value: This will be empty for ticket purchase but will be user while editing order. defaultValue: Xml data to render default value, this can be array for dropdown. mandatory: Is field mandatory during submission. eventTicketTypeId: This will check if attribute needs to show for specific event type. |
eventKey | This contains the event key. |
nestedQuestions | It contains array of conditional question related information. defaultValue: It is list of the values in json format from it user can select value, eventTicketTypeId: Its comma seperated ticket types id supported for conditional question, id: It is unique id of conditional question, mandatory: If it is true then user must have to answer the conditional question, name: It is name of conditional question, parentQueId : It is parent id of conditional question, position: It is position of conditional question to show order form, selectedAnsId: It is id used to show by default value for questions , type: It is type of conditional question and its must be CONDITIONAL_QUE, value: It is used to store value of conditional question. |
Here are the possible error messages, which will return if any condition fails or required data is missing for processing.
Error Code | Error Description |
---|---|
200 | Ticekting holder information. |
400 | The request could not be understood by the server due to malformed syntax. |
401 | You are not authorized to view the resource. |
403 | Accessing the resource you were trying to reach is forbidden. |
404 | The resource you were trying to reach is not found. |
4030201 | Not Event Host. |