Refunds Sum
In this example we show you how to return the total number of refunds
less than a minute
What you’ll learn
- How to return the total number of refunds for a given date range
The Query
query {
invoiceAmendmentSummary(
where: {
amendmentLineItemStatus: { eq: Refunded }
sellerAccountType: { eq: retailer }
}
) {
amendmentIdDistinctcount
}
}
The Response
{
"data": {
"invoiceAmendmentSummary": [
{
"amendmentIdDistinctcount": 104
}
]
}
}