Parameters
2 query
Query parameters
· 2codestringRequiredGateway instance code/slug.
comgate-smichovmonthCountstringOptionalHow many calendar months to return (default 24, clamped to [1, 240]). Same clamp semantics as /monthly-analytics.
12Returns rows = months, columns = order groups, cells = the received amount plus the number of orders that eventually got paid via this gateway. Uses the same order-level semantics as /monthly-analytics (storno excluded, one order = one row, bucketed by first-attempt month). Column set is limited to groups that actually appear in the window — empty groups are dropped to keep the table readable.
2 query
codestringRequiredGateway instance code/slug.
comgate-smichovmonthCountstringOptionalHow many calendar months to return (default 24, clamped to [1, 240]). Same clamp semantics as /monthly-analytics.
121 status code documented
gatewayCodestringRequiredgatewayNamestringRequiredcurrencystringRequiredmonthCountnumberRequiredEffective number of months in the pivot (may be shorter than requested when the gateway has less history).
groupsobject[]RequiredidstringRequiredshop__order_group.id echoed as string.
codestringRequirednamestringRequiredmonthsobject[]RequiredmonthstringRequiredYYYY-MM bucket.
cellsobject[]RequiredgroupIdstringRequiredreceivedAmountnumberRequiredpaidOrderCountnumberRequiredtotalnumberRequiredSum of receivedAmount across all groups in this month.
totalPaidOrderCountnumberRequiredSum of paidOrderCount across all groups in this month.
totalsByGroupobject[]RequiredgroupIdstringRequiredreceivedAmountnumberRequiredpaidOrderCountnumberRequiredgrandTotalnumberRequiredgrandPaidOrderCountnumberRequired{
"gatewayCode": "example_gatewayCode",
"gatewayName": "example_gatewayName",
"currency": "example_currency",
"monthCount": 0,
"groups": [
{
"id": "example_id",
"code": "example_code",
"name": "example_name"
}
],
"months": [
{
"month": "example_month",
"cells": [
{
"groupId": "example_groupId",
"receivedAmount": 0,
"paidOrderCount": 0
}
],
"total": 0,
"totalPaidOrderCount": 0
}
],
"totalsByGroup": [
{
"groupId": "example_groupId",
"receivedAmount": 0,
"paidOrderCount": 0
}
],
"grandTotal": 0,
"grandPaidOrderCount": 0
}GET /bff/payment-gateway/monthly-analytics-by-order-group
curl -X GET "https://api.bizkithub.com/bff/payment-gateway/monthly-analytics-by-order-group?code=comgate-smichov&monthCount=12" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.