/bff/payment-gateway/monthly-analytics-by-order-group
Returns 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.
Parameters
2 query
codestringRequiredGateway instance code/slug.
monthCountstringHow many calendar months to return (default 24, clamped to [1, 240]). Same clamp semantics as /monthly-analytics.
Request
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"Response
Per-(month × order group) received-amount pivot for a single payment-gateway instance.
{
"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
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.