# Shipment date and empty shipping labels

**URL:** <https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014>\
**Category:** GraphQL API\
**Created:** [December 16, 2020, 2:32pm UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014 "2020-12-16T14:32:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![heyjess](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@heyjess](https://community.shiphero.com/u/heyjess)\
**Post date:** [December 16, 2020, 2:32pm UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014/1 "2020-12-16T14:32:06Z")

</div>

Hi  
I have three questions related to shipments data.

First, I’d like to make sure that, created\_date is same as “shipment date”?

> ```
> query {
> shipments{
> complexity
> data( first: 10) {
> pageInfo {
> hasNextPage
> hasPreviousPage
> startCursor
> endCursor
> }
> edges {
> node {
> id
> legacy_id
> order_id
> warehouse_id
> created_date
> ....
> }
> cursor
> }
> }
> }
> }
> 
> ```

Second, date\_from is filtering created\_date. order\_date\_from is filtering order\_date. right?

Last, some shipments data has no line item and no shipping labels but it has shipments\_id, order\_id, order\_number. Are those data vaild?  
I saw some of them has multiple shipping labels under one shipment\_id…

---

<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:** [December 17, 2020, 3:21pm UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014/2 "2020-12-17T15:21:11Z")

</div>

Hi @heyjess!

> [@heyjess](#):
>
> First, I’d like to make sure that, created\_date is same as “shipment date”?

Yes, it should be the date from when the shipment was created, the same that you can see on the UI

![Screen Shot 2020-12-17 at 12.18.12](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/54bd5e20dc1291b17feaa412d134e92c56cbde93.png)

> [@heyjess](#):
>
> Second, date\_from is filtering created\_date. order\_date\_from is filtering order\_date. right?

That’s correct it should be filtering by dates (order or shipment, depending on the query)

> [@heyjess](#):
>
> Last, some shipments data has no line item and no shipping labels but it has shipments\_id, order\_id, order\_number. Are those data vaild?  
> I saw some of them has multiple shipping labels under one shipment\_id…

In that case, do you happen to have a request\_id for this kind of response? With that might be returning that way

Thanks in advance!  
Tom

---

<div class="post-metadata">

**Author:** ![heyjess](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@heyjess](https://community.shiphero.com/u/heyjess)\
**Post date:** [December 17, 2020, 6:58pm UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014/3 "2020-12-17T18:58:47Z")

</div>

Thanks for your reply 🙂

One more question is you said created\_date is when the shipment was created so it is shipment date. However, is there any way I can get when shipment is sent? For me, “Shipment date” makes more sense when **shipment was sent** , not when shipment was created

I have lots of them which don’t have any line item and shipping labels but it has shipments\_id, order\_id, order\_number.

here are request\_id:  
5fdba7abc4fee13efed2f303  
5fdba7cd070268ddb56b788f  
5fdba80404decac0999acec1

I couldn’t find shipment\_id has multiple shipping labels at the moment. When I find one, I’ll post agian 🙂

---

<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:** [December 18, 2020, 1:22pm UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014/4 "2020-12-18T13:22:56Z")

</div>

Hi @heyjess!

> [@heyjess](#):
>
> I have lots of them which don’t have any line item and shipping labels but it has shipments\_id, order\_id, order\_number.
> 
> here are request\_id:  
> 5fdba7abc4fee13efed2f303  
> 5fdba7cd070268ddb56b788f  
> 5fdba80404decac0999acec1
> 
> I couldn’t find shipment\_id has multiple shipping labels at the moment. When I find one, I’ll post agian

I see what you mean, thanks for those IDs!

In that case, it is because a return has been created for that order, which logs a shipment as well. The way you can spot this kind of shipments is by including:

```
query {
  shipments(order_id: "154712656") {
    complexity
    request_id
    data(after: "YXJyYXljb25uZWN0aW9uOjA=", first: 1, sort: "created_date") {
      pageInfo {
        hasNextPage
        hasPreviousPage
        startCursor
        endCursor
      }
      edges {
        node {
          id
          legacy_id
          order_id
          warehouse_id
          created_date
          order {
            rma_labels{
              shipment_id
            }
          }
          line_items(first: 10) {
            edges {
              node {
                id
                legacy_id
                line_item_id
                shipment_id
                shipping_label_id
                quantity
                line_item {
                  id
                  legacy_id
                  sku
                  quantity_shipped
                  product_name
                }
              }
            }
          }
          shipping_labels {
            id
            shipment_id
            order_id
            order_number
            status
            tracking_number
            carrier
            shipping_name
            shipping_method
            cost
            dimensions {
              weight
              height
              width
              length
            }
            profile
            warehouse
            source
          }
          order {
            id
            legacy_id
            order_number
            order_date
          }
        }
        cursor
      }
    }
  }
}

```

> [@heyjess](#):
>
> One more question is you said created\_date is when the shipment was created so it is shipment date. However, is there any way I can get when shipment is sent? For me, “Shipment date” makes more sense when **shipment was sent** , not when shipment was created

In this case, they should be the same (let me know if I got that wrong), this is:

**shipment created = created\_date = date the order was shipped**

They should match, but let me know if this is not what you are referring to

Thanks again!  
Tom

---

<div class="post-metadata">

**Author:** ![heyjess](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@heyjess](https://community.shiphero.com/u/heyjess)\
**Post date:** [December 30, 2020, 1:11am UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014/5 "2020-12-30T01:11:31Z")

</div>

Thank you for the clear answer 🙂 @tomasw  
I’ve found that one shipment id has multiple shipping labels

“request\_id”: “5febd321a928c69f2597b912”

---

<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:** [December 30, 2020, 1:49pm UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014/6 "2020-12-30T13:49:45Z")

</div>

Hi @heyjess  
That is correct! it is because it was shipped in two boxes actually, and each one of them has a different tracking number.

This is how it displays on the UI:

![Screen Shot 2020-12-30 at 10.45.12](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/e22c4ca8145f848bcd786e1bbe42f6b0bf3400ee.png)

If you hover over those Shipments (on the UI) you should see what is in what package (the same information that you get from the Query).

So it is the same shipment ID but two labels, one for each Box

Let me know if that sounded confusing and I could explain better  
Thanks again!  
Tom

---

<div class="post-metadata">

**Author:** ![heyjess](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@heyjess](https://community.shiphero.com/u/heyjess)\
**Post date:** [January 4, 2021, 7:12pm UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014/7 "2021-01-04T19:12:20Z")

</div>

Hi @tomasw Happy New Year 🙂

You’ve clarified that the records which don’t have any line items and shipping labels indicates that a return has been created for that order, which logs a shipment as well.

“request\_id”: “5ff36079094a8e537899ddd5”

This is one of this kind of record. You can see two shipments records and one of them is empty line items and shipping labels.

But, I’ve noticed that there is name `refunded` and `needs_refund` in Shipments data and also Order `rma_labels`. And these are set to **False**.

As you explained, those kind of records indicates a return, doesn’t it make sense that either `refunded` and `needs_refund` should be set **True**?

Thank you

Jessie

---

<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:** [January 5, 2021, 3:51pm UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014/8 "2021-01-05T15:51:49Z")

</div>

Hi @heyjess! Happy New Year to you as well! 🙂

For those fields:  
`refunded` and `needs_refund`

They are currently not being used at all as far as I could check, so they will always return _ **False** _ for this purpose

Please let me know if that still doesn’t help!  
Thanks again and I apologize for the delayed response

Tom

---

<div class="post-metadata">

**Author:** ![heyjess](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@heyjess](https://community.shiphero.com/u/heyjess)\
**Post date:** [January 5, 2021, 8:44pm UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014/9 "2021-01-05T20:44:10Z")

</div>

Thanks for the reply!

I’m wondering that is there any direct contact email which I can reach and confirm with ShipHero data quality?

---

<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:** [January 5, 2021, 9:28pm UTC](https://community.shiphero.com/t/shipment-date-and-empty-shipping-labels/1014/10 "2021-01-05T21:28:36Z")

</div>

Absolutely @heyjess!  
You can reach us at [support@shiphero.com](mailto:support@shiphero.com) and we can assist you with anything you need.  
Thanks again!  
Tom
