Businesses
Google Lodging attributes for your business
Changed onThis endpoint allows you to view the Google Lodging attributes set for your business. The business must be accessible by the authenticated user and the user must have the business_edit_attributes permission. If the business Google location cannot operate Lodging data, lodging is null. If the location can operate Lodging data but no Lodging attribute value is set yet, lodging is an empty array.
get/business/{business_id}/lodging
Request
- Base URLhttps://api.partoo.co/v2
- AuthAPI key in header x-APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
business_idstring required
Business id.
It may be replaced by c-{code} where code is the store code, which should be unique per organization. This can be used only for ORG_ADMIN, GROUP_MANAGER and BUSINESS_MANAGER users.
Response
OK
Example response
{
"lodging": [
{
"gmb_id": "lodging.services.frontDesk",
"type": "BOOL",
"value": true,
"exception": null
},
{
"gmb_id": "lodging.property.roomCount",
"type": "INTEGER",
"value": 42,
"exception": null
},
{
"gmb_id": "lodging.property.checkinTime",
"type": "TIME",
"value": null,
"exception": "LODGING_DEPENDENT_ON_SEASON"
},
{
"gmb_id": "lodging.services.languagesSpoken",
"type": "REPEATABLE_ENUM",
"value": [
"ENGLISH",
"FRENCH"
],
"exception": null
}
]
}Changes
- info
added
BOOLINTEGERTIMEENUMREPEATABLE_ENUMdiscriminator mapping keys to the/////response property for the response status
- info