Listed below are common errors that may be returned by the endpoint, along with their corresponding status code.
Status Code - 400
Missing Authorization header
Copy
Ask AI
{ "error": { "type": "missing_authorization", "message": "Your request does not include an 'Authorization' header with a bearer token for your account." }}
Status Code - 401
Expired Authorization header bearer token value
Copy
Ask AI
{ "error": { "type": "expired_token", "message": "The bearer token you have provided in the 'Authorization' header has expired. Please obtain a new one." }}
Status Code - 401
Invalid Authorization header bearer token value
Copy
Ask AI
{ "error": { "type": "invalid_authorization", "message": "The bearer token you have provided in the 'Authorization' header is invalid." }}
Status Code - 400
Returned if no group id or external reference is passed in the body.
No group id or external reference supplied
Copy
Ask AI
{ "error": { "type": "no_group", "message": "You must either provide a group id or group external reference in the request body." }}
Status Code - 400
Returned if both a group id and group_external_ref are provided
Both group id and external ref provided for the unit post-multiple operation
Copy
Ask AI
{ "error": { "type": "both_group_identifiers_provided", "message": "You have provided both a group id and group external reference for the create/update units operation. Please only provide one of the two." }}
Status Code - 401
Returned if the authenticated API user does not have access to the requested group.
No access to the provided group
Copy
Ask AI
{ "error": { "type": "no_access_to_group", "message": "You do not have access to the group you have provided." }}
Status Code - 404
Returned if no group for the provided group ID is found
Group with provided ID not found
Copy
Ask AI
{ "error": { "type": "group_not_found", "message": "We could not find a group with the ID you have provided." }}
Copy
Ask AI
curl --location --request "https://api.travtus.com/messages/'" \--header 'Content-Type: application/json' \--header 'Authorization: bearer <token>' \--data-raw '{ "group_id": "group-id-1", "channel": "review", "review": { "source": "google", "review_id": "review-1", "title": "Very good apartment and service!", "comment": "Lovely apartment, great rent and service, would recommend!", "rating": 5, "created_datetime": "2023-01-01T00:00:00" }}'