Download OpenAPI specification:
Login endpoint. Authenticates a user and returns a Bearer token.
Grant Type (string) or Grant Type (null) (Grant Type) | |
| username required | string (Username) |
| password required | string <password> (Password) |
| scope | string (Scope) Default: "" |
Client Id (string) or Client Id (null) (Client Id) | |
Client Secret (string) or Client Secret (null) <password> (Client Secret) |
{- "access_token": "string",
- "token_type": "string"
}Add a user to the database. For admins only.
| username required | string (Username) |
| password required | string (Password) |
| permissions | string (Permissions) |
{- "message": "User successfully added."
}Get the status of rooms for a given property.
| property_uuid | string (Property Uuid) |
| room_numbers | string (Room Numbers) |
{- "rooms_status": [
- {
- "adults": 2,
- "arrival_date": "2024-01-15",
- "assignment_status": "unassigned",
- "children": 0,
- "data_last_updated": "2024-01-15T18:51:07.354076+00:00",
- "departure_date": "2024-01-20",
- "room_category_label": "ABCD",
- "room_id": "101"
}
]
}Get all properties that are enabled for the HospitalityAPI.
Returns the name and UUID for every property in MongoDB whose AHIP field is set to True. Properties missing the field, or with AHIP=False, are excluded.
{- "properties": [
- {
- "property_name": "Example Hotel Name",
- "property_uuid": "00000000-0000-0000-0000-000000000000"
}
]
}