{
"status": "success",
"message": "Commission analytics retrieved successfully",
"data": {
"summary": {
"totalAmount": 15000000,
"totalTransactions": 120,
"paidAmount": 12000000,
"paidTransactions": 95,
"pendingAmount": 3000000,
"pendingTransactions": 25,
"paymentRate": 80.00
},
"byRole": [
{
"recipientRole": "VENDOR",
"totalAmount": 10000000,
"transactionCount": 80
},
{
"recipientRole": "DELIVERY_COURIER",
"totalAmount": 3000000,
"transactionCount": 25
},
{
"recipientRole": "PICKUP_COURIER",
"totalAmount": 2000000,
"transactionCount": 15
}
],
"byStatus": [
{
"status": "PAID",
"amount": 12000000,
"count": 95,
"percentage": 79.17
},
{
"status": "PENDING",
"amount": 3000000,
"count": 25,
"percentage": 20.83
}
],
"metadata": {
"period": {
"startDate": "2025-01-01T00:00:00.000+08:00",
"endDate": "2025-01-31T23:59:59.999+08:00"
},
"recipientRole": "all",
"status": "all",
"timezone": "Asia/Makassar",
"generatedAt": "2025-02-01T10:30:00.000Z"
}
}
}