Webhook Field definitions

Overview

FieldDescriptionData TypeFixed
appointmentAppointment detailsSee appointment section
queuingQueuing detailsSee queuing section
CompanyAppointment locationSee company section
serviceService associated with the appointmentSee service section
staffThe Person providing the serviceSee staff section
resourceThe resource associated to the serviceSee resource section
customerThe customer informationSee customer section
additionalAttendeeCustomersAdditional appointment attendeesSee additional attendees section
additionalAttendeeStaffAdditional appointment attendeesSee additional attendees section
triggerNameThe event that triggered the webhookstring*
values = create, modify, cancelled.
N
triggerTimeThe time and date that the webhook is triggered by an event in JRNIUTC Date / Time*N

Appointment

FieldDescriptionData TypeFixed
originType of booking. Populated with "booking" or "queuer".stringYes
bookingIdJRNI Appointment IDintegerYes
longidPurchase reference to allow the end consumer to cancel or amend their booking. This is another unique appointment identifierstringYes
customerStartTimeAppointment start time
- If an in-person appointment is booked the location time zone is used.
- If a video/phone appointment is booked, the customer's time zone is used
UTC Date TimeNo
customerEndTimeAppointment end time
- If an in-person appointment is booked the location time zone is used.
- If a video/phone appointment is booked the customer's time zone is used
UTC Date TimeNo
companyStartTimeStart time in the location’s timezoneUTC Date TimeNo
companyEndTimeEnd time in the location’s timezoneUTC Date TimeNo
durationAppointment duration in minutesIntegerNo
bookedByWho initiated the appointmentstringYes
channelChannel in which the booking was originatedstringYes
statusThe booking status. Full description, see Admin API - List Bookings.stringYes
checkInStatusCurrent Check in statusstringNo
checkInStatusListFull check in status history against the booking. Dates and times in UTC.objectNo
customerModifyURLURL for a customer to cancel or reschedule their bookingstringYes
adminModifyURLURL for JRNI studio user to cancel or reschedule the bookingstringYes
joinVideoURLURL for JRNI studio user to join the virtual appointmentstringNo
customBookingFieldBooking questions that you want the end consumer to answer when making the appointmentarrayNo

Queuing

Only populated if the booking is for a queuer

FieldDescriptionData TypeFixed
queuingURLURL for the queuing statusstringYes
queueNameName of the Client Queue as configured in StudiostringYes
queueIdThe Id of the queue in JRNIintegerYes
queueDetailsHistory of the client's position and wait time in the queueobjectYes
queueStatusCheck in status history for the queue with dates and times returned in UTC.objectNo

Company

FieldDescriptionData TypeFixed
nameBooking location namestringNo
addressPhysical full address of the location
If the appointment method is Virtual, the address will be blank
stringNo
phoneNumberPhone number associated to the location. If not populated in JRNI Studio this will be blankstringNo
timezoneThe location's timezone as set in StudiostringNo
liveIndicates if the location is live for customers to book too.booleanNo
disabledIndicates if the location is enabled for customer bookingsbooleanNo
jrniIdThe JRNI Company Id for the location. This is a unique id.integerYes
externalIdThe client’s unique Id for the location as stored in JRNIstringNo
customCompanyFieldsAdditional location informationSee Custom Elements section

Service

FieldDescriptionData TypeFixed
nameThe name you provide for the appointment type. This will show on the customer journey and in JRNI StudiostringNo
categoryCategory Name is applied as a way of grouping services togetherstringNo
categoryIdJRNI Id for the categoryintegerNo
methodService can be delivered In Person, Virtual or by PhonestringNo
methodIdJRNI Id for the service methodintegerNo
disabledThe service is flagged as disabled for customer bookings. Only admins can book this service type.booleanNo
jrniIdUnique JRNI Identifier for the service.integerYes
externalIdThe client's unique Id for the servicestring
customServiceFieldsJRNI allows customized data to be stored against the service record.arrayNo

Staff

FieldDescriptionData TypeFixed
jrniIdUnique JRNI identifier for the staff memberintegerYes
externalidClient’s unique id for the staff memberstringNo
nameThe staff’s namestringNo
emailThe email address as stored in JRNI for the staff memberstringNo
descriptionA description of the staff memberstringNo
phoneNumberThe phone number for the staff member as stored in JRNIstringNo
disabledWhether the staff member can take customer online bookingsbooleanNo
neverBookedSets a staff member to be continuously available for bookingsbooleanNo
customStaffFieldsJRNI allows customized data to be stored against the staff record. These fields can be provided herearray

Resource

FieldDescriptionData TypeFixed
jrniIdUnique JRNI identifier for the staff memberintegerYes
nameThe resource’s namestringNo
addressThe address associated with the resourcestringNo
externalIdClient’s unique resource idstringNo

Customer

FieldDescriptionData TypeFixed
jrniIdThe JRNI allocated unique id for the end consumer recordintegerYes
externalIdClient’s customer reference in JRNIstringNo
firstNameFirst NamestringNo
lastNameSurnamestringNo
emailThe customer’s email address as stored in JRNIstringNo
mobileThe customer’s mobile/cell phone number as stored in JRNIstringYes
homePhoneThe customer’s home phone number as stored in JRNIstringYes
mobilePrefixCountryThe customer’s mobile number country name.
Example "United States"
stringYes
phonePrefixCountryThe customer’s home phone country name
Example "United States"
stringYes
mobilePrefixCountryCodeThe customer’s country code.
SO 3166-1 2 alpha country code
Eg. US
stringYes
phonePrefixCountryCodeThe customer’s country code.
SO 3166-1 2 alpha country code
Eg. US
stringYes

Additional Attendees

Additional attendees can be either customers or staff

FieldDescriptionData TypeFixed
firstNameFirst namestringNo
lastNameSurnamestringNo
typeThe type of the additional attendee.
Staff or Customer
string
emailThe attendee's email address as stored in JRNIstringNo
mobileThe attendee’s mobile/cell phone number as stored in JRNIstringNo

Custom Elements

This is an array that is part of all the main data elements in the payload. Clients can use these fields to extend the standard JRNI data model.

FieldDescriptionData TypeFixed
refThe custom element identifierstringYes
valueThe custom element valuestringNo