# Bug in Shipments query

**URL:** <https://community.shiphero.com/t/bug-in-shipments-query/2378>\
**Category:** GraphQL API\
**Created:** [February 28, 2023, 1:32pm UTC](https://community.shiphero.com/t/bug-in-shipments-query/2378 "2023-02-28T13:32:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbarrett](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@bbarrett](https://community.shiphero.com/u/bbarrett)\
**Post date:** [February 28, 2023, 1:32pm UTC](https://community.shiphero.com/t/bug-in-shipments-query/2378/1 "2023-02-28T13:32:01Z")

</div>

Why is this shipment query not returning the labels? The labels exist and can be seen in the Shiphero UI. But the API is returning empty arrays for the LineItems and Labels. This looks like a bug.

Here is the query:  
{ shipment(id: “U2hpcG1lbnQ6MzI3NzMyNzg2”) {complexity request\_id data {created\_date order{order\_number order\_date account\_id} shipping\_labels{cost status shipping\_method} line\_items(first: 5 ) {pageInfo {hasNextPage hasPreviousPage startCursor endCursor} edges {node {quantity line\_item{product\_name fulfillment\_status sku}}}}}}}

Here is the result:  
{  
“data”: {  
“shipment”: {  
“complexity”: 7,  
“request\_id”: “63fe004facee262b6f7e453e”,  
“data”: {  
“created\_date”: “2023-02-19T04:34:46”,  
“order”: {  
“order\_number”: “BJ71601”,  
“order\_date”: “2023-02-15T11:42:21”,  
“account\_id”: “QWNjb3VudDo2MTQyOQ==”  
},  
“shipping\_labels”: ,  
“line\_items”: {  
“pageInfo”: {  
“hasNextPage”: false,  
“hasPreviousPage”: false,  
“startCursor”: null,  
“endCursor”: null  
},  
“edges”:   
}  
}  
}  
},  
“extensions”: {  
“throttling”: {  
“estimated\_complexity”: 7,  
“cost”: 2,  
“cost\_detail”: {  
“shipment”: {  
“items\_count”: 1,  
“cost”: 1,  
“total\_cost”: 2,  
“fields”: {}  
}  
},  
“user\_quota”: {  
“credits\_remaining”: 1984,  
“max\_available”: 2002,  
“increment\_rate”: 30  
}  
}  
}  
}

Here is shipment in the UI:

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

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [February 28, 2023, 1:49pm UTC](https://community.shiphero.com/t/bug-in-shipments-query/2378/2 "2023-02-28T13:49:23Z")

</div>

Hey @bbarrett,

Thanks for reaching out!  
I’ll look into this issue and get back to you with an update as soon as I can.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![bbarrett](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@bbarrett](https://community.shiphero.com/u/bbarrett)\
**Post date:** [February 28, 2023, 2:07pm UTC](https://community.shiphero.com/t/bug-in-shipments-query/2378/3 "2023-02-28T14:07:45Z")

</div>

Thanks. I have passed a few issues to your team recently that all look like bugs. Also a few others from older posts

Thus far, I do not see any resolutions.

I wanted express my extreme disappointment at not getting any resolution through this community based support system.

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [March 1, 2023, 2:12pm UTC](https://community.shiphero.com/t/bug-in-shipments-query/2378/4 "2023-03-01T14:12:51Z")

</div>

Hey @bbarrett,

Thanks for hanging in there!

The shipment id for that shipment you’re looking at in the UI is 326991783. The shipment id you’re querying is 327732786, which is related to that order’s return I believe.

I’m looking into what is the expected behavior here, I’ll update you here when I have more information.

Please let me if you have any questions or concerns.

Best,  
RayanP
