# Line Item $ in API

**URL:** <https://community.shiphero.com/t/line-item-in-api/1566>\
**Category:** GraphQL API\
**Created:** [September 17, 2021, 6:28pm UTC](https://community.shiphero.com/t/line-item-in-api/1566 "2021-09-17T18:28:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![campbell.yamane](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@campbell.yamane](https://community.shiphero.com/u/campbell.yamane)\
**Post date:** [September 17, 2021, 6:28pm UTC](https://community.shiphero.com/t/line-item-in-api/1566/1 "2021-09-17T18:28:02Z")

</div>

Is there a reference to selling unit cost and selling unit price $ on shipping, order, and/or return lines in the API? All I see are order $ totals and quantities on the others.

---

<div class="post-metadata">

**Author:** ![Theresa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/theresa/32/377_2.png) [@Theresa](https://community.shiphero.com/u/Theresa)\
**Post date:** [September 24, 2021, 4:01pm UTC](https://community.shiphero.com/t/line-item-in-api/1566/2 "2021-09-24T16:01:38Z")

</div>

Hi @campbell.yamane ! Welcome!

You can access the price through the line item on an order. Is this what you are looking for?

```auto
query {
  orders(order_number: "105349") {
    data {
      edges {
        node {
          line_items {
            edges {
              node {
                price
              }
            }
          }
        }
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![campbell.yamane](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@campbell.yamane](https://community.shiphero.com/u/campbell.yamane)\
**Post date:** [September 24, 2021, 5:58pm UTC](https://community.shiphero.com/t/line-item-in-api/1566/3 "2021-09-24T17:58:57Z")

</div>

Hi Theresa,

Yes, this is perfect. Is there a cost field as well?

Best,

Campbell

---

<div class="post-metadata">

**Author:** ![Theresa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/theresa/32/377_2.png) [@Theresa](https://community.shiphero.com/u/Theresa)\
**Post date:** [September 28, 2021, 5:05pm UTC](https://community.shiphero.com/t/line-item-in-api/1566/4 "2021-09-28T17:05:03Z")

</div>

You will need to make sure you limit the results, but you can get the price and value through the warehouse\_products query:

```auto
query {
  warehouse_products(warehouse_id: "<warehouse id here>", sku: "<sku here>") {
    request_id
    complexity
    data(first: 1) {
      pageInfo {
        hasNextPage
        hasPreviousPage
        startCursor
        endCursor
      }
      edges {
        node {
          id
          legacy_id
          account_id
          sku
          warehouse_identifier
          price
          value
          value_currency
          on_hand
          inventory_bin
          inventory_overstock_bin
          reserve_inventory
          replenishment_level
          reorder_amount
          reorder_level
          backorder
          allocated
          available
          non_sellable_quantity
          custom
          customs_value
          created_at
          updated_at
          sell_ahead
          active
        }
        cursor
      }
    }
  }
}

```

value is equal to cost\*
