Lineberty Display API (1.0.0)
Download OpenAPI specification:Download
Lineberty, the solution that queues up for your customers.
Lineberty's Booking System increases User's satisfaction by reducing the time spent to wait for their turn.
Users simply have to book a ticket, either on their phone using your application, or on a terminal you're providing at your place, then to select the time when they want to enjoy visiting your place or use your service. They receive a notification shortly before their appointment, informing them that it is soon their turn.
There is no longer any need to wait in a line! Users now have time to visit around or make more purchases thanks to the Lineberty Virtual Queueing Solution.
Create your own Display (web)application to project on a screen the evolution of the queues and inform the users that they are progressing.
The Display API helps your clients to see the current state of the queue and let them known the estimated time left before their passage.
Your Display application will have to communicate with the Lineberty server to get the data needed to display a ticket. This communication requires an API Key.
We will provide you with a private key included in a JSON file. This JSON file must be stored safe on your application server.
This private key also contains an email address associated to your account to access the Lineberty Display API, and afterwards get the API Key.
See The Lineberty Display API User Guide for further information.
GET A VALID API KEY
This is the first step before accessing the resources of the API. Use this route to get a valid API Key to access the Lineberty Display API resources with your private key. We recommend to use API Key caching to optimize the number of requests per day and resend the request once a day.
Authorizations:
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/api_key
Response samples
- 200
{- "apiKey": "QJ15bv43hKXTpVClbyMnofYOXHZdyb2Lxwv8yEpzrV1laO"
}
Use these routes to get the list of the companies, and for each company the places relating to it.
GET ALL THE COMPANIES ASSOCIATED WITH THE API KEY
Use this route to get the list of all the companies that are associated with the API key.
Authorizations:
query Parameters
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/companies?langs=undefined
Response samples
- 200
{- "companyId1": {
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US"
}
}
GET ALL THE PLACES OF THE COMPANY
Use this route to get all the places of the company.
Authorizations:
path Parameters
companyId required | string The ID of the company. |
query Parameters
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/companies/{companyId}/places?langs=undefined
Response samples
- 200
- 404
{- "placeId1": {
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "address": "5 Avenue Anatole France",
- "city": "Paris",
- "country": "France",
- "zip": "75007",
- "language": "fr_FR",
- "timezone": "Europe/Paris",
- "position": {
- "lat": 48.858471,
- "lng": 2.294434
}
}, - "placeId2": {
- "placeId": "placeId2",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "address": "5 Avenue Anatole France",
- "city": "Paris",
- "country": "France",
- "zip": "75007",
- "language": "fr_FR",
- "timezone": "Europe/Paris",
- "position": {
- "lat": 48.858471,
- "lng": 2.294434
}
}
}
Use these routes to get the list of the places, and for each place the queues, endpoints and time slots relating to it.
GET PLACES
Use this route to get all the places associated with the API key.
Authorizations:
query Parameters
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places?langs=undefined
Response samples
- 200
{- "placeId1": {
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "address": "5 Avenue Anatole France",
- "city": "Paris",
- "country": "France",
- "zip": "75007",
- "language": "fr_FR",
- "timezone": "Europe/Paris",
- "position": {
- "lat": 48.858471,
- "lng": 2.294434
}
}, - "placeId2": {
- "placeId": "placeId2",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "address": "5 Avenue Anatole France",
- "city": "Paris",
- "country": "France",
- "zip": "75007",
- "language": "fr_FR",
- "timezone": "Europe/Paris",
- "position": {
- "lat": 48.858471,
- "lng": 2.294434
}
}
}
GET THE PLACE
Use this route to get a place in particular, using its place ID.
Authorizations:
path Parameters
placeId required | string The ID of the place. |
query Parameters
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places/{placeId}?langs=undefined
Response samples
- 200
- 404
{- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "address": "5 Avenue Anatole France",
- "city": "Paris",
- "country": "France",
- "zip": "75007",
- "language": "fr_FR",
- "timezone": "Europe/Paris",
- "position": {
- "lat": 48.858471,
- "lng": 2.294434
}
}
GET THE QUEUE(S) OF THE PLACE
Use this route to get the queue(s) of the place.
Authorizations:
path Parameters
placeId required | string The ID of the place. |
query Parameters
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places/{placeId}/queues?langs=undefined
Response samples
- 200
- 404
{- "queueId1": {
- "queueId": "queueId1",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "state": {
- "pause": false
}, - "position": {
- "lat": 48.858471,
- "lng": 2.294434
}, - "appointmentTypes": {
- "appointmentTypeId1": {
- "appointmentTypeId": "appointmentTypeId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}
}, - "appointmentTypeId2": {
- "appointmentTypeId": "appointmentTypeId2",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}
}
}
}, - "queueId2": {
- "queueId": "queueId2",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "state": {
- "pause": false
}, - "position": {
- "lat": 48.858471,
- "lng": 2.294434
}, - "appointmentTypes": {
- "appointmentTypeId3": {
- "appointmentTypeId": "appointmentTypeId3",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}
}, - "appointmentTypeId4": {
- "appointmentTypeId": "appointmentTypeId4",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}
}
}
}
}
GET THE COUNTER(S) OF THE PLACE
Use this route to get the counter(s) of the place.
Authorizations:
path Parameters
placeId required | string The ID of the place. |
query Parameters
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places/{placeId}/counters?langs=undefined
Response samples
- 200
- 404
{- "counterId1": {
- "counterId": "counterId1",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "infos": {
- "value": 2,
- "nextRestart": "2018-09-01T12:00:00:00,0000+0200"
}
}, - "counterId2": {
- "counterId": "counterId2",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "infos": {
- "value": 3,
- "nextRestart": "2018-09-01T12:00:00:00,0000+0200"
}
}
}
GET THE ENDPOINT(S) OF THE PLACE
Use this route to get the endpoint(s) of the place.
Authorizations:
path Parameters
placeId required | string The ID of the place. |
query Parameters
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places/{placeId}/endpoints?langs=undefined
Response samples
- 200
- 404
{- "endpointId1": {
- "endpointId": "endpointId1",
- "queueId": "queueId1",
- "placeId": "placeId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "state": 0
}, - "endpointId2": {
- "endpointId": "endpointId2",
- "queueId": "queueId1",
- "placeId": "placeId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "state": 2
}, - "endpointId3": {
- "endpointId": "endpointId3",
- "queueId": "queueId1",
- "placeId": "placeId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "state": 2
}
}
GET THE TIME SLOT(S) OF THE PLACE
Use this route to get the time slot(s) of the place. By default, the time slots are those of the current day.
Authorizations:
path Parameters
placeId required | string The ID of the place. |
query Parameters
startAt | string The start date of the time slot to select data. |
endAt | string The end date of the time slot to select data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places/{placeId}/timeslots?startAt=undefined&endAt=undefined
Response samples
- 200
- 400
- 404
[- {
- "startAt": "2018-09-01T12:00:00:00,0000+0200",
- "endAt": "2018-09-01T12:00:05:00,0000+0200"
}, - {
- "startAt": "2018-09-01T12:00:10:00,0000+0200",
- "endAt": "2018-09-01T12:00:15:00,0000+0200"
}
]
Use these routes to get the list of the queues, the configuration of a queue in particular or the tickets of queues.
GET ALL THE QUEUES
Use this route to get all the queues that are associated with the API key.
Authorizations:
query Parameters
queuesId | Array of strings An array of queue IDs. |
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues?queuesId=undefined&langs=undefined
Response samples
- 200
{- "queueId1": {
- "queueId": "queueId1",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "state": {
- "pause": false
}, - "position": {
- "lat": 48.858471,
- "lng": 2.294434
}, - "appointmentTypes": {
- "appointmentTypeId1": {
- "appointmentTypeId": "appointmentTypeId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}
}, - "appointmentTypeId2": {
- "appointmentTypeId": "appointmentTypeId2",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}
}
}
}, - "queueId2": {
- "queueId": "queueId2",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "state": {
- "pause": false
}, - "position": {
- "lat": 48.858471,
- "lng": 2.294434
}, - "appointmentTypes": {
- "appointmentTypeId3": {
- "appointmentTypeId": "appointmentTypeId3",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}
}, - "appointmentTypeId4": {
- "appointmentTypeId": "appointmentTypeId4",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}
}
}
}
}
GET ALL THE ENDPOINTS OF THE QUEUES
Use this route to get the list of all the endpoints of the queues.
Authorizations:
query Parameters
queuesId | Array of strings An array of queue IDs. |
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues/endpoints?queuesId=undefined&langs=undefined
Response samples
- 200
- 404
{- "endpointId1": {
- "endpointId": "endpointId1",
- "queueId": "queueId1",
- "placeId": "placeId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "state": 0
}, - "endpointId2": {
- "endpointId": "endpointId2",
- "queueId": "queueId1",
- "placeId": "placeId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "state": 2
}, - "endpointId3": {
- "endpointId": "endpointId3",
- "queueId": "queueId1",
- "placeId": "placeId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "state": 2
}
}
GET ALL THE CURRENT TICKETS OF THE DAY AND THE TICKET EVENTS
Use this route to get in real time all the current tickets (i.e. excluding those that are done or canceled) that are planned for today on the first message, then all the ticket events.
Authorizations:
query Parameters
queuesId | Array of strings An array of queue IDs. |
page | number The page number needed. 1 by default because there is at least one page. |
pageSize | number [ 1 .. 50 ] Default: 20 The number of items to return for each page. By default, a page contains 20 items, at least 1 and up to 50. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues/tickets/currents/sse?queuesId=undefined&page=undefined&pageSize=undefined
Response samples
- 200
- 401
- 404
{- "totalCount": 2,
- "page": 1,
- "pageSize": 20,
- "tickets": [
- {
- "ticketId": "tiketId1",
- "label": "137",
- "queue": {
- "id": "queueId1",
- "name": "queue1"
}, - "place": {
- "id": "placeId1",
- "name": "place1"
}, - "userId": "userId1",
- "appointmentType": {
- "id": "appointmentTypeId1",
- "name": "appointmentType1"
}, - "state": 0,
- "isAnAppointment": false,
- "groupSize": 1,
- "duration": 600000,
- "ticketPosition": {
- "global": {
- "nbPeople": 0,
- "nbTickets": 0
}, - "endpoint": {
- "nbPeople": 0,
- "nbTickets": 0
}
}, - "recalledCount": 0,
- "lang": "en_US",
- "timeline": {
- "bookedAt": "2018-09-01T12:00:00:00,0000+0200",
- "inToConfirmAt": null,
- "initialBookedFor": "2018-09-01T12:00:05:00,0000+0200",
- "estimatedFor": "2018-09-01T12:00:05:00,0000+0200",
- "alertedAt": null,
- "calledAt": null,
- "recalledAt": [ ],
- "inProgressAt": null,
- "estimatedDoneAt": "2018-09-01T12:00:06:00,0000+0200",
- "onHoldAt": null,
- "noShowAt": null,
- "cancelledAt": null,
- "doneAt": null
}, - "extraInfos": {
- "queueDistance": 2133
}, - "endpoint": {
- "id": null,
- "name": ""
}, - "extendedAttributes": {
- "name": "John Smith",
- "phone": "1(800)123-4567",
- "userPosition": {
- "lat": 48.858471,
- "lng": 2.294434
}
}
}, - {
- "ticketId": "tiketId2",
- "label": "29",
- "queue": {
- "id": "queueId2",
- "name": "queue2"
}, - "place": {
- "id": "placeId2",
- "name": "place2"
}, - "userId": "userId1",
- "appointmentType": {
- "id": "appointmentTypeId2",
- "name": "appointmentType2"
}, - "state": 0,
- "isAnAppointment": false,
- "groupSize": 3,
- "duration": 600000,
- "ticketPosition": {
- "global": {
- "nbPeople": 0,
- "nbTickets": 0
}, - "endpoint": {
- "nbPeople": 0,
- "nbTickets": 0
}
}, - "recalledCount": 0,
- "lang": "en_US",
- "timeline": {
- "bookedAt": "2018-09-01T12:00:00:00,0000+0200",
- "inToConfirmAt": null,
- "initialBookedFor": "2018-09-01T12:00:05:00,0000+0200",
- "estimatedFor": "2018-09-01T12:00:05:00,0000+0200",
- "alertedAt": null,
- "calledAt": null,
- "recalledAt": [ ],
- "inProgressAt": null,
- "estimatedDoneAt": "2018-09-01T12:00:06:00,0000+0200",
- "onHoldAt": null,
- "noShowAt": null,
- "cancelledAt": null,
- "doneAt": null
}, - "extraInfos": {
- "queueDistance": 2133
}, - "endpoint": {
- "id": null,
- "name": ""
}, - "extendedAttributes": {
- "name": "John Smith",
- "phone": "1(800)123-4567",
- "userPosition": {
- "lat": 48.858471,
- "lng": 2.294434
}
}
}
]
}
GET ALL THE CURRENT TICKETS OF THE DAY
Use this route to get all the current tickets (i.e. excluding those that are done or canceled) that are planned for today.
Authorizations:
query Parameters
queuesId | Array of strings An array of queue IDs. |
page | number The page number needed. 1 by default because there is at least one page. |
pageSize | number [ 1 .. 50 ] Default: 20 The number of items to return for each page. By default, a page contains 20 items, at least 1 and up to 50. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues/tickets/currents?queuesId=undefined&page=undefined&pageSize=undefined
Response samples
- 200
- 401
- 404
{- "totalCount": 2,
- "page": 1,
- "pageSize": 20,
- "tickets": [
- {
- "ticketId": "tiketId1",
- "label": "137",
- "queue": {
- "id": "queueId1",
- "name": "queue1"
}, - "place": {
- "id": "placeId1",
- "name": "place1"
}, - "userId": "userId1",
- "appointmentType": {
- "id": "appointmentTypeId1",
- "name": "appointmentType1"
}, - "state": 0,
- "isAnAppointment": false,
- "groupSize": 1,
- "duration": 600000,
- "ticketPosition": {
- "global": {
- "nbPeople": 0,
- "nbTickets": 0
}, - "endpoint": {
- "nbPeople": 0,
- "nbTickets": 0
}
}, - "recalledCount": 0,
- "lang": "en_US",
- "timeline": {
- "bookedAt": "2018-09-01T12:00:00:00,0000+0200",
- "inToConfirmAt": null,
- "initialBookedFor": "2018-09-01T12:00:05:00,0000+0200",
- "estimatedFor": "2018-09-01T12:00:05:00,0000+0200",
- "alertedAt": null,
- "calledAt": null,
- "recalledAt": [ ],
- "inProgressAt": null,
- "estimatedDoneAt": "2018-09-01T12:00:06:00,0000+0200",
- "onHoldAt": null,
- "noShowAt": null,
- "cancelledAt": null,
- "doneAt": null
}, - "extraInfos": {
- "queueDistance": 2133
}, - "endpoint": {
- "id": null,
- "name": ""
}, - "extendedAttributes": {
- "name": "John Smith",
- "phone": "1(800)123-4567",
- "userPosition": {
- "lat": 48.858471,
- "lng": 2.294434
}
}
}, - {
- "ticketId": "tiketId2",
- "label": "29",
- "queue": {
- "id": "queueId2",
- "name": "queue2"
}, - "place": {
- "id": "placeId2",
- "name": "place2"
}, - "userId": "userId1",
- "appointmentType": {
- "id": "appointmentTypeId2",
- "name": "appointmentType2"
}, - "state": 0,
- "isAnAppointment": false,
- "groupSize": 3,
- "duration": 600000,
- "ticketPosition": {
- "global": {
- "nbPeople": 0,
- "nbTickets": 0
}, - "endpoint": {
- "nbPeople": 0,
- "nbTickets": 0
}
}, - "recalledCount": 0,
- "lang": "en_US",
- "timeline": {
- "bookedAt": "2018-09-01T12:00:00:00,0000+0200",
- "inToConfirmAt": null,
- "initialBookedFor": "2018-09-01T12:00:05:00,0000+0200",
- "estimatedFor": "2018-09-01T12:00:05:00,0000+0200",
- "alertedAt": null,
- "calledAt": null,
- "recalledAt": [ ],
- "inProgressAt": null,
- "estimatedDoneAt": "2018-09-01T12:00:06:00,0000+0200",
- "onHoldAt": null,
- "noShowAt": null,
- "cancelledAt": null,
- "doneAt": null
}, - "extraInfos": {
- "queueDistance": 2133
}, - "endpoint": {
- "id": null,
- "name": ""
}, - "extendedAttributes": {
- "name": "John Smith",
- "phone": "1(800)123-4567",
- "userPosition": {
- "lat": 48.858471,
- "lng": 2.294434
}
}
}
]
}
GET ALL THE DONE OR CANCELLED TICKETS OF THE DAY
Use this route to get all the tickets that have been done or canceled during the current day.
Authorizations:
query Parameters
queuesId | Array of strings An array of queue IDs. |
page | number The page number needed. 1 by default because there is at least one page. |
pageSize | number [ 1 .. 50 ] Default: 20 The number of items to return for each page. By default, a page contains 20 items, at least 1 and up to 50. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues/tickets/history?queuesId=undefined&page=undefined&pageSize=undefined
Response samples
- 200
- 401
- 404
{- "totalCount": 2,
- "page": 1,
- "pageSize": 20,
- "tickets": [
- {
- "ticketId": "tiketId1",
- "label": "137",
- "queue": {
- "id": "queueId1",
- "name": "queue1"
}, - "place": {
- "id": "placeId1",
- "name": "place1"
}, - "userId": "userId1",
- "appointmentType": {
- "id": "appointmentTypeId1",
- "name": "appointmentType1"
}, - "state": 0,
- "isAnAppointment": false,
- "groupSize": 1,
- "duration": 600000,
- "ticketPosition": {
- "global": {
- "nbPeople": 0,
- "nbTickets": 0
}, - "endpoint": {
- "nbPeople": 0,
- "nbTickets": 0
}
}, - "recalledCount": 0,
- "lang": "en_US",
- "timeline": {
- "bookedAt": "2018-09-01T12:00:00:00,0000+0200",
- "inToConfirmAt": null,
- "initialBookedFor": "2018-09-01T12:00:05:00,0000+0200",
- "estimatedFor": "2018-09-01T12:00:05:00,0000+0200",
- "alertedAt": null,
- "calledAt": null,
- "recalledAt": [ ],
- "inProgressAt": null,
- "estimatedDoneAt": "2018-09-01T12:00:06:00,0000+0200",
- "onHoldAt": null,
- "noShowAt": null,
- "cancelledAt": null,
- "doneAt": null
}, - "extraInfos": {
- "queueDistance": 2133
}, - "endpoint": {
- "id": null,
- "name": ""
}, - "extendedAttributes": {
- "name": "John Smith",
- "phone": "1(800)123-4567",
- "userPosition": {
- "lat": 48.858471,
- "lng": 2.294434
}
}
}, - {
- "ticketId": "tiketId2",
- "label": "29",
- "queue": {
- "id": "queueId2",
- "name": "queue2"
}, - "place": {
- "id": "placeId2",
- "name": "place2"
}, - "userId": "userId1",
- "appointmentType": {
- "id": "appointmentTypeId2",
- "name": "appointmentType2"
}, - "state": 0,
- "isAnAppointment": false,
- "groupSize": 3,
- "duration": 600000,
- "ticketPosition": {
- "global": {
- "nbPeople": 0,
- "nbTickets": 0
}, - "endpoint": {
- "nbPeople": 0,
- "nbTickets": 0
}
}, - "recalledCount": 0,
- "lang": "en_US",
- "timeline": {
- "bookedAt": "2018-09-01T12:00:00:00,0000+0200",
- "inToConfirmAt": null,
- "initialBookedFor": "2018-09-01T12:00:05:00,0000+0200",
- "estimatedFor": "2018-09-01T12:00:05:00,0000+0200",
- "alertedAt": null,
- "calledAt": null,
- "recalledAt": [ ],
- "inProgressAt": null,
- "estimatedDoneAt": "2018-09-01T12:00:06:00,0000+0200",
- "onHoldAt": null,
- "noShowAt": null,
- "cancelledAt": null,
- "doneAt": null
}, - "extraInfos": {
- "queueDistance": 2133
}, - "endpoint": {
- "id": null,
- "name": ""
}, - "extendedAttributes": {
- "name": "John Smith",
- "phone": "1(800)123-4567",
- "userPosition": {
- "lat": 48.858471,
- "lng": 2.294434
}
}
}
]
}
Use these routes to get the list of the counters, and to increment or decrement the value of the counter.
GET ALL THE COUNTERS
Use this route to get all the counters that are associated with the API key.
Authorizations:
query Parameters
countersId required | Array of strings An array of counter IDs. |
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/counters?countersId=undefined&langs=undefined
Response samples
- 200
{- "counterId1": {
- "counterId": "counterId1",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "infos": {
- "value": 2,
- "nextRestart": "2018-09-01T12:00:00:00,0000+0200"
}
}, - "counterId2": {
- "counterId": "counterId2",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "infos": {
- "value": 3,
- "nextRestart": "2018-09-01T12:00:00:00,0000+0200"
}
}
}
GET ALL THE COUNTERS AND AN EVENT
Use this route to get all the counters that are associated with the API and receive an event each time a counter is incremented/decremented.
Authorizations:
query Parameters
countersId required | Array of strings An array of counter IDs. |
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/counters/sse?countersId=undefined&langs=undefined
Response samples
- 200
{- "counterId1": {
- "counterId": "counterId1",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "infos": {
- "value": 2,
- "nextRestart": "2018-09-01T12:00:00:00,0000+0200"
}
}, - "counterId2": {
- "counterId": "counterId2",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "infos": {
- "value": 3,
- "nextRestart": "2018-09-01T12:00:00:00,0000+0200"
}
}
}
GET THE COUNTER
Use this route to get a counter in particular, using its counter ID.
Authorizations:
path Parameters
counterId required | string The ID of the counter. |
query Parameters
langs | Array of strings Items Enum: "fr_FR" "en_US" "es_ES" "de_DE" "zh_CN" "zh_TW" "ja_JP" "ko_KR" "th_TH" An array of locales, used to get the translated names of the data. |
Responses
Request samples
- cURL
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/counters/{counterId}?langs=undefined
Response samples
- 200
- 404
{- "counterId": "counterId1",
- "placeId": "placeId1",
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US",
- "timezone": "Europe/Paris",
- "infos": {
- "value": 2,
- "nextRestart": "2018-09-01T12:00:00:00,0000+0200"
}
}