Shipments Sum
In this example we show you how to return the total number of shipments
less than a minute
What you’ll learn
- How to return the total number of shipments for a given date range
The Query
query {
shipmentSummary(
where: {
shipmentDispatchedAt: { gt: "2020-10-10", lt: "2022-10-10" }
sellerAccountType: { eq: retailer }
}
) {
shipmentIdDistinctcount
}
}
The Response
{
"data": {
"shipmentSummary": [
{
"shipmentIdDistinctcount": 47241
}
]
}
}