# Order By Order Number

**URL:** https://community.shiphero.com/t/order-by-order-number/3076
**Category:** GraphQL API
**Created:** [October 8, 2024, 10:10pm UTC](https://community.shiphero.com/t/order-by-order-number/3076 "2024-10-08T22:10:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jesse](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@jesse](https://community.shiphero.com/u/jesse)
#### Post date: [October 8, 2024, 10:10pm UTC](https://community.shiphero.com/t/order-by-order-number/3076/1 "2024-10-08T22:10:03Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![Luisperrone](https://avatars.discourse-cdn.com/v4/letter/l/ed655f/32.png) [@Luisperrone](https://community.shiphero.com/u/Luisperrone)
#### Post date: [October 11, 2024, 1:29pm UTC](https://community.shiphero.com/t/order-by-order-number/3076/2 "2024-10-11T13:29:24Z")

</div>

Hi @jesse

You can do the shipment query: [https://developer.shiphero.com/wp-content/uploads/spectaql/#definition-Shipment](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!
