Invoice Commission Sum
In this example we show you how return the total commission value paid on a given date
less than a minute
What you’ll learn
- How to return the total commission paid on a given date
The Query
query {
invoiceSummary(
where: {
invoicePaidAt: { gt: "2020-10-10" }
sellerAccountType: { eq: retailer }
}
) {
invoiceCommissionSum
}
}
The Response
{
"data": {
"invoiceSummary": [
{
"invoiceCommissionSum": 1478115.1400000001
}
]
}
}