How to get Total Items Shipped & Distinct Items Shipped?

Hey there, using the shipments query I have successfully been able to get the number of shipments that goes within a specific time frame. Though do I need to use a different query for Total Items Shipped & Distinct Items Shipped within a certain time frame? I know sometimes it can be different than the Shipments #.

Hey @Metrelli !

Thanks for reaching out. I don’t believe there is a way to query “Total Items Shipped” or “Distinct Items”, however I’ll look into this and try to find out what we can do here.

Best,

Hey @Metrelli,

There is no way to query that specific information through the API at this time. The Shipments Query you’ve been using is the closest thing to that.

Thanks for your patience in this matter!

Best,

Hey @Rayanp,

Would it be possible at all with the Packs per Day query?

Hey @Metrelli,

You could try using the packs_per_day query, as it will show the unique line items per order and the total; however, you would still need to keep track of those numbers and add them manually.

Example Query:

{
  packs_per_day(date_from: "2022-06-15", date_to: "2022-06-22") {
    request_id
    complexity
    data(first: 10) {
      edges {
        node {
          legacy_id
          id
          order_id
          unique_items
          total_items
          created_at
        }
      }
    }
  }
}

Please let me know if you have any questions or concerns!
Best,