BizKitHub
DocsAPI ReferenceProduct/bff/product/analytics
getProductAdmin BFF

/bff/product/analytics

One-shot analytics payload for the product detail "Analytika" tab. Revenue uses real_money_price on non-storno order-items (identical to the branch Finance grid). Monthly buckets are keyed on COALESCE(calendar_event.start_time, order_item.inserted_date) so calendar-linked items land in the month they HAPPENED, not the month they were paid.

ProductgetBffProductAnalytics

Parameters

2 query

Query parameters

· 2
productCodestringRequired

Unique product code.

Exampleexample_productCode
monthCountstringOptional

Rolling window in months for the time-series (default 24, clamped to [1, 60]). KPIs and top-N lists are always LIFETIME regardless of this window.

Exampleexample_monthCount

Response schema

1 status code documented

200Success

This response returns no JSON body.

Response example

application/json
{
  "success": true
}

Request example

GET /bff/product/analytics

get
curl -X GET "https://api.bizkithub.com/bff/product/analytics?productCode=example_productCode&monthCount=example_monthCount" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key