start_date and end_date to get all available data for the date range:{
"start_date": "2025-07-01",
"end_date": "2025-07-30"
}group_by to aggregate data by specific dimensions:{
"start_date": "2025-07-01",
"end_date": "2025-07-30",
"group_by": ["product_id"]
}{
"start_date": "2025-07-01",
"end_date": "2025-07-30",
"metrics": ["revenue", "approvals", "attempts"],
"group_by": ["product_id"]
}{
"start_date": "2025-07-01",
"end_date": "2025-07-30",
"group_by": ["product_id"],
"filters": {
"product_id": 903,
"sales_type": "Initials"
}
}date, campaign_id, product_id, gateway_id, bin, affid, sub_affidsales_type, refund_type, billing_cycle, price_point, alert_typeproduct_name, product_group, campaign_name, campaign_typemcc, acquirer, gateway_alias, bank, card_brand, card_typeapprovals, attempts, revenue, cpacb_count, cb_amount, cb_count_by_cb_date, cb_amount_by_cb_daterefund_count, refund_amount, refund_count_by_refund_date, refund_amount_by_refund_datealert, alert_count, alert_by_alert_date, alert_count_by_alert_dateinitial_attempt, initial_approved, rebills_attempted, rebills_approvednet_approvals, approvals_organicproduct_id to analyze revenue per productcampaign_id to measure campaign effectivenessgateway_id to compare payment processor performancedate to see daily performance trendsalert_type (ETHOCA, CDRN, RDR) to analyze alert patternsstart_date and end_datex-client-id and x-client-secretcurl --location --request POST 'https://api.beastinsights.com/api/data' \
--header 'x-client-id;' \
--header 'x-client-secret;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"start_date": "2025-07-01",
"end_date": "2025-07-30"
}'{
"success": true,
"code": 200,
"message": "Order summary data retrieved successfully with grouping",
"data": [
{
"product_id": 903,
"revenue": 15248.75,
"approvals": 284,
"attempts": 356,
"refund_amount": 1247.5
},
{
"product_id": 904,
"revenue": 8932.5,
"approvals": 167,
"attempts": 203,
"refund_amount": 892.3
}
],
"pagination": {
"total": 25,
"limit": 100,
"offset": 0,
"has_more": false
},
"timestamp": "2025-08-05T10:30:00.000Z"
}