Order By Order Number

Hi,

I am currently able to retrieve order by order number when I need to check if if order has been shipped and get details about the shipments. That has worked, however now I want to start collecting details about packages.

Is there a way to retrieve package details (just like they appear on the shipment update webhooks events) with this query or what other query do I need to perform for it?

This is my current query:

            query {
                orders(order_number: "ORDER NUMBER") {
                    data {
                        edges {
                            node {
                                id
                                order_number
                                fulfillment_status
                                shipments {
                                    id
                                    shipping_labels {
                                        status
                                        tracking_number
                                        tracking_url
                                        carrier
                                        shipping_method
                                    }
                                }
                                line_items(first: 1) {
                                    edges {
                                        node {
                                            sku
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }

Thanks!

Hi @jesse

You can do the shipment query: https://developer.shiphero.com/wp-content/uploads/spectaql/#definition-Shipment
There is the feld total_packages there and a connection with shipping_labels.

Have a nice day!