Download OpenAPI specification:Download
Lineberty is a Booking System that increases user satisfaction by reducing the time spent to wait for her/his turn.
The user simply has to book a ticket, either on her/his phone using your application, or on a terminal you’re providing at your place, then to select the time when s/he wants to enjoy visiting your place or use your service. That’s so simple! No need to stay and wait anymore.
Freed by the Lineberty Booking System, the user now has time to visit around or make more purchases. Shortly before her/his appointment, the user receives a notification informing her/im that it’s almost her/his turn.
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.
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.
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/api_key
{- "apiKey": "QJ15bv43hKXTpVClbyMnofYOXHZdyb2Lxwv8yEpzrV1laO"
}Use these routes to get the list of the companies, and for each company the places relating to it.
Use this route to get the list of all the companies that are associated with the API key.
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/companies
{- "companyId1": {
- "companyId": "companyId1",
- "name": {
- "en_US": "name_EN",
- "fr_FR": "name_FR"
}, - "language": "en_US"
}
}Use this route to get all the places of the company.
| companyId required | string The ID of the company. |
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/companies/{companyId}/places
{- "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.
Use this route to get all the places associated with the API key.
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places
{- "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 this route to get a place in particular, using its place ID.
| placeId required | string The ID of the place. |
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places/{placeId}
{- "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
}
}Use this route to get the queue(s) of the place.
| placeId required | string The ID of the place. |
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places/{placeId}/queues
{- "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"
}
}
}
}
}Use this route to get the counter(s) of the place.
| placeId required | string The ID of the place. |
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places/{placeId}/counters
{- "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"
}
}
}Use this route to get the endpoint(s) of the place.
| placeId required | string The ID of the place. |
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places/{placeId}/endpoints
{- "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
}
}Use this route to get the time slot(s) of the place. By default, the time slots are those of the current day.
| placeId required | string The ID of the place. |
| startAt | string The start date of the time slot to select data. |
| endAt | string The end date of the time slot to select data. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/places/{placeId}/timeslots
[- {
- "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.
Use this route to get all the queues that are associated with the API key.
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues
{- "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"
}
}
}
}
}Use this route to get the list of all the endpoints of the queues.
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues/endpoints
{- "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
}
}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.
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues/tickets/currents/sse
{- "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 this route to get all the current tickets (i.e. excluding those that are done or canceled) that are planned for today.
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues/tickets/currents
{- "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 this route to get all the tickets that have been done or canceled during the current day.
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues/tickets/history
{- "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 this route to get the current state of the queue on the first message, then all the queue state events in real time.
| queuesId | Array of strings An array of queue IDs. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/queues/state/sse
{- "resource": "string",
- "actionCategory": "ALL_QUEUE_STATE",
- "actionName": "ALL_DATA",
- "data": { }
}Use these routes to get the list of the counters, and to increment or decrement the value of the counter.
Use this route to get all the counters that are associated with the API key.
| countersId required | Array of strings An array of ID of counter. |
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/counters
{- "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"
}
}
}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.
| countersId required | Array of strings An array of ID of counter. |
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/counters/sse
{- "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"
}
}
}Use this route to get a counter in particular, using its counter ID.
| counterId required | string The ID of the counter. |
| 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. |
curl -X GET \ -H "Content-Type: application/json" \ https://api-display.lineberty.net/v1/counters/{counterId}
{- "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"
}
}Use this route to get information on the current state of the queues (whether open or closed, full, etc.).
All the data to get state information.
| queuesId required | Array of strings An array of queue IDs (required). |
{- "queuesId": [
- "queueId1",
- "queueId2",
- "queueId3"
]
}{- "queueId1": {
- "queueId": "queueId1",
- "bookingIsOpened": true,
- "queueIsOpened": true,
- "queueIsFull": false,
- "queueIsFullForTheDay": true,
- "queueIsFullForFifo": false,
- "queueIsFullForAppointment": false,
- "pause": false,
- "queueLength": {
- "queueTicketLength": 3,
- "queuePeopleLength": 5,
- "byAppointmentType": {
- "appointmentTypeId1": {
- "queueTicketLength": 0,
- "queuePeopleLength": 0
}, - "appointmentTypeId2": {
- "queueTicketLength": 0,
- "queuePeopleLength": 0
}
}
}, - "allFirstAvailabilities": {
- "appointmentTypeId1": {
- "1": "2022-01-01T12:00:00.000Z",
- "2": "2022-01-01T12:00:00.000Z"
}, - "appointmentTypeId2": {
- "1": "2022-01-01T12:00:00.000Z",
- "2": "2022-01-01T12:00:00.000Z"
}
}, - "dayQueueTimeslot": [
- {
- "startTime": "2022-01-01T12:00:00.000Z",
- "endTime": "2022-01-01T12:00:05.000Z"
}, - {
- "startTime": "2022-01-01T12:00:00.000Z",
- "endTime": "2022-01-01T12:00:05.000Z"
}, - {
- "startTime": "2022-01-01T12:00:00.000Z",
- "endTime": "2022-01-01T12:00:05.000Z"
}
], - "nextQueueTimeslot": {
- "startTime": "2022-01-01T12:00:00.000Z",
- "endTime": "2022-01-01T12:00:05.000Z"
}
}, - "queueId2": {
- "queueId": "queueId2",
- "bookingIsOpened": true,
- "queueIsOpened": true,
- "queueIsFull": false,
- "queueIsFullForTheDay": true,
- "queueIsFullForFifo": false,
- "queueIsFullForAppointment": false,
- "pause": false,
- "queueLength": {
- "queueTicketLength": 0,
- "queuePeopleLength": 0,
- "byAppointmentType": {
- "appointmentTypeId3": {
- "queueTicketLength": 0,
- "queuePeopleLength": 0
}, - "appointmentTypeId4": {
- "queueTicketLength": 0,
- "queuePeopleLength": 0
}
}
}, - "allFirstAvailabilities": {
- "appointmentTypeId3": {
- "1": "2022-01-01T12:00:00.000Z",
- "2": "2022-01-01T12:00:00.000Z"
}, - "appointmentTypeId4": {
- "1": "2022-01-01T12:00:00.000Z",
- "2": "2022-01-01T12:00:00.000Z"
}
}, - "dayQueueTimeslot": [
- {
- "startTime": "2022-01-01T12:00:00.000Z",
- "endTime": "2022-01-01T12:00:05.000Z"
}, - {
- "startTime": "2022-01-01T12:00:00.000Z",
- "endTime": "2022-01-01T12:00:05.000Z"
}, - {
- "startTime": "2022-01-01T12:00:00.000Z",
- "endTime": "2022-01-01T12:00:05.000Z"
}
], - "nextQueueTimeslot": {
- "startTime": "2022-01-01T12:00:00.000Z",
- "endTime": "2022-01-01T12:00:05.000Z"
}
}
}