moego.business.setting.v1)The lodging settings provide configuration options for boarding services, including lodging types and units. These settings help standardize boarding accommodations and ensure consistent service delivery across all business locations.
Applicable to scenarios such as:
A lodging represents a type of accommodation and its associated units, typically used for boarding services.
| Field Name | Type | Description |
|---|---|---|
lodgingType |
LodgingType | The type of lodging (e.g., room, area) |
lodgingUnits |
Array(LodgingUnit) | List of individual units within the type |
Describes the type of lodging available.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier for the lodging type |
name |
string | Name of the lodging type |
description |
string | Optional description |
photoList |
Array(string) | URLs to photos of this lodging type |
maxPetNum |
int32 | Maximum number of pets allowed |
lodgingUnitType |
LodgingUnitType | Type of lodging unit |
Describes a specific unit within a lodging type.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier for unit |
name |
string | Display name of the unit |
Enum representing the type of lodging unit.
| Value | Description |
|---|---|
LODGING_UNIT_TYPE_UNSPECIFIED |
Default value; should not be used |
ROOM |
Room/kennel type |
AREA |
Open area for multiple pets |
Here is a typical integration flow:
ListLodgings)ListLodgings/v1/setting/companies/{company_id}/lodgingsLists all available lodgings for a company.
Lodgings represent different types of accommodation options for pet boarding services.
| Field Name | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company ID to retrieve |
| Field Name | Type | Description |
|---|---|---|
lodgings |
Array(Lodging) |
List of lodging configurations |
| Error Code | Description |
|---|---|
PERMISSION_DENIED |
Permission denied |
INVALID_ARGUMENT |
Malformed request |
NOT_FOUND |
The company does not exist |
Request Body:
{
"companyId": "cmp_001"
}
Response Body:
{
"lodgings": [
{
"lodgingType": {
"id": "lt_001",
"name": "Deluxe Room",
"description": "Spacious room with premium amenities.",
"photoList": [
"https://example.com/photo1.jpg"
],
"maxPetNum": 2,
"lodgingUnitType": "ROOM"
},
"lodgingUnits": [
{
"id": "lu_001",
"name": "Room 101"
},
{
"id": "lu_002",
"name": "Room 102"
}
]
}
]
}
TODO
| Question | Answer |
|---|---|
| How can I manage boarding accommodations effectively? | Use ListLodgings to retrieve lodging types and units for consistent boarding management. |
| What should I do if a request returns โpermission deniedโ? | Verify that your API key has the necessary permissions to access lodging settings. |
| Error Code | Description |
|---|---|
PERMISSION_DENIED |
Current user has no access rights to perform the operation. |
INVALID_ARGUMENT |
Invalid request parameters (e.g., missing required fields, invalid format). |
NOT_FOUND |
The requested company does not exist. |
INTERNAL |
Internal server error occurred while processing the request. |