# Get order by legacy id

**URL:** <https://community.shiphero.com/t/get-order-by-legacy-id/374>\
**Category:** GraphQL API\
**Created:** [March 4, 2020, 5:35am UTC](https://community.shiphero.com/t/get-order-by-legacy-id/374 "2020-03-04T05:35:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [April 17, 2020, 12:54pm UTC](https://community.shiphero.com/t/get-order-by-legacy-id/374/6 "2020-04-17T12:54:29Z")

</div>

Hi @jrtwynam

You could use the orders query, filter by order number and get the first result, this is for example:

```
query {
  orders(order_number: "MO801") {
    request_id
    complexity
    data(first: 1) {
      edges {
        node {
          id
          legacy_id
          order_number
          shop_name
          fulfillment_status
          order_date
          email
          profile
        }
      }
    }
  }
}

```

And as for the Error, it looks like the same we are discussing on [Issue updating products](https://community.shiphero.com/t/issue-updating-products/227/9)  
But the `UUID` will only work to make the request using the `legacy_id`, which is the id of the order on ShipHero and it won’t work with the order number.  
Let me know if that doesn’t work for you,  
Thanks!

---

_[View the full topic](https://community.shiphero.com/t/get-order-by-legacy-id/374)._
