Channel Messages
, it is an unified API to work with chat messages from Booking.com and Airbnb (only these 2 channels are supported currently).message
Text field with Guest message. Can be empty, if attachments
is present.attachments
List of links to Attachments associated with message.sender
Enum field to represent message direction. Can be guest
or property
.inserted_at
Timestamp, when message was received.updated_at
Timestamp, when message was updated.title
String field with Message Thread title, usually equal to the Customer name.is_closed
Boolean marker to show if the thread is open or not.provider
Message provider. String. (This will be "BookingCom" (Booking.com) or Airbnb) Later there will be more providers.message_count
Integer field to represent count of messages inside Message Thread.last_message
- Message entity.last_message_received_at
Timestamp to represent when last message was received.inserted_at
Timestamp, when Message Thread was received.updated_at
Timestamp, when Message Thread was updated.200 OK
401 Unauthorized
403 Forbidden
422 Unprocessable Entity
200 OK
HTTP Code if operation is successful. Will contain a Messages
list in the answer.
Unauthorised Error
Method can return a Unauthorised Error result with 401 Unauthorized
HTTP Code if wrong Bearer Token provided or User not have access to requested Booking.404 Not Found
HTTP Code if Booking with provided ID is not present at system.403 Forbidden
HTTP Code if Property, associated with requested Booking, is not connected to Messages Application.422 Unprocessable Entity
HTTP Code if Booking with provided ID associated with OTA, which not support Messages API.200 OK
401 Unauthorized
403 Forbidden
422 Unprocessable Entity
200 OK
HTTP Code if operation is successful. Will contain a Message
in the answer.
Unauthorised Error
Method can return a Unauthorised Error result with 401 Unauthorized
HTTP Code if wrong Bearer Token provided or User not have access to requested Booking.404 Not Found
HTTP Code if Booking with provided ID is not present at system.403 Forbidden
HTTP Code if Property, associated with requested Booking, is not connected to Messages Application.422 Unprocessable Entity
HTTP Code if Booking with provided ID associated with OTA, which not support Messages API.200 OK
401 Unauthorized
403 Forbidden
200 OK
HTTP Code if operation is successful. Will contain a Message Threads
list in the answer.
Unauthorised Error
Method can return a Unauthorised Error result with 401 Unauthorized
HTTP Code if wrong Bearer Token provided or User not have access to requested Booking.403 Forbidden
HTTP Code if Property, associated with requested Booking, is not connected to Messages Application.200 OK
401 Unauthorized
403 Forbidden
200 OK
HTTP Code if operation is successful. Will contain a Message Thread
in the answer.
Unauthorised Error
Method can return a Unauthorised Error result with 401 Unauthorized
HTTP Code if wrong Bearer Token provided or User not have access to requested Booking.403 Forbidden
HTTP Code if Property, associated with requested Booking, is not connected to Messages Application.200 OK
401 Unauthorized
403 Forbidden
200 OK
HTTP Code if operation is successful. Will contain a Messages
associated with Message Thread
in the answer.
Unauthorised Error
Method can return a Unauthorised Error result with 401 Unauthorized
HTTP Code if wrong Bearer Token provided or User not have access to requested Booking.403 Forbidden
HTTP Code if Property, associated with requested Booking, is not connected to Messages Application.200 OK
401 Unauthorized
404 Not Found
200 OK
HTTP Code if operation is successful. Will contain a Message
in the answer.
Unauthorised Error
Method can return a Unauthorised Error result with 401 Unauthorized
HTTP Code if wrong Bearer Token provided or User not have access to requested Message Thread.404 Not Found
HTTP Code if Message Thread with provided ID is not present at system.200 OK
401 Unauthorized
404 Not Found
200 OK
HTTP Code if operation is successful. Will contain a Message Thread
in the answer.
Unauthorised Error
Method can return a Unauthorised Error result with 401 Unauthorized
HTTP Code if wrong Bearer Token provided or User not have access to requested Message Thread.404 Not Found
HTTP Code if Message Thread with provided ID is not present at system.