moego.business.setting.v1)The pet settings provide configuration options related to pet management, including pet codes, pet sizes, pet types, and pet coat types. These settings help standardize pet data entry and ensure consistent pet service delivery across all business locations.
Applicable to scenarios such as:
Represents special handling instructions or medical alerts for a pet.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier |
abbreviation |
string | Short form (e.g., AG for Aggressive) |
description |
string | Detailed explanation |
color |
string | Highlight color in UI |
Represents a size category for pets, which can be used to customize services based on the petโs size.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier for this pet size |
name |
string | Name of the pet size (e.g., โSmallโ, โMediumโ) |
weightLow |
Weight | Lower weight limit for this size category |
weightHigh |
Weight | Upper weight limit for this size category |
Represents a type or species of pet, such as Dog, Cat, Bird, etc.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier |
name |
string | Name of the pet type |
Represents a coat type or fur type for pets, such as Short, Long, Curly, etc.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier |
name |
string | Name of the pet coat type |
Here is a typical integration flow:
ListPetCodes)ListPetCodes/v1/setting/companies/{company_id}/pet/codes:listLists all available pet codes for a company.
Pet codes are used to flag special handling requirements or medical conditions that staff need to be aware of when providing services. These codes are displayed prominently in pet profiles and during service delivery.
| Field Name | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company ID to retrieve |
| Field Name | Type | Description |
|---|---|---|
codes |
Array(PetCode) |
List of pet codes for the company |
| Error Code | Description |
|---|---|
PERMISSION_DENIED |
Permission denied |
ListPetSizes)ListPetSizes/v1/setting/companies/{company_id}/pet/sizes:listLists all available pet sizes for a company.
Pet sizes are used to categorize pets by general size (e.g., Small, Medium, Large) which can be used to customize services, pricing, or handling requirements.
| Field Name | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company ID to retrieve |
| Field Name | Type | Description |
|---|---|---|
petSizes |
Array(PetSize) |
List of pet sizes for the company |
| Error Code | Description |
|---|---|
PERMISSION_DENIED |
Permission denied |
ListPetTypes)ListPetTypes/v1/setting/companies/{company_id}/pet/types:listLists all available pet types for a company.
Pet types are used to categorize pets by species (e.g., Dog, Cat, Bird) which can be used to customize services, pricing, or handling requirements.
| Field Name | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company ID to retrieve |
| Field Name | Type | Description |
|---|---|---|
petTypes |
Array(PetType) |
List of pet types for the company |
| Error Code | Description |
|---|---|
PERMISSION_DENIED |
Permission denied |
ListPetCoatTypes)ListPetCoatTypes/v1/setting/companies/{company_id}/pet/coat_types:listLists all available pet coat types for a company.
Pet coat types are used to categorize pets by their fur characteristics (e.g., Short, Long, Curly) which can be used to customize services, pricing, or handling requirements.
| Field Name | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | Company ID to retrieve |
| Field Name | Type | Description |
|---|---|---|
petCoatTypes |
Array(PetCoatType) |
List of pet coat types for the company |
| Error Code | Description |
|---|---|
PERMISSION_DENIED |
Permission denied |
Request Body:
{
"companyId": "cmp_001"
}
Response Body:
{
"codes": [
{
"id": "code_001",
"abbreviation": "AG",
"description": "Aggressive pet requiring special handling",
"color": "#FF0000"
},
{
"id": "code_002",
"abbreviation": "MED",
"description": "Pet with medical conditions",
"color": "#0000FF"
}
]
}
TODO
| Question | Answer |
|---|---|
| How can I flag special handling requirements for pets? | Use ListPetCodes to retrieve codes and apply them to pets for special handling alerts. |
| How can I categorize pets by size, type, or coat? | Use ListPetSizes, ListPetTypes, and ListPetCoatTypes for pet categorization. |
| What should I do if a request returns โpermission deniedโ? | Verify that your API key has the necessary permissions to access pet 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). |
INTERNAL |
Internal server error occurred while processing the request. |