moego.business.setting.v1)The customer settings provide configuration options related to customer management, including customer tags, referral sources, lead lifecycle stages, and action statuses. These settings help standardize customer data entry and ensure consistent customer service delivery across all business locations.
Applicable to scenarios such as:
Represents a label that can be applied to customers for categorization and filtering purposes.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier |
name |
string | Display name of the tag |
lastUpdatedBy |
string | ID of the staff member who last modified this tag |
lastUpdatedTime |
Timestamp | When this tag was last modified |
Represents the source or channel through which a customer was acquired.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier |
name |
string | Display name of the source |
Represents a stage in the lead management process.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier |
name |
string | Display name |
Represents the status of an action taken on a lead.
| Field Name | Type | Description |
|---|---|---|
id |
string | Unique identifier |
name |
string | Display name |
color |
string | Display color |
Here is a typical integration flow:
ListCustomerTags)ListCustomerTags/v1/setting/companies/{company_id}/customer/tags:listLists all available customer tags for a company.
Customer tags help categorize clients and can be used for marketing, reporting, and service customization. Tags can indicate preferences, loyalty status, or special handling requirements.
| Field Name | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | ID of the company to list customer tags for |
| Field Name | Type | Description |
|---|---|---|
tags |
Array(CustomerTag) |
List of customer tags for the company |
| Error Code | Description |
|---|---|
PERMISSION_DENIED |
Permission denied |
ListCustomerReferralSources)ListCustomerReferralSources/v1/setting/companies/{company_id}/customer/referral_sources:listLists all available customer referral sources for a company.
Referral sources help track the origin of new customers and analyze marketing effectiveness. These sources can be used for lead generation, marketing campaigns, and customer analytics.
| Field Name | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | ID of the company to list sources for |
| Field Name | Type | Description |
|---|---|---|
referralSources |
Array(ReferralSource) |
List of referral sources |
| Error Code | Description |
|---|---|
PERMISSION_DENIED |
Permission denied |
ListLeadsLifeCycles)ListLeadsLifeCycles/v1/setting/companies/{company_id}/leads/life_cyclesReturns a list of lead life cycles.
| Field Name | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | ID of the company to list cycles for |
| Field Name | Type | Description |
|---|---|---|
lifeCycles |
Array(LifeCycle) |
List of lead life cycles |
| Error Code | Description |
|---|---|
PERMISSION_DENIED |
Permission denied |
INVALID_ARGUMENT |
Malformed request |
ListLeadsActionStatus)ListLeadsActionStatus/v1/setting/companies/{company_id}/leads/action_statusReturns a list of lead action statuses.
| Field Name | Type | Required | Description |
|---|---|---|---|
companyId |
string | Yes | ID of the company to list statuses for |
| Field Name | Type | Description |
|---|---|---|
actionStatuses |
Array(ActionStatus) |
List of lead action statuses |
| Error Code | Description |
|---|---|
PERMISSION_DENIED |
Permission denied |
INVALID_ARGUMENT |
Malformed request |
Request Body:
{
"companyId": "cmp_001"
}
Response Body:
{
"tags": [
{
"id": "tag_001",
"name": "VIP Customer",
"lastUpdatedBy": "staff_001",
"lastUpdatedTime": "2023-01-01T10:00:00Z"
},
{
"id": "tag_002",
"name": "First-time Customer",
"lastUpdatedBy": "staff_002",
"lastUpdatedTime": "2023-01-02T10:00:00Z"
}
]
}
Request Body:
{
"companyId": "cmp_001"
}
Response Body:
{
"referralSources": [
{
"id": "ref_001",
"name": "Google Search"
},
{
"id": "ref_002",
"name": "Social Media"
}
]
}
TODO
| Question | Answer |
|---|---|
| How can I categorize customers effectively? | Use ListCustomerTags to retrieve tags and apply them to customers for better management. |
| How can I track customer acquisition sources? | Use ListCustomerReferralSources to get sources and associate them with new customers. |
| How do I manage lead progression? | Use ListLeadsLifeCycles and ListLeadsActionStatus to track and manage leads. |
| What should I do if a request returns βpermission deniedβ? | Verify that your API key has the necessary permissions to access customer 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. |