Data Fields
Data Fields are special extra fields that hold questions the customer can be asked on checkout. DataFields can be applied to tickettypes or globally to events.
Endpoints
The Data Field object
Attributes
_id
Required
string
The ID of the data field
sellerId
Required
string
The ID of the seller of the data field
name
Required
string
The name of the data field
type
Required
string
The type of data field
text
number
select
checkbox
tel
country
email
date
documentUpload
slug
Required
string
The slug generated out of name
Optional Attributes
Collapse allExample
{"_id": "string","sellerId": "string","name": "string","title": "string","isPersonalData": true,"description": "string","type": "text","slug": "string","options": ["string"],"maxLength": 10.5}
Create a Data Field
Payload
type
Required
string
The type of data field
text
number
select
checkbox
tel
country
email
date
documentUpload
name
Required
string
Optional Attributes
Collapse allResponses
201
Created
400
Bad Request
401
Unauthorized
post
/api/data-fields
{"title": "string","description": "string","isPersonalData": true,"type": "text","options": ["string"],"maxLength": 10.5,"name": "string"}
Response
application/json
{"_id": "string","sellerId": "string","name": "string","title": "string","isPersonalData": true,"description": "string","type": "text","slug": "string","options": ["string"],"maxLength": 10.5}
Update a Data Field
Payload
Optional Attributes
Collapse allResponses
200
OK
400
Bad Request
401
Unauthorized
put
/api/data-fields/{id}
{"title": "string","description": "string","isPersonalData": true,"options": ["string"],"maxLength": 10.5}
Response
application/json
{"_id": "string","sellerId": "string","name": "string","title": "string","isPersonalData": true,"description": "string","type": "text","slug": "string","options": ["string"],"maxLength": 10.5}
get
/api/data-fields/{id}
Response
application/json
{"_id": "string","sellerId": "string","name": "string","title": "string","isPersonalData": true,"description": "string","type": "text","slug": "string","options": ["string"],"maxLength": 10.5}
get
/api/data-fields
Response
application/json
[{"_id": "string","sellerId": "string","name": "string","title": "string","isPersonalData": true,"description": "string","type": "text","slug": "string","options": ["string"],"maxLength": 10.5}]
PUBLIC
Get all Data Fields by reference
Query
eventId
Optional
string
shopId
Optional
string
ticketTypeId
Optional
string
sellerId
Required
string
checkoutId
Optional
string
scope
Required
string
The scope of the data-fields.
CUSTOMER
TICKET
TRANSACTION
CHECKOUT
locale
Optional
string
Resolve the data-fields for a specific language
Responses
200
OK
400
Bad Request
get
/api/data-fields/resolve
Response
application/json
[{"_id": "string","name": "string","type": "text","options": ["string"],"slug": "string","description": "string"}]