Access Users

An Access User represents a handheld or installed device like smartphones or turnstiles at your venue that should be allowed to download and scan Tickets for events.

You can grant access to all events and tickets or just a selected subset of them. Each created Access User receives a unique token that can than be used to authenticate against the API.

Please note:

The issued token can only be used to authenticate against selected /accessusers endpoints. They cannot be used against other endpoints of the vivenu API.

Endpoints

The access user object

Attributes

sellerId
Required
string

The ID of the seller that owns the access user.

name
Required
string

An internal name to identify the access user

token
Required
string

The token to authenticate against the access-control endpoints.

accessAllEvents
Required
boolean

Whether the access user can access all events of his seller

createdAt
Required
string date-time

An ISO Timestamp indicating when the access user was created.

updatedAt
Required
string date-time

An ISO Timestamp indicating when the access user was updated.

Optional Attributes

Collapse all
_id
Optional
string
__v
Optional
integer
Was this section helpful?
YesNo
Example
{
"_id": "string",
"sellerId": "string",
"active": true,
"name": "string",
"token": "string",
"accessAllEvents": true,
"events": [
"string"
],
"lastRequest": "2030-01-23T23:00:00.123Z",
"expires": "2030-01-23T23:00:00.123Z",
"isIntegration": true,
"integration": "simplyX",
"deviceSettings": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z",
"__v": 1
}

Create an Access User

Payload

name
Required
string

An internal name to identify the access user

Optional Attributes

Collapse all
Responses
201
Created
400
Bad Request
401
Unauthorized

Was this section helpful?

YesNo
post
/api/accessusers
{
"name": "string",
"isIntegration": true
}
Response
application/json
{
"_id": "string",
"sellerId": "string",
"active": true,
"name": "string",
"token": "string",
"accessAllEvents": true,
"events": [
"string"
],
"lastRequest": "2030-01-23T23:00:00.123Z",
"expires": "2030-01-23T23:00:00.123Z",
"isIntegration": true,
"integration": "simplyX",
"deviceSettings": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z",
"__v": 1
}

Update an Access User

Payload

name
Required
string

An internal name to identify the access user

sellerId
Required
string

The ID of the seller that owns the access user.

accessAllEvents
Required
boolean

Whether the access user can access all events of his seller

token
Required
string

The token to authenticate against the access-control endpoints.

Optional Attributes

Collapse all
Responses
200
OK
400
Bad Request
401
Unauthorized
404
Not Found

Was this section helpful?

YesNo
put
/api/accessusers/{id}
{
"name": "string",
"events": [
"string"
],
"expires": "2030-01-23T23:00:00.123Z",
"sellerId": "string",
"active": true,
"accessAllEvents": true,
"token": "string",
"lastRequest": "2030-01-23T23:00:00.123Z",
"integration": "simplyX",
"deviceSettings": {}
}
Response
application/json
{
"_id": "string",
"sellerId": "string",
"active": true,
"name": "string",
"token": "string",
"accessAllEvents": true,
"events": [
"string"
],
"lastRequest": "2030-01-23T23:00:00.123Z",
"expires": "2030-01-23T23:00:00.123Z",
"isIntegration": true,
"integration": "simplyX",
"deviceSettings": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z",
"__v": 1
}

Delete an Access User

Query

No supported query parameters
Responses
200
OK
400
Bad Request
401
Unauthorized
404
Not Found

Was this section helpful?

YesNo
delete
/api/accessusers/{id}
Response
application/json
{
"_id": "string",
"sellerId": "string",
"active": true,
"name": "string",
"token": "string",
"accessAllEvents": true,
"events": [
"string"
],
"lastRequest": "2030-01-23T23:00:00.123Z",
"expires": "2030-01-23T23:00:00.123Z",
"isIntegration": true,
"integration": "simplyX",
"deviceSettings": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z",
"__v": 1
}

Get all Access Users

Query

No supported query parameters
Responses
200
OK
401
Unauthorized

Was this section helpful?

YesNo
get
/api/accessusers
Response
application/json
[
{
"_id": "string",
"sellerId": "string",
"active": true,
"name": "string",
"token": "string",
"accessAllEvents": true,
"events": [
"string"
],
"lastRequest": "2030-01-23T23:00:00.123Z",
"expires": "2030-01-23T23:00:00.123Z",
"isIntegration": true,
"integration": "simplyX",
"deviceSettings": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z",
"__v": 1
}
]
PUBLIC

Get associated Seller Id

Query

No supported query parameters
Responses
200
OK
404
Not Found

Was this section helpful?

YesNo
get
/api/accessusers/seller
Response
application/json
{
"sellerId": "string"
}
PUBLIC

Get all accessible Events

Returns a list of all events accessible for the device. This endpoint is often used when a user wants to select the event to do the checkin for.

Query

No supported query parameters
Responses
200
OK

Was this section helpful?

YesNo
get
/api/accessusers/events
Response
application/json
[
{
"_id": "string",
"name": "string"
}
]
PUBLIC

Get Tickets for an Event v2

Returns a paged response of all tickets for a given event. Devices usually fetch and page through this endpoint and persist the results on disk to provide an offline capability.

Query

top
Optional
number float

A limit on the number of objects to be returned. Can range between 1 and 1000.

skip
Optional
number float

The number of objects to skip for the requested result

from
Optional
string date-time

An ISO Timestamp to filter tickets where created_at | updated >= $from

until
Optional
string date-time

An ISO Timestamp to filter tickets where created_at | updated < $from

Responses
200
OK
400
Bad Request

Was this section helpful?

YesNo
get
/api/accessusers/tickets/v2/{eventId}
Response
application/json
{
"docs": [
{
"_id": "string",
"barcode": "string",
"name": "string",
"ticketTypeId": "string",
"ticketName": "string",
"priceCategoryId": "string",
"eventId": "string",
"sellerId": "string",
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z",
"priceCategory": {
"categoryId": "string",
"description": "string"
},
"status": "VALID",
"area": "string",
"row": "string",
"seat": "string",
"discountId": "string",
"discount": "string",
"entry": [
"string"
]
}
],
"total": 1
}
PUBLIC

Get Ticket with barcode

Returns the ticket for a given barcode if existent. This endpoint is typically invoked when a device needs to validate a given barcode in realtime.

Query

eventId
Optional
string
Responses
200
OK
400
Bad Request
404
Not Found

Was this section helpful?

YesNo
get
/api/accessusers/tickets/{barcode}
Response
application/json
{
"_id": "string",
"barcode": "string",
"name": "string",
"ticketTypeId": "string",
"ticketName": "string",
"categoryRef": "string",
"priceCategoryId": "string",
"eventId": "string",
"sellerId": "string",
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z",
"priceCategory": {
"categoryId": "string",
"description": "string"
},
"status": "VALID"
}
PUBLIC

Create scans

Payload

barcode
Required
string

The barcode of the ticket

scanned_at
Required
string date-time

An ISO Timestamp indicating when the ticket was scanned.

type
Required
string

Whether the scan succeeded or failed

OKFAIL
direction
Required
string

Indicates in which direction the scan was.

INOUT

Optional Attributes

Collapse all
ticketId
Optional
string
Responses
200
OK
400
Bad Request

Was this section helpful?

YesNo
post
/api/accessusers/scans/{eventId}
[
{
"ticketId": "string",
"barcode": "string",
"scanned_at": "2030-01-23T23:00:00.123Z",
"type": "OK",
"direction": "IN"
}
]
Response
application/json
{
"status": "OK"
}