# Shipping Label Cost Returning Null

**URL:** <https://community.shiphero.com/t/shipping-label-cost-returning-null/2509>\
**Category:** GraphQL API\
**Created:** [June 20, 2023, 1:38am UTC](https://community.shiphero.com/t/shipping-label-cost-returning-null/2509 "2023-06-20T01:38:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![barrettshepherd](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@barrettshepherd](https://community.shiphero.com/u/barrettshepherd)\
**Post date:** [June 20, 2023, 1:38am UTC](https://community.shiphero.com/t/shipping-label-cost-returning-null/2509/1 "2023-06-20T01:38:53Z")

</div>

Hi,

We’re dealing with a really concerning bug where the API has begun random shipments that label cost as null. It appears to be mostly international shipments but isn’t isolated to just those. For some shipments we have API data from Feb where we have the proper label cost but when we query now, it returns null.

This is a big issue as we use this data for billing and rely on its accuracy so we’re hoping this can be resolved quickly.

Example affected shipment ID’s:  
U2hpcG1lbnQ6MzE4ODQ4MjI1  
U2hpcG1lbnQ6MzM0NDg4MjUw  
U2hpcG1lbnQ6MzE4ODQ4MjI1

Here’s data from the API from the first example. One label has a cost of $90.07 and the other $0 as it’s a multi-box shipment. The dashboard as well as the shipments report show the correct amounts which is concerning that the API is returning null.  
“shipping\_labels”: [  
{  
“id”: “U2hpcHBpbmdMYWJlbDoyMjE1MDcwOTU=”,  
“legacy\_id”: 221507095,  
“account\_id”: “_**",  
“tracking\_number”: "**__",  
“carrier”: “ups”,  
“shipping\_name”: “Free shipping”,  
“shipping\_method”: “08”,  
“cost”: null,  
“profile”: “default”,  
“packing\_slip”: “”,  
“warehouse”: “Primary”,  
“insurance\_amount”: “0.00”,  
“carrier\_account\_id”: “151306”,  
“source”: “shipping web”,  
“created\_date”: “2023-01-09T19:38:40”  
},  
{  
“id”: “U2hpcHBpbmdMYWJlbDoyMjE1MDcwOTc=”,  
“legacy\_id”: 221507097,  
“account\_id”: "_\*\*\*\*”,  
“tracking\_number”: “\*\*\*\*”,  
“carrier”: “ups”,  
“shipping\_name”: “Free shipping”,  
“shipping\_method”: “08”,  
“cost”: null,  
“profile”: “default”,  
“packing\_slip”: “”,  
“warehouse”: “Primary”,  
“insurance\_amount”: “0.00”,  
“carrier\_account\_id”: “151306”,  
“source”: “shipping web”,  
“created\_date”: “2023-01-09T19:38:40”  
}  
]

Out of ~300 shipments we’ve already identified as affected, a lot of the shipment ID’s return “Shipment not found” errors now via the API which is concerning as the data came from ShipHero and we’ve manually verified it.

Here’s more from our list:

U2hpcG1lbnQ6MzE4ODQ4MjI1  
U2hpcG1lbnQ6MzE3NzkwMzUy  
U2hpcG1lbnQ6MzE5MTAxOTgz  
U2hpcG1lbnQ6MzM0NDg4MjUw  
U2hpcG1lbnQ6MzQ2OTA2Mjc2  
U2hpcG1lbnQ6MzM4MTQ5MDc4  
U2hpcG1lbnQ6MzQwNDEzNTMx  
U2hpcG1lbnQ6MzQ2OTc5NTk4  
U2hpcG1lbnQ6MzQ0MzU0NTc5  
U2hpcG1lbnQ6MzQ3MDgxODg0  
U2hpcG1lbnQ6MzUwNTgzMDI1  
U2hpcG1lbnQ6MzUwNzgwMTU2  
U2hpcG1lbnQ6MzUxMzE1MDcx  
U2hpcG1lbnQ6MzU0NjU0NjU2  
U2hpcG1lbnQ6MzU0NjU0NjU2  
U2hpcG1lbnQ6MzUyMDk0MzU5  
U2hpcG1lbnQ6MzU1NDgwMzEz  
U2hpcG1lbnQ6MzU1OTUyMTc4  
U2hpcG1lbnQ6MzU1NDgyMTM5  
U2hpcG1lbnQ6MzU1OTUyMTU3  
U2hpcG1lbnQ6MzU1OTUyMTUx  
U2hpcG1lbnQ6MzU1OTUyMjEy  
U2hpcG1lbnQ6MzU1OTUyMTU2  
U2hpcG1lbnQ6MzU1OTUyMjE0

Please help us figure out why it’s returning cost: null for hundreds of shipments and why shipment ID’s would randomly not work.

---

<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:** [June 20, 2023, 11:42am UTC](https://community.shiphero.com/t/shipping-label-cost-returning-null/2509/2 "2023-06-20T11:42:45Z")

</div>

Hey @barrettshepherd ,

Thanks for reaching out!  
I’ll take a look into those examples and get back to you shortly.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![barrettshepherd](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@barrettshepherd](https://community.shiphero.com/u/barrettshepherd)\
**Post date:** [June 20, 2023, 11:06pm UTC](https://community.shiphero.com/t/shipping-label-cost-returning-null/2509/3 "2023-06-20T23:06:59Z")

</div>

Please keep us posted. Every day more and more shipments have a ‘null’ label cost. I’m surprised this isn’t affecting more API users. I really appreciate your help on this!

---

<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:** [June 21, 2023, 11:48am UTC](https://community.shiphero.com/t/shipping-label-cost-returning-null/2509/5 "2023-06-21T11:48:36Z")

</div>

Hey @barrettshepherd,

Thanks for hanging in there!

I wasn’t able to reproduce this issue on my end . The order examples I queried through the Public API did return the label cost corresponding with the label cost seen in the UI and database.

The examples I looked through were all from the same child account, is the issue only happening to this account?

Please let me know if you have any questions or concerns.

Best,  
RayanP
