Parameters
1 query
Query parameters
· 1inactiveDaysnumberOptionalDays without order to be considered inactive. Defaults to 90.
9090Identifies customers who have not ordered recently. Perfect input for reactivation campaigns and retention efforts.
1 query
inactiveDaysnumberOptionalDays without order to be considered inactive. Defaults to 90.
90901 status code documented
summaryobjectRequiredtotalCustomersnumberRequiredTotal customers.
activeCustomersnumberRequiredCustomers who ordered recently.
inactiveCustomersnumberRequiredCustomers inactive for the threshold period.
inactivityRatenumberRequiredInactivity rate (0-100%).
inactiveRevenuePotentialnumberRequiredEstimated revenue potential from reactivation.
bySegmentobject[]RequiredInactive customers by segment.
segmentstringRequiredSegment code.
segmentLabelstringRequiredSegment label.
customerCountnumberRequiredCustomers in segment.
avgLifetimeValuenumberRequiredAverage lifetime value.
avgOrdersnumberRequiredAverage order count.
topInactiveCustomersobject[]RequiredTop 20 inactive customers by value.
customerIdnumberRequiredCustomer ID.
externalIdstringRequiredExternal customer ID.
customerNamestringRequiredCustomer name.
emailstring | nullRequiredCustomer e-mail. null for phone-only customers and anonymised contacts — UI should fall back to customerName or externalId.
lastOrderDatestringOptionalLast order date.
orderCountnumberRequiredTotal orders.
totalSpentnumberRequiredTotal amount spent.
currencystringRequiredCurrency code.
{
"summary": {
"totalCustomers": 0,
"activeCustomers": 0,
"inactiveCustomers": 0,
"inactivityRate": 0,
"inactiveRevenuePotential": 0
},
"bySegment": [
{
"segment": "example_segment",
"segmentLabel": "example_segmentLabel",
"customerCount": 0,
"avgLifetimeValue": 0,
"avgOrders": 0
}
],
"topInactiveCustomers": [
{
"customerId": 0,
"externalId": "example_externalId",
"customerName": "example_customerName",
"lastOrderDate": "example_lastOrderDate",
"orderCount": 0,
"totalSpent": 0
}
],
"currency": "example_currency"
}GET /bff/dashboard/inactive-customers
curl -X GET "https://api.bizkithub.com/bff/dashboard/inactive-customers?inactiveDays=90" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.