moego.business.customer.v1)Customer is a core entity representing clients who use your services. This interface enables:
Applicable to scenarios such as customer onboarding, service history tracking, marketing campaigns, and third-party system integration
Represents a client who uses your services. A customer can have multiple pets, appointments, and preferences. Customers are the core entity in the pet service business and are used throughout the system for booking appointments, managing pets, and tracking service history.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier |
firstName |
string | Customerās first name |
lastName |
string | Customerās last name |
avatar |
string | URL to the customerās profile picture |
phone |
string | Customerās phone number. Must be in E.164 format (e.g., +12125551234) |
email |
string | Customerās email address. Must be valid |
address |
Array(Address) | List of customerās addresses |
status |
Status | Current status of the customer |
colorCode |
string | Color code for visual identification in the UI |
source |
string | How the customer was acquired |
lastAppointmentDate |
Timestamp | When the customer had their last appointment |
nextAppointmentDate |
Timestamp | When the customerās next appointment is scheduled |
createdBy |
string | ID of the staff member who created this customer |
createdTime |
Timestamp | When this customer was created |
lastUpdatedBy |
string | ID of the staff member who last modified this customer |
lastUpdatedTime |
Timestamp | When this customer was last modified |
preferredBusinessId |
string | ID of the customerās preferred business location |
companyId |
string | ID of the company this customer belongs to |
notes |
Array(Note) | List of notes about this customer |
tags |
Array(CustomerTag) | List of tags applied to this customer |
referralSource |
ReferralSource | The source or channel through which a customer was acquired |
preference |
Preference | Deprecated. Use complianceConfig instead. |
upcomingAppointmentsUrl |
string | URL to a page where the customer can view their upcoming appointments |
deleted |
bool | Flag indicating if this customer record is deleted |
complianceConfig |
CustomerComplianceConfig | Customerās compliance configuration for communication channels |
Represents a comment or observation about a customer. Notes help track important customer information, preferences, and history.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier |
note |
string | The content of the note |
lastUpdatedBy |
string | ID of the staff member who last modified this note |
lastUpdatedTime |
Timestamp | When this note was last modified |
Deprecated. Use CustomerComplianceConfig instead.
| Field Name | Type | Description |
|---|---|---|
receiveAutoMessage |
bool | Whether the customer wants to receive automated SMS messages |
receiveAutoEmail |
bool | Whether the customer wants to receive automated emails |
subscribeToMarketingEmails |
bool | Whether the customer has opted in to marketing emails |
receiveAppointmentReminder |
bool | Whether the customer wants appointment reminders |
Represents the available communication channels for customer notifications. These channels are used to control how customers receive service-related and marketing communications.
| Value | Description |
|---|---|
COMPLIANCE_CHANNEL_SMS |
Communication via SMS text messages |
COMPLIANCE_CHANNEL_EMAIL |
Communication via email |
COMPLIANCE_CHANNEL_AUTO_CALL |
Communication via automated phone calls |
Stores customerās compliance and communication preferences. This configuration controls which channels the business can use to contact the customer for different types of communications.
| Field Name | Type | Description |
|---|---|---|
serviceRelatedChannels |
Array(ComplianceChannel) | Communication channels allowed for service-related notifications |
marketingCampaignsChannels |
Array(ComplianceChannel) | Communication channels allowed for marketing campaigns |
brandedAppEnabled |
bool | Whether the customer has enabled the branded mobile app for notifications |
isAgreedMarketingPolicy |
bool | Whether the customer has agreed to receive marketing communications |
isConsented |
bool | Whether the customer has explicitly consented to the current notification compliance configuration. LEGAL NOTICE: Modifying this field carries legal responsibility. Organizations must ensure proper consent mechanisms are in place, maintain audit trails, comply with applicable data protection regulations (e.g., GDPR, CCPA, TCPA), and provide clear opt-out mechanisms. Improper handling may result in legal liability and regulatory penalties. |
Note: If an empty list is provided when updating channel configurations, the corresponding configuration will be cleared.
Important: The
isConsentedfield indicates explicit customer consent. Organizations modifying this field must comply with all applicable privacy laws and regulations. Consult with legal counsel when implementing consent management features.Webhook: Changes to customer communication compliance or consent settings can be delivered through the
CUSTOMER_COMPLIANCE_CHANGEDwebhook event.
Represents a customerās physical address.
see: Address
Here is a typical integration flow:
CreateCustomer)CreateCustomer/v1/customersRegisters a new customer with basic details, preferences, and optionally initial tags and notes.
| Field Name | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | ID of the company creating the customer |
preferredBusinessId |
string | Yes | ID of the business location preferred by the customer |
firstName |
string | Yes | Customerās first name |
lastName |
string | Yes | Customerās last name |
phone |
string | Yes | Customerās phone number |
email |
string | No | Customerās email address |
address |
Address | No | Customerās primary address |
preference |
Preference | No | Deprecated. Use complianceConfig instead. |
tags |
Array(CustomerTag) | No | Initial tags to apply to the customer |
notes |
Array(Note) | No | Initial notes about the customer |
complianceConfig |
CustomerComplianceConfig | No | Customerās compliance configuration for communication channels |
{
"companyId": "cmp_001",
"preferredBusinessId": "biz_001",
"firstName": "John",
"lastName": "Doe",
"phone": "+12125551234",
"email": "john.doe@example.com",
"address": {
"street": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001"
},
"preference": {
"receiveAutoMessage": true,
"receiveAutoEmail": false,
"subscribeToMarketingEmails": true,
"receiveAppointmentReminder": true
},
"tags": [
{
"name": "VIP"
}
],
"notes": [
{
"note": "Prefers morning appointments."
}
],
"complianceConfig": {
"serviceRelatedChannels": ["COMPLIANCE_CHANNEL_SMS", "COMPLIANCE_CHANNEL_EMAIL"],
"marketingCampaignsChannels": ["COMPLIANCE_CHANNEL_EMAIL"],
"brandedAppEnabled": true,
"isAgreedMarketingPolicy": true,
"isConsented": true
}
}
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier for the customer |
firstName |
string | Customerās first name |
lastName |
string | Customerās last name |
avatar |
string | URL to the customerās profile picture |
phone |
string | Customerās phone number |
email |
string | Customerās email address |
address |
Array(Address) | List of customerās addresses |
status |
Status | Current status of the customer |
colorCode |
string | Color code for visual identification in the UI |
source |
string | How the customer was acquired |
lastAppointmentDate |
Timestamp | When the customer had their last appointment |
nextAppointmentDate |
Timestamp | When the customerās next appointment is scheduled |
createdBy |
string | ID of the staff member who created this customer |
createdTime |
Timestamp | When this customer was created |
lastUpdatedBy |
string | ID of the staff member who last modified this customer |
lastUpdatedTime |
Timestamp | When this customer was last modified |
preferredBusinessId |
string | ID of the customerās preferred business location |
companyId |
string | ID of the company this customer belongs to |
notes |
Array(Note) | List of notes about this customer |
tags |
Array(CustomerTag) | List of tags applied to this customer |
referralSource |
ReferralSource | The source or channel through which a customer was acquired |
preference |
Preference | Deprecated. Use complianceConfig instead. |
complianceConfig |
CustomerComplianceConfig | Customerās compliance configuration for communication channels |
INVALID_ARGUMENT: Required fields are missing or invalid.PERMISSION_DENIED: Permission denied.GetCustomer)GetCustomer/v1/customers/{id}Retrieves detailed information about a specific customer, including preferences, notes, tags, and appointment history.
| Field Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Customer ID to retrieve |
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier for the customer |
firstName |
string | Customerās first name |
lastName |
string | Customerās last name |
avatar |
string | URL to the customerās profile picture |
phone |
string | Customerās phone number |
email |
string | Customerās email address |
address |
Array(Address) | List of customerās addresses |
status |
Status | Current status of the customer |
colorCode |
string | Color code for visual identification in the UI |
source |
string | How the customer was acquired |
lastAppointmentDate |
Timestamp | When the customer had their last appointment |
nextAppointmentDate |
Timestamp | When the customerās next appointment is scheduled |
createdBy |
string | ID of the staff member who created this customer |
createdTime |
Timestamp | When this customer was created |
lastUpdatedBy |
string | ID of the staff member who last modified this customer |
lastUpdatedTime |
Timestamp | When this customer was last modified |
preferredBusinessId |
string | ID of the customerās preferred business location |
companyId |
string | ID of the company this customer belongs to |
notes |
Array(Note) | List of notes about this customer |
tags |
Array(CustomerTag) | List of tags applied to this customer |
referralSource |
ReferralSource | The source or channel through which a customer was acquired |
preference |
Preference | Deprecated. Use complianceConfig instead. |
complianceConfig |
CustomerComplianceConfig | Customerās compliance configuration for communication channels |
{
"id": "cus_001",
"firstName": "John",
"lastName": "Doe",
"phone": "+12125551234",
"email": "john.doe@example.com",
"status": "ACTIVE",
"colorCode": "#FF0000",
"companyId": "cmp_001",
"preferredBusinessId": "biz_001"
}
NOT_FOUND: Specified customer ID does not exist.PERMISSION_DENIED: Permission denied.UpdateCustomer)UpdateCustomer/v1/customers/{id}Updates an existing customerās information, including basic details, preferences, and optionally tags and notes.
| Field Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Unique identifier of the customer to update |
companyId |
string | Yes | ID of the company that owns the customer |
preferredBusinessId |
string | No | ID of the business location preferred by the customer |
avatarPath |
string | No | URL to the customerās profile picture |
firstName |
string | No | Customerās first name |
lastName |
string | No | Customerās last name |
phone |
string | No | Customerās phone number |
email |
string | No | Customerās email address |
address |
Address | No | Customerās primary address |
tags |
Array(CustomerTag) | No | Tags to apply to the customer |
notes |
Array(Note) | No | Notes about the customer |
complianceConfig |
CustomerComplianceConfigUpdateDef | No | Customerās compliance configuration updates |
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier for the customer |
firstName |
string | Customerās first name |
lastName |
string | Customerās last name |
avatar |
string | URL to the customerās profile picture |
phone |
string | Customerās phone number |
email |
string | Customerās email address |
address |
Array(Address) | List of customerās addresses |
status |
Status | Current status of the customer |
colorCode |
string | Color code for visual identification in the UI |
source |
string | How the customer was acquired |
lastAppointmentDate |
Timestamp | When the customer had their last appointment |
nextAppointmentDate |
Timestamp | When the customerās next appointment is scheduled |
createdBy |
string | ID of the staff member who created this customer |
createdTime |
Timestamp | When this customer was created |
lastUpdatedBy |
string | ID of the staff member who last modified this customer |
lastUpdatedTime |
Timestamp | When this customer was last modified |
preferredBusinessId |
string | ID of the customerās preferred business location |
companyId |
string | ID of the company this customer belongs to |
notes |
Array(Note) | List of notes about this customer |
tags |
Array(CustomerTag) | List of tags applied to this customer |
referralSource |
ReferralSource | The source or channel through which a customer was acquired |
preference |
Preference | Deprecated. Use complianceConfig instead. |
complianceConfig |
CustomerComplianceConfig | Customerās compliance configuration for communication channels |
NOT_FOUND: Specified customer ID does not exist.PERMISSION_DENIED: Permission denied.Currently no delete operation is defined for customers. Deletion may be handled via deactivation or archival depending on business rules.
ListCustomers)ListCustomers/v1/customers:listLists customers matching the specified criteria, supporting pagination and filtering by last update time.
| Field Name | Type | Required | Description |
|---|---|---|---|
pagination |
Pagination | Yes | Pagination info: pageSize, pageToken |
companyId |
string | Yes | ID of the company to list customers for |
filter.lastUpdatedTime |
Interval | No | Time range for filtering customers by last update time |
filter.mainPhoneNumber |
string | No | Filter by customerās main phone number |
Note:The
paginationfield is used for pagination. ThepageSizefield specifies the number of results to return per page. Maximum value is 500. ThepageTokenfield is used to retrieve the next page of results.
| Field Name | Type | Description |
|---|---|---|
nextPageToken |
string | Token for retrieving the next page of results |
customers |
Array(Customer) | List of customers matching the request criteria |
{
"nextPageToken": "2",
"customers": [
{
"id": "cus_001",
"firstName": "John",
"lastName": "Doe",
"phone": "+12125551234",
"status": "ACTIVE",
"colorCode": "#FF0000",
"companyId": "cmp_001"
}
]
}
PERMISSION_DENIED: Permission denied.GenCustomerCofLink)GenCustomerCofLink/v1/customers/{id}/cof/linkGenerates a secure link for adding customer card-on-file information.
| Field Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Customer ID to generate link for |
| Field Name | Type | Description |
|---|---|---|
link |
string | Secure URL for adding card-on-file information |
NOT_FOUND: Specified customer ID does not exist.PERMISSION_DENIED: Permission denied.AppendCustomerNotes)AppendCustomerNotes/v1/customers/{id}/notesAdds new notes to a customerās profile.
| Field Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Customer ID to add notes to |
notes |
Array(Note) | Yes | Notes to add to the customer |
| Field Name | Type | Description |
|---|---|---|
notes |
Array(Note) | Notes that were successfully added |
NOT_FOUND: Specified customer ID does not exist.PERMISSION_DENIED: Permission denied.ListCustomerNotes)ListCustomerNotes/v1/customers/{id}/notes:listRetrieves a paginated list of notes for a specific customer.
| Field Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Customer ID to retrieve notes for |
pagination |
Pagination | Yes | Pagination info: pageSize, pageToken |
| Field Name | Type | Description |
|---|---|---|
nextPageToken |
string | Token for retrieving the next page of results |
notes |
Array(Note) | List of notes for the customer |
NOT_FOUND: Specified customer ID does not exist.PERMISSION_DENIED: Permission denied.AppendCustomerTags)AppendCustomerTags/v1/customers/{id}/tagsAdds new tags to a customerās profile.
| Field Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Customer ID to add tags to |
tags |
Array(CustomerTag) | Yes | Tags to add to the customer |
| Field Name | Type | Description |
|---|---|---|
tags |
Array(CustomerTag) | Tags that were successfully added |
NOT_FOUND: Specified customer ID does not exist.PERMISSION_DENIED: Permission denied.ListCustomerTags)ListCustomerTags/v1/customers/{id}/tags:listRetrieves all tags associated with a specific customer.
| Field Name | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | Customer ID to retrieve tags for |
| Field Name | Type | Description |
|---|---|---|
tags |
Array(CustomerTag) | List of tags associated with the customer |
NOT_FOUND: Specified customer ID does not exist.PERMISSION_DENIED: Permission denied.{
"companyId": "cmp_001",
"preferredBusinessId": "biz_001",
"firstName": "John",
"lastName": "Doe",
"phone": "+12125551234",
"email": "john.doe@example.com",
"address": {
"street": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001"
},
"preference": {
"receiveAutoMessage": true,
"receiveAutoEmail": false,
"subscribeToMarketingEmails": true,
"receiveAppointmentReminder": true
},
"tags": [
{
"name": "VIP"
}
],
"notes": [
{
"note": "Prefers morning appointments."
}
],
"complianceConfig": {
"serviceRelatedChannels": ["COMPLIANCE_CHANNEL_SMS", "COMPLIANCE_CHANNEL_EMAIL"],
"marketingCampaignsChannels": ["COMPLIANCE_CHANNEL_EMAIL"],
"brandedAppEnabled": true,
"isAgreedMarketingPolicy": true,
"isConsented": true
}
}
{
"id": "cus_001",
"companyId": "cmp_001",
"preferredBusinessId": "biz_001",
"firstName": "John",
"lastName": "Doe",
"phone": "+12125551234",
"email": "john.doe@example.com",
"address": {
"street": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001"
},
"tags": [
{
"name": "Frequent Visitor"
}
],
"notes": [
{
"note": "Prefers evening appointments now."
}
],
"complianceConfig": {
"serviceRelatedChannels": {
"channels": ["COMPLIANCE_CHANNEL_SMS"]
},
"marketingCampaignsChannels": {
"channels": []
},
"isAgreedMarketingPolicy": false,
"isConsented": false
}
}
PUT /v1/customers/{id} accepts the optional colorCode field as a string or null.
| Input | Result |
|---|---|
| Omitted | Keep the current color |
"#FFD700" |
Set a six-digit RGB hex color; upper- and lowercase hex digits are accepted and stored as submitted |
null or "" |
Clear the color; the stored value and Get Customer colorCode are "#000000" |
| Invalid format or a non-string, non-null value | HTTP 400 with an error naming colorCode and the #RRGGBB format |
For example, send the following body to /v1/customers/{id}, using IDs from your customer, company and tag responses:
{
"companyId": "<companyId>",
"tags": [{"id": "<vipTagId>"}],
"colorCode": "#FFD700"
}
Include every tag you want to retain: a nonempty tags list replaces the customerās tag collection. Clearing the color does not remove tags.
To clear only the color, send {"companyId":"<companyId>","colorCode":null}; an empty string has the same effect. Get Customer then returns "#000000".
Use GET /v1/customers/{id} to verify the current colorCode. Updates can partially complete if a later operation fails; read the customer before retrying a failed request.
{
"companyId": "cmp_001",
"pagination": {
"pageSize": 20,
"pageToken": "1"
},
"filter": {
"lastUpdatedTime": {
"startTime": "2024-08-01T00:00:00Z",
"endTime": "2024-08-02T00:00:00Z"
}
}
}
TODO
| Question | Answer |
|---|---|
| How to verify if a customer exists? | Use GetCustomer to check if the customer ID returns a valid response |
| Can I create multiple customers at once? | Currently only single customer creation is supported. Use batch processing if needed |
| How to filter customers by update time? | Use ListCustomers with filter.lastUpdatedTime |
| Why does creating a customer return āresource exhaustedā? | The company may have reached the maximum allowed customer count. Clean up unused customers or contact admin to increase quota. |
| How to manage customer tags and notes effectively? | Use AppendCustomerTags and AppendCustomerNotes to add new entries |
| How to control which communication channels can be used to contact a customer? | Use the complianceConfig field to specify allowed channels for service-related and marketing communications. Pass an empty array to clear a channel configuration. |
| How can I receive webhook notifications for customer compliance changes? | Subscribe to the CUSTOMER_COMPLIANCE_CHANGED event type. The webhook event carries the latest customer payload, including complianceConfig. |
| Error Code | Description |
|---|---|
NOT_FOUND |
Customer ID does not exist |
PERMISSION_DENIED |
Current user has no access rights |
INVALID_ARGUMENT |
Invalid request parameters |
INTERNAL |
Internal server error |