...
message - present for some of webhook types, message that is communicated to customer associated with this event
data
position - Position model current ticket or booking state
type - type of webhook, see above for full list
organization - name of organization that this queue event corresponds to
Info |
---|
Changelog 28-01-2021:
|
Example payloads
Position created webhook
...
Code Block |
---|
{ "message": "Position A7 was cancelled. Visit https://qr.run/1FfHJUrk if you would like to request a new position.", "data": { "position": { "id": "b573b730-ab6e-4314-8c8f-1ad654aeb169", "status": "rejected", "priority": 0, "location": { "locationName": "Ombori Stress Test 1" }, "registrationData": { "phone": { value: "+48888888888" }, }, "label": "A7", "locale": "en", "type": "anonymous", "queue": "b23bea4f-8e8a-4da6-b413-04454f8428aa", "createdAt": "2021-01-21T14:11:52.436Z", "rejectedAt": "2021-01-21T15:05:17.527Z", "servedBy": {}, "station": null } }, "type": "positionRemoved", "organization": "ombori" } |
...
Code Block |
---|
{ "message": "We called your ticket, but did not find you. We will try again in few minutes. Please approach the entrance.", "data": { "position": { "id": "efe8bc5d-4afc-431b-bad6-321707b08447", "status": "pending", "priority": 0, "location": { "locationName": "Ombori Stress Test 1" }, "registrationData": { "phone": { value: "+48888888888" }, }, "label": "A4", "locale": "en", "notification": { "type": "applePass", "settings": { "passTypeIdentifier": "pass.com.ombori.queueservice", "devices": [] } }, "type": "anonymous", "queue": "b23bea4f-8e8a-4da6-b413-04454f8428aa", "createdAt": "2021-01-21T14:06:01.994Z", "calledAt": "2021-01-21T14:15:17.527Z", "servedBy": {}, "retryCount": 1 } }, "type": "positionRetry", "organization": "ombori" } |
...
Code Block |
---|
{ "message": "It is your turn now.", "data": { "position": { "status": "notified", "priority": 0, "location": { "locationName": "Ombori Stress Test 1" }, "registrationData": { "phone": { value: "+48888888888" }, }, "label": "A4", "locale": "en", "notification": { "type": "applePass", "settings": { "passTypeIdentifier": "pass.com.ombori.queueservice", "devices": [] } }, "id": "efe8bc5d-4afc-431b-bad6-321707b08447", "type": "anonymous", "queue": "b23bea4f-8e8a-4da6-b413-04454f8428aa", "createdAt": "2021-01-21T14:06:01.994Z", "servedBycalledAt": {},"2021-01-21T14:07:01.994Z", "servedBy": {}, "station": null } }, "type": "positionCalled", "organization": "ombori" } |
...
Code Block |
---|
{ "message": null, "data": { "position": { "id": "efe8bc5d-4afc-431b-bad6-321707b08447", "status": "fulfilled", "priority": 0, "location": { "locationName": "Ombori Stress Test 1" }, "registrationData": { "phone": { value: "+48888888888" }, }, "label": "A4", "locale": "en", "notification": { "type": "applePass", "settings": { "passTypeIdentifier": "pass.com.ombori.queueservice", "devices": [] } }, "type": "anonymous", "queue": "b23bea4f-8e8a-4da6-b413-04454f8428aa", "createdAt": "2021-01-21T14:06:01.994Z", "servedBy": {}, "retryCount": 1, "station": null, "calledAt": "2021-01-21T14:06:01.994Z", "fulfilledAt": "2021-01-21T14:07:07.074Z", "completedAt": "2021-01-21T15:06:01.994Z", "leaveReminderAt": null, "leaveAt": null } }, "type": "positionFulfilled", "organization": "ombori" } |
...
Code Block |
---|
{ "message": null, "data": { "position": { "id": "d144003e-14bb-4d17-b67d-f501c066f563", "status": "completed", "priority": 0, "location": { "locationName": "Ombori Stress Test 1" }, "registrationData": { "phone": { value: "+48888888888" }, }, "label": "A6", "locale": "en", "type": "anonymous", "queue": "b23bea4f-8e8a-4da6-b413-04454f8428aa", "createdAt": "2021-01-21T14:11:15.694Z", "servedBy": {}, "station": null, "fulfilledAt": "2021-01-21T14:11:21.276Z",, "calledAt": "2021-01-21T14:25:01.994Z", "completedAt": "2021-01-21T15:06:01.994Z", "leaveReminderAt": null, "leaveAt": null } }, "type": "positionCompleted", "organization": "ombori" } |
...
Code Block |
---|
{
"message": null,
"data": {
"position": {
"id": "cce2ae86-1f5c-4dd4-b040-0b606a850f62",
"location": {
"locationName": "Ombori Stress Test 1"
},
"registrationData": {
"phone": { value: "+48888888888" },
},
"type": "booking",
"priority": 100,
"createdAt": "2021-01-11T14:48:24.479Z",
"rejectedAt": "2021-01-21T15:06:01.994Z",
"locale": "en",
"notification": {
"type": "phoneNumber",
"settings": {
"from": "",
"to": "+4600000000",
"recipient": ""
}
},
"numberOfPeople": 1,
"booking": {
"start": "2021-01-13T05:30:00Z",
"end": "2021-01-13T06:00:00Z"
},
"status": "rejected",
"label": "",
"queue": "dd31dda9-5ec0-46c6-a75b-71cb1f66a48d",
"QRCodeCheckInPositionId": "{\"type\":\"check-in-position\",\"positionId\":\"cce2ae86-1f5c-4dd4-b040-0b606a850f62\"}",
"bookingReminderAt": "2021-01-13T05:00:00Z"
}
},
"type": "positionCancelled",
"organization": "ombori"
} |
...
Code Block |
---|
{ "message": null, "data": { "position": { "id": "cce2ae86-1f5c-4dd4-b040-0b606a850f62", "location": { "locationName": "Ombori Stress Test 1" }, "registrationData": { "phone": { value: "+48888888888" }, }, "type": "booking", "priority": 100, "createdAt": "2021-01-11T14:48:24.479Z", "rejectedAt": "2021-01-21T15:06:01.994Z", "locale": "en", "notification": { "type": "phoneNumber", "settings": { "from": "", "to": "+4600000000", "recipient": "" } }, "numberOfPeople": 1, "booking": { "start": "2021-01-13T05:30:00Z", "end": "2021-01-13T06:00:00Z" }, "status": "rejected", "label": "", "queue": "dd31dda9-5ec0-46c6-a75b-71cb1f66a48d", "QRCodeCheckInPositionId": "{\"type\":\"check-in-position\",\"positionId\":\"cce2ae86-1f5c-4dd4-b040-0b606a850f62\"}", "bookingReminderAt": "2021-01-13T05:00:00Z" } }, "type": "positionCancelledByStaff", "organization": "ombori" } |
...
Code Block |
---|
{
"data": {
"position": {
"id": "788ab8bd-1590-4bfb-8569-7a4920a3d679",
"status": "completed",
"priority": 0,
"location": {
"locationName": "Ombori Stress Test 1"
},
"registrationData": {
"phone": { value: "+48888888888" },
},
"label": "A2",
"locale": "en",
"type": "booking",
"queue": "dd31dda9-5ec0-46c6-a75b-71cb1f66a48d",
"createdAt": "2020-12-14T12:16:20.308Z",
"extraStatus": "goToEntrance",
"QRCodeCheckInPositionId": "{\"type\":\"check-in-position\",\"positionId\":\"788ab8bd-1590-4bfb-8569-7a4920a3d679\"}",
"station": {
"id": "259a8de4-f5ea-42c4-a9af-e272a42f1b6f",
"label": "C2"
},
"notification": {
"type": "phoneNumber",
"settings": {
"from": "",
"to": "+4600000000"
}
},
"numberOfPeople": 1,
"booking": {
"start": "2020-12-14T12:30:00Z",
"end": "2020-12-14T13:00:00Z"
},
"fulfilledAt": "2020-12-14T12:16:26.473Z",
"calledAt": "2021-01-14T12:06:01.994Z",
"leaveReminderAt": null,
"leaveAt": null,
"feedback": {
"rating": 4,
"message": "Lorem ipsum"
}
}
},
"type": "feedbackReceived",
"organization": "ombori"
} |
...