# Missing field order\_id on Line Items order

**URL:** <https://community.shiphero.com/t/missing-field-order-id-on-line-items-order/1099>\
**Category:** GraphQL API\
**Created:** [February 5, 2021, 10:53am UTC](https://community.shiphero.com/t/missing-field-order-id-on-line-items-order/1099 "2021-02-05T10:53:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduardo](https://avatars.discourse-cdn.com/v4/letter/e/6a8cbe/32.png) [@Eduardo](https://community.shiphero.com/u/Eduardo)\
**Post date:** [February 5, 2021, 10:53am UTC](https://community.shiphero.com/t/missing-field-order-id-on-line-items-order/1099/1 "2021-02-05T10:53:41Z")

</div>

Hi community! I noticed the field order\_id is to null value when i do a query to line items edge of a single order. It’s a minor problem because i already have the order\_id to do the query but a correct value on this field will simplify the ETL process for a large amount of data.

Request id: 601d21e5597feba1bacaf89a

---

<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:** [February 7, 2021, 1:44pm UTC](https://community.shiphero.com/t/missing-field-order-id-on-line-items-order/1099/2 "2021-02-07T13:44:42Z")

</div>

Hi @Eduardo !  
Thanks for catching that!  
I will make a ticket for our engineers to fix that value.

In the meantime you can use the id and legacy\_id on the body, that should always match for all those line items  
Like this:

```
query {
  order(id: “your ID”) {
    request_id
    complexity
    data {
      id
      legacy_id
      line_items {
        pageInfo {
          hasNextPage
        }
        edges {
          node {
            sku
            quantity
            fulfillment_status
          }
          cursor
        }
      }
    }
  }
}

```

Thanks again!  
Tom
