# Shipments Response Is Empty But Shipments Exist In Web UI

**URL:** <https://community.shiphero.com/t/shipments-response-is-empty-but-shipments-exist-in-web-ui/621>\
**Category:** GraphQL API\
**Created:** [July 24, 2020, 3:19pm UTC](https://community.shiphero.com/t/shipments-response-is-empty-but-shipments-exist-in-web-ui/621 "2020-07-24T15:19:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brett](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/brett/32/140_2.png) [@brett](https://community.shiphero.com/u/brett)\
**Post date:** [July 24, 2020, 3:19pm UTC](https://community.shiphero.com/t/shipments-response-is-empty-but-shipments-exist-in-web-ui/621/1 "2020-07-24T15:19:54Z")

</div>

I’m working on an integration and am testing out the Shipments query with Altair before implementing in code. I’ve limited the scope of the query to just the surrounding days. I can see in the Web UI that a shipment was created on July 9 at 4pm; however, when querying for all shipments from July 8 to July 10, I get an empty response and no error messages.

Here is the web UI history of the order noting that an App User shipped the item from within ShipHero.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/8dcd7d6f06f215996eace27e95334f54d0920042.png)

I’ve run the following query to try and retrieve this shipment data:

```
query($recordLimit:Int=5 $itemLimit:Int=10 $cursor:String="" $dateFrom:ISODateTime="2020-07-08" $dateTo:ISODateTime="2020-07-10" $sort:String="created_date") {
  shipments(date_from:$dateFrom date_to:$dateTo) {
    ...shipmentFields
  }
}

fragment shipmentFields on ShipmentsQueryResult {
  request_id
  complexity
  data(after:$cursor first:$recordLimit sort:$sort) {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      node {
        id
        legacy_id
        order_id
        user_id
        warehouse_id
        pending_shipment_id
        address {
          name
          address1
          address2
          city
          state
          country
          zip
          phone
        }
        picked_up
        created_date
        line_items(first:$itemLimit) {
          pageInfo {
            hasNextPage
            hasPreviousPage
            startCursor
            endCursor
          }
          edges {
            node {
              id
              line_item_id
              quantity
              line_item {
                barcode
                sku
              }
            }
            cursor
          }
        }
        shipping_labels {
          status
          tracking_number
          carrier
          shipping_name
          shipping_method
          cost
          address {
            name
            address1
            address2
            city
            state
            country
            zip
            phone
          }
          shipment_line_items(first:$itemLimit) {
            pageInfo {
              hasNextPage
              hasPreviousPage
              startCursor
              endCursor
            }
            edges {
              node {
                id
                line_item_id
                quantity
                line_item {
                  sku
                  shipped_line_item_lots {
                    lot_id
                    lot_name
                    lot_expiration_date
                  }
                }
              }
              cursor
            }
          }
        }
        order {
          id
          order_number
          partner_order_id
          shop_name
          fulfillment_status
          order_date
          email
          packing_note
        }
      }
      cursor
    }
  }
}

```

The response I get is:

```
{
  "data": {
    "shipments": {
      "request_id": "5f1af91b37302d2805771bee",
      "complexity": 101,
      "data": {
        "pageInfo": {
          "hasNextPage": false,
          "hasPreviousPage": false,
          "startCursor": null,
          "endCursor": null
        },
        "edges": []
      }
    }
  }
}

```

Why can I not retrieve shipment information for this shipment that clearly exists?

---

<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:** [July 24, 2020, 7:26pm UTC](https://community.shiphero.com/t/shipments-response-is-empty-but-shipments-exist-in-web-ui/621/2 "2020-07-24T19:26:23Z")

</div>

Hi @brett  
Is there any chance you might be seeing another account?  
I’m trying to get an order from 7/9/2020 on the account where your credentials are but getting the following:

![Screen Shot 2020-07-24 at 16.24.56](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/47c3a4d41f2a0b2f53ab9ea61feeab24ecc94ad3.png)

Thanks in advance!  
Tom

---

<div class="post-metadata">

**Author:** ![brett](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/brett/32/140_2.png) [@brett](https://community.shiphero.com/u/brett)\
**Post date:** [July 24, 2020, 7:32pm UTC](https://community.shiphero.com/t/shipments-response-is-empty-but-shipments-exist-in-web-ui/621/3 "2020-07-24T19:32:39Z")

</div>

@tomasw D’oh! Thanks for that. I was in fact looking at the wrong account.
