A webhook event contains data in JSON format. 


Sample Webhook

 

{
  "Type": "new_appointment",
  "RequestID": 1294,
  "ConfirmationID": "SAMS1294",
  "Appointment": {
    "LocationID": 1,
    "QueueID": 4,
    "ServiceID": 17,
    "OtherServiceDesc": "",
    "FirstName": "Sally",
    "LastName": "Sample",
    "Email": "sales@lobbycentral.com",
    "Phone": "614-555-5555",
    "Comments": "I would like to upgrade to the Galaxy S6 Edge+",
    "ScheduledDateTime": "2015-10-08T14:00:00Z",
    "BookingType": 1,
    "RequestedUserID": 2,
    "LocationName": "Downtown",
    "ServiceName": "Upgrade phone",
    "RequestedUserName": "Demo User1",
    "Status": 1
  }
}

 


Event Object


Type

string


new_appointment:   sent when an appointment is auto-approved or after manual approval.

cancel_appointment:  sent when an appointment has been cancelled.


RequestID
integer


The appointment's LobbyCentral request ID.


ConfirmationID
integer

The appointment confirmation ID
Appointment

The object that contains details of the appointment.  See Appointment Object below.

Appointment Object


LocationID

integer


The id of the location the appointment is scheduled at.  This id corresponds with your LobbyCentral location id.


QueueID

integer


The id of the selected queue.  This id corresponds with your LobbyCentral queue id.


ServiceID

integer


The id of the selected service (visit reason).   This id corresponds with your LobbyCentral service id.  If the id is -1, the customer enter a custom visit reason (Other).


OtherServiceDesc

string


Contains the visit reason / service entered by the customer.   ServiceID will have a value of -1 if this field contains data.


FirstName

string


The customer's first name


LastName

string


The customer's last name


Email

string


The customer's email address


Phone

string


The customer's phone number


Comments

string


Comments supplied by the customer


ScheduledDateTime

datetime


The date and time of the scheduled appointment localized to your LobbyCentral time zone.


BookingType

integer


Indicates if the appointment was automatically (0) or manually (1) approved.


RequestedUserID

integer


The id of the user that the customer requested.  This id corresponds to your LobbyCentral user ids.


LocationName

string


The name of the location where the appointment is scheduled.


ServiceName
string

The name of the service / visit reason that the customer selected.

RequestedUserName
string

The name of the user that the customer requested.

AppointmentStatus
integer

The status of the appointment.

Approval Needed (0)
Confirmed (1)
Deleted (2)
Canceled (3)