...
Request URL Parameters
Parameter | Description | |
---|---|---|
id integer required | Property Numerical identifier The id of the form | |
hotel_id | Form Numerical identifier from the Retrieve All Forms call.limit | The maximum number of forms to return, up to 50.
|
Staff
Retrieve All Staff
This call returns all available staff by property and their roles. Forms are returned in a paginated collection which provides a Meta Array with pagination information.
...
Code Block |
---|
GET v3/staff |
Request URL Parameters
Parameter | Description |
---|---|
hotel_id | Property Numerical identifier Cannot be null |
Retrieve Specific Staff
This call returns all available staff by property and their roles.
Fetch a Properties staff as Staff Object array.
Code Block |
---|
GET v3/staff/:username |
Request URL Parameters
Parameter | Description |
---|---|
username string required | Specific staff username obtained from the retrieve all staff call |
hotel_id | Property Numerical identifier Cannot be null |
Categories
Retrieve All Categories
This call returns all available form categories including their respective department. Categories . Forms are returned in a paginated collection which provides a Meta Array with pagination information.
Fetch a Properties staff categories as Staff categories Object array.
Code Block |
---|
GET v3/staff/:usernamecategories |
Request URL Parameters
Parameter | Description |
---|---|
hotel_id |
Cannot be null |
limit | username string required | Specific staff username obtained from the retrieve all staff call
Message Structure
Create Request
Code Block |
---|
POST v2/requests/create/{hotelid} |
integer | The maximum number of categories to return, up to 50. |
Retrieve Specific Categories
This call returns all available form categories including their respective department.
Fetch a Properties categories as categories Object array.
Code Block |
---|
GET v3/categories/:category_id |
Request URL ParametersRequest Body Parameters within
Parameter | Description |
---|
id |
integer required |
Cannot be null
booking_id
string
required
The category id | |
hotel_id |
|
Requests
Retrieve All Requests
This call returns all requests for property and their roles. Requests are returned in a paginated collection which provides a Meta Array with pagination information.
Fetch a Properties requests as request Object array.
Code Block |
---|
GET v3/requests |
Request URL Parameters
Parameter | Description |
---|---|
hotel_id | Property Numerical identifier Cannot be null |
limit |
required
email
string
required
an existing guest or create a new guest in MyGuests
name
string
required
phone
string
required
to support eventual SMS functionality
rewards_number
string
optional
Optional field for supporting a hotels rewards or loyalty program. Can be sent as null or omitted if not used.
string
optional
Used when created a Request related to a messaging API.
Optional field which can be sent as null or omitted if not used.
String should match the name of the related OTA Channel i.e. "BookingCenter" or "Booking.com" .
If used message_thread element is required.
string
optional
Optional field which can be sent as null or omitted if not used.
String should match the thread id provided by the OTA for the messaging thread.
If used `message_channel` element is required.
guest_notify
boolean
required
creation. Accepted values false or true
form_name
string
required
and category in MyGuests. If not found a new form will be created
integer | The maximum number of requests to return, up to 50. |
offset integer optional, default is 0 | The number of requests to skip over, where the ordering is consistent but unspecified. |
Retrieve Single Request
This call returns a specific request for property.
Fetch a Properties request as request Object array.
Code Block |
---|
GET v3/requests/:request_id |
Request URL Parameters
Parameter | Description |
---|---|
id | The request id |
hotel_id | Property Numerical identifier Cannot be null |
Create a Request
This call creates a new request and returns a request object.
Code Block |
---|
POST v3/requests |
Request URL Parameters
Parameter | Description |
---|---|
hotel_id | Property Numerical identifier Cannot be null |
Guest | see list of supported strings |
Anchor | ||||
---|---|---|---|---|
|
Parameter | Description |
---|---|
name | Guest fullname i.e. "John Doe" |
email | guest email |
phone string required | guests preferred phone number |
return [
'hotel_id' => 'required|integer',
'guest.name' => 'required|string',
'guest.phone' => ['required_without:guest.email', new PhoneNumber],
'form_name' => 'required|string',
'guest.email' => 'required|string|email',
'guest_notify' => 'required|boolean',
'form_category' => 'required|string',
'staff_username' => 'sometimes|required|string',
'status' => 'sometimes|required|in:New,Processing,Completed,Cancelled',
'form_fields' => 'required|array',
'form_fields.details' => 'sometimes|required|string|min:10,max:20000'
];
Example Request
Code Block |
---|
{ "request": { "room": "32", "booking_id": "1332025-4X", "details": "credit card declined", "email": "jchieppa@gmail.com", "name": "Joe Banks", "phone": "7075551414", "rewards_number": null, "message_channel": "BookingCenter", "message_thread": "597470647", "guest_notify": false, "form_name": "Self Checkin" } } |
...