Shipments by Seller
In this example we show you how to return the total number of shipments by Seller
less than a minute
What you’ll learn
- How to return the total number of shipments by Seller
The Query
query {
shipmentSummary(
groupBy: [
{ column: sellerId }
{ column: sellerBusinessName }
]
sortBy: { direction: DESC, column: over24hrDispatchDistinctcount }
where: {
shipmentDispatchedAt: { gt: "2023-02-10" }
sellerAccountType: { eq: retailer }
sellerId: { in: [84, 8, 78] }
}
) {
sellerId
sellerBusinessName
over24hrDispatchDistinctcount
}
}
The Response
{
"data": {
"shipmentSummary": [
{
"sellerId": 78,
"sellerBusinessName": "Cellphones 4U",
"over24hrDispatchDistinctcount": 1
}
]
}
}