Parameters
1 query
Query parameters
· 1monthsnumberOptionalNumber of months to analyze. Defaults to 6.
66Returns customer segmentation showing new vs returning customer ratio. Essential for understanding growth vs retention balance and marketing effectiveness.
1 query
monthsnumberOptionalNumber of months to analyze. Defaults to 6.
661 status code documented
currentMonthobjectRequiredCurrent month customer breakdown.
newCustomersnumberRequiredCustomers making their first-ever order this month.
returningCustomersnumberRequiredCustomers with at least one previous order.
newCustomerRevenuenumberRequiredRevenue from new customers.
returningCustomerRevenuenumberRequiredRevenue from returning customers.
newCustomerPercentagenumberRequiredPercentage of customers who are new (0-100).
previousMonthobjectRequiredPrevious month for comparison.
newCustomersnumberRequiredNew customers in previous month.
returningCustomersnumberRequiredReturning customers in previous month.
newCustomerPercentagenumberRequiredNew customer percentage in previous month.
monthlyTrendobject[]RequiredMonthly trend data, oldest first.
Monthly customer segmentation data point.
monthstringRequiredMonth in YYYY-MM format.
newCustomersnumberRequiredNew customers count.
returningCustomersnumberRequiredReturning customers count.
newCustomerPercentagenumberRequiredPercentage of new customers (0-100).
currencystringRequiredCurrency code for revenue amounts (e.g., "CZK").
{
"currentMonth": {
"newCustomers": 0,
"returningCustomers": 0,
"newCustomerRevenue": 0,
"returningCustomerRevenue": 0,
"newCustomerPercentage": 0
},
"previousMonth": {
"newCustomers": 0,
"returningCustomers": 0,
"newCustomerPercentage": 0
},
"monthlyTrend": [
{
"month": "example_month",
"newCustomers": 0,
"returningCustomers": 0,
"newCustomerPercentage": 0
}
],
"currency": "example_currency"
}GET /bff/dashboard/customer-segmentation
curl -X GET "https://api.bizkithub.com/bff/dashboard/customer-segmentation?months=6" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.