Skip to main content

By Industry

Endpoint:

GET https://yourdomain.com/api/v6.1/account_report/customer_portrait_pie

Request Headers:

  • X-API-KEY: <API-KEY>
  • Cookie: <Session-Cookie>

Request Parameters:

  • fields (required):
    • quantity_account_industry_pie
  • params[period] (optional):
    • this_month (current month)
  • params[limit] (optional):
    • 50 (record limit)

CURL Request Example:

curl --location --globoff 'https://yourdomain.com/api/v6.1/account_report/customer_portrait_pie?fields=quantity_account_industry_pie&params[period]=this_month&params[limit]=50' \
--header 'X-API-KEY: <API-KEY>' \
--header 'Cookie: <Session-Cookie>' \
--data ''

Response Structure:

  • JSON includes:
    • data: a list of objects:
      • label: industry name
      • value: number of customers in the industry

JSON Response Example:

{
"data": [
[
{"label": "Undefined Industry", "value": 12000},
{"label": "Information Technology", "value": 18},
{"label": "Marketing", "value": 16},
{"label": "Education", "value": 16},
{"label": "Finance", "value": 16},
{"label": "Tourism", "value": 17},
{"label": "Startup", "value": 17},
{"label": "Other", "value": 16}
]
]
}

Note:

  • label is the industry in which the customer operates.
  • value indicates the corresponding number of accounts in that industry.

Purpose of Use:

  • Draw a pie chart showing the proportion of customers by industry.
  • Monitor customer concentration in key industries.
  • Analyze to propose marketing strategies for each sector.