# API Keys related question

**URL:** <https://community.shiphero.com/t/api-keys-related-question/1105>\
**Category:** Getting Started\
**Created:** [February 8, 2021, 11:35am UTC](https://community.shiphero.com/t/api-keys-related-question/1105 "2021-02-08T11:35:51Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [February 25, 2021, 11:13am UTC](https://community.shiphero.com/t/api-keys-related-question/1105/21 "2021-02-25T11:13:20Z")

</div>

No problem at all @bhavesh !

> [@bhavesh](#):
>
> How to get tracking number from order because i send a email in put this tracking number.

For that you will need to use the shipments → shipping labels connection, something like this:

```
query {
  order(id: "176120966") {
    request_id
    complexity
    data {
      id
      shipments {
        shipping_labels {
          tracking_number
        }
      }
    }
  }
}

```

> [@bhavesh](#):
>
> Order date i will put but he automatically add yesterday date.

This date is in UTC, so maybe that is the difference?

Thanks again!  
Tom

---

<div class="post-metadata">

**Author:** ![bhavesh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/bhavesh/32/288_2.png) [@bhavesh](https://community.shiphero.com/u/bhavesh)\
**Post date:** [March 1, 2021, 5:11pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/22 "2021-03-01T17:11:30Z")

</div>

Hello @tomasw  
I can’t get it tracking number in ship hero please check my screenshot

 ![tracking number](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/06cb5062476d97a1c2d0667f7579c06286fe0d46.png)  
I have question so we are create a tracking number either automatic make a ship hero.  
i can’t understand please Suggestion to me

---

<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:** [March 3, 2021, 2:21am UTC](https://community.shiphero.com/t/api-keys-related-question/1105/23 "2021-03-03T02:21:04Z")

</div>

Hi @bhavesh!  
It looks like that Order has no shipments yet (“shipments”:[])  
The way tracking numbers get registered is when creating a Shipment, and in this case, this order doesn’t have one yet

Try with this order:

```
query {
  order(id: "T3JkZXI6MTc3NDE0MjI2") {
    request_id
    complexity
    data {
      id
      shipments {
        shipping_labels {
          tracking_number
        }
      }
    }
  }
}

```

You should be able to see one in that order that was already shipped

Thanks again!  
Tom

---

<div class="post-metadata">

**Author:** ![bhavesh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/bhavesh/32/288_2.png) [@bhavesh](https://community.shiphero.com/u/bhavesh)\
**Post date:** [March 3, 2021, 10:07pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/24 "2021-03-03T22:07:17Z")

</div>

hello @tomasw  
I have a question, does Shiphero takes shipment tracking number automatically or i need to add tracking number manually?

Thanks again!  
Bhavesh

---

<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:** [March 5, 2021, 2:13am UTC](https://community.shiphero.com/t/api-keys-related-question/1105/25 "2021-03-05T02:13:10Z")

</div>

Hi @bhavesh!  
If you create the shipment using the Public API you will need to add it, but if the shipment is created using the ShipHero app it should be created when generating the label.  
Let me know if that doesn’t help  
Thanks again!  
Tom

---

<div class="post-metadata">

**Author:** ![myousry](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@myousry](https://community.shiphero.com/u/myousry)\
**Post date:** [March 6, 2021, 1:21am UTC](https://community.shiphero.com/t/api-keys-related-question/1105/26 "2021-03-06T01:21:38Z")

</div>

I tried to consume graphQL like the example provided in the [documentation](https://developer.shiphero.com/graphql-primer/#consumingapi) using java script but i got cros origin error

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

---

<div class="post-metadata">

**Author:** ![bhavesh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/bhavesh/32/288_2.png) [@bhavesh](https://community.shiphero.com/u/bhavesh)\
**Post date:** [March 9, 2021, 10:20pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/27 "2021-03-09T22:20:17Z")

</div>

Hello @tomasw  
I hope doing great @tomasw, please help me what is my issues in this code.

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

mutation { shipment\_create( data: { order\_id: “T3JkZXI6MTc5MjM5MTk0” warehouse\_id: “V2FyZWhvdXNlOjYyMTc0” address: { name: “shailaja chauhan” address1: “Noble trade center” address2: “Apt.12” city: “42691” state: “Arizona” zip: “369541” country: “United States” phone: “” } line\_items:{ line\_item\_id: “TGluZUl0ZW06NDkzNDI3Njk3”, quantity: 1 }, labels: { address: { name: “shailaja chauhan” address1: “Noble trade center” address2: “Apt.12” city: “42691” state: “Arizona” zip: “369541” country: “United States” phone: “” } carrier: “UPS” shipping\_name: “UPS - Ground” shipping\_method: “Ground” cost: “0.00” dimensions: { weight: “12”, height: “12”, width: “12”, length: “12” } label: { paper\_pdf\_location: “[exampleurl.com](http://exampleurl.com)” thermal\_pdf\_location: “[exampleurl.com](http://exampleurl.com)” pdf\_location: “[exampleurl.com](http://exampleurl.com)” } line\_item\_ids: “TGluZUl0ZW06NDkzNDI3Njk3” tracking\_number: “456274317” } notify\_customer\_via\_shiphero: true notify\_customer\_via\_store: true shipped\_off\_shiphero:true profile: “default” } ) { request\_id complexity shipment { id legacy\_id order\_id user\_id warehouse\_id pending\_shipment\_id address { name address1 address2 city state country zip phone } picked\_up needs\_refund refunded delivered shipped\_off\_shiphero dropshipment created\_date line\_items(first: 2) { edges { node { id line\_item\_id quantity } } } } } }

give me this response

{  
“errors”: [  
{  
“message”: “Missing weight in shipping label”,  
“operation”: “shipment\_create”,  
“field”: “shipment\_create”,  
“request\_id”: “6047f302cbf8e5e960cbb8fc”,  
“code”: 3  
}  
],  
“data”: {  
“shipment\_create”: null  
}  
}

i can’t find this error from shipment\_create

---

<div class="post-metadata">

**Author:** ![bhavesh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/bhavesh/32/288_2.png) [@bhavesh](https://community.shiphero.com/u/bhavesh)\
**Post date:** [March 17, 2021, 5:14am UTC](https://community.shiphero.com/t/api-keys-related-question/1105/28 "2021-03-17T05:14:53Z")

</div>

hello @tomasw

**Missing weight in shipping label**

i can’t find this error from shipment\_create on previous question plz give me solution

---

<div class="post-metadata">

**Author:** ![BrownMFG](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@BrownMFG](https://community.shiphero.com/u/BrownMFG)\
**Post date:** [March 17, 2021, 4:39pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/29 "2021-03-17T16:39:02Z")

</div>

@tomasw I’m having the same error. I would also appreciate an answer to this question.

---

<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:** [March 17, 2021, 4:53pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/30 "2021-03-17T16:53:20Z")

</div>

Hi @bhavesh @BrownMFG !  
I apologize for the delayed response about this.  
We are currently looking at the issue and what it might be. We will provide an update about this asap!  
Thanks for the patience while we investigate this,

---

<div class="post-metadata">

**Author:** ![bhavesh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/bhavesh/32/288_2.png) [@bhavesh](https://community.shiphero.com/u/bhavesh)\
**Post date:** [March 18, 2021, 1:33pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/31 "2021-03-18T13:33:13Z")

</div>

hello @tomasw

**Missing to\_name in shipping label**

every product this error display when i create shipment\_create

I can’t find this error from shipment\_create on previous question plz give me solution

if have on my mistakes plz tell me.

Thanks again!  
Bhavesh

---

<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:** [March 18, 2021, 10:33pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/32 "2021-03-18T22:33:12Z")

</div>

Hi @bhavesh @BrownMFG !  
The error for the weight should be resolved now 👍  
Thanks for the patience while we worked on that!

As for the to\_name @bhavesh, any chance you could send us the reques\_id you are getting with that error?

Thanks again!  
Tom

---

<div class="post-metadata">

**Author:** ![bhavesh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/bhavesh/32/288_2.png) [@bhavesh](https://community.shiphero.com/u/bhavesh)\
**Post date:** [March 19, 2021, 12:21am UTC](https://community.shiphero.com/t/api-keys-related-question/1105/33 "2021-03-19T00:21:26Z")

</div>

Hello , @tomasw

i will send you my request id from error

{  
“errors”: [  
{  
“message”: “Missing to\_name in shipping label”,  
“operation”: “shipment\_create”,  
“field”: “shipment\_create”,  
“request\_id”: “60536650ffbcbe718db4ea42”,  
“code”: 3  
}  
],  
“data”: {  
“shipment\_create”: null  
}  
}

 ![shipment_create_error](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/1X/c142e911d0d894f1e669dfeda672a4a30773e3d9.png)  
Eevery product send same error when i create shipment.

Thanks again!  
Bhavesh

---

<div class="post-metadata">

**Author:** ![BrownMFG](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@BrownMFG](https://community.shiphero.com/u/BrownMFG)\
**Post date:** [March 19, 2021, 12:17pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/34 "2021-03-19T12:17:44Z")

</div>

@tomasw Thanks for your previous help. Strangely, I’m also getting the same missing to\_name error now that the weight error is gone. request id for me was 6054951f804a8c9610c3be8d

---

<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:** [March 20, 2021, 3:32pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/35 "2021-03-20T15:32:53Z")

</div>

Hi @bhavesh @BrownMFG !  
I apologize once again for the inconvenience. We are currently looking into this and will try to implement a fix for this asap.  
Thanks again for the patience!  
Tom

---

<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:** [March 20, 2021, 5:26pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/37 "2021-03-20T17:26:21Z")

</div>

@bhavesh @BrownMFG  
You should be able to generate the shipment now.  
Thanks again for the patience while we fixed this!  
Tom

---

<div class="post-metadata">

**Author:** ![bhavesh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/bhavesh/32/288_2.png) [@bhavesh](https://community.shiphero.com/u/bhavesh)\
**Post date:** [March 26, 2021, 10:25pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/38 "2021-03-26T22:25:48Z")

</div>

hello @tomasw  
can you please give proper Suggestion.

“message”:“Cannot access the requested resource. Permission denied”,“operation”:“inventory\_add”

what i am doing in shiphero.

Thanks again!  
Bhavesh

---

<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:** [March 29, 2021, 8:13pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/39 "2021-03-29T20:13:50Z")

</div>

Hi @bhavesh

Are you getting a `request_id` back for that message?

It might be that you are doing that on the Child account, which is not allowed to add or remove inventory.

Let me know if that doesn’t respond to your question.

Thanks again!

Tom

---

<div class="post-metadata">

**Author:** ![bhavesh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/bhavesh/32/288_2.png) [@bhavesh](https://community.shiphero.com/u/bhavesh)\
**Post date:** [March 31, 2021, 2:38pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/40 "2021-03-31T14:38:35Z")

</div>

Hello @tomasw

Thank you so much @tomasw order working properly.

I have new question  
Shipment create successfully i getting tracking number but we are tracking UPS tracking link not working what’s wrong with me so tracking number not working properly.  
my customer everyday told me. Please give me proper solution.

Thanks again!

Bhavesh

---

<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:** [April 3, 2021, 4:35pm UTC](https://community.shiphero.com/t/api-keys-related-question/1105/41 "2021-04-03T16:35:22Z")

</div>

Hi @bhavesh  
Glad it helped!  
Do you have an order ID or a request ID I could use to investigate this?  
Thanks again!  
Tom

[Previous page](https://community.shiphero.com/t/api-keys-related-question/1105.md?page=1)

[Next page](https://community.shiphero.com/t/api-keys-related-question/1105.md?page=3)
