# Permission Issue while Creating Returns as a Third party Developer

**URL:** <https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233>\
**Category:** GraphQL API\
**Created:** [April 5, 2021, 2:18pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233 "2021-04-05T14:18:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![somitpangtey](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@somitpangtey](https://community.shiphero.com/u/somitpangtey)\
**Post date:** [April 5, 2021, 2:18pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233/1 "2021-04-05T14:18:44Z")

</div>

I’m trying to generate returns for a client who is using Shiphero.  
I have third part developer credentials, but whenever I try to create a return using the create return mutation, I get a permission error from the GraphqlAPIs and the below error response

As a third party developer, where and how can I or ask my client to change the permissions, so that i have return creation access.

{  
“errors”: [  
{  
“message”: “Cannot access the requested int. Permission denied”,  
“operation”: “return\_create”,  
“field”: “return\_create”,  
“request\_id”: “605c7aa06e72b1700b4a00fd”,  
“code”: 9  
}  
],  
“data”: {  
“return\_create”: null  
}  
}

---

<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:** [May 28, 2021, 7:36pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233/2 "2021-05-28T19:36:33Z")

</div>

Hi @somitpangtey  
I apologize for the delayed response about this!!

It seems like that warehouse ID might be invalid for that account. Try doing the following Query:

```
query {
  account {
    request_id
    complexity
    data {
      warehouses {
        id
        legacy_id
      }
    }
  }
}

```

And use the warehouse IDs that return on that Query.

Please let us know if that still doesn’t fix the problem.  
Thanks again for the patience!  
Tom

---

<div class="post-metadata">

**Author:** ![melvinj.hidalgo](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@melvinj.hidalgo](https://community.shiphero.com/u/melvinj.hidalgo)\
**Post date:** [May 28, 2021, 10:57pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233/3 "2021-05-28T22:57:48Z")

</div>

Thank you Tomas for your reply, however it doesn’t work.

I double checked and I’m sending the correct warehouse.

Regards,

---

<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:** [May 31, 2021, 1:30pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233/4 "2021-05-31T13:30:55Z")

</div>

My apologies for that @melvinj.hidalgo!

When you do the query above:

```
query {
  account {
    request_id
    complexity
    data {
      warehouses {
        id
        legacy_id
      }
    }
  }
}

```

What is the response you see? (with the `request id`)  
Thanks again for the patience!  
Tom

---

<div class="post-metadata">

**Author:** ![melvinj.hidalgo](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@melvinj.hidalgo](https://community.shiphero.com/u/melvinj.hidalgo)\
**Post date:** [June 1, 2021, 7:49pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233/5 "2021-06-01T19:49:43Z")

</div>

This is what I’m getting:

{  
“data”: {  
“account”: {  
“request\_id”: “60b174e89ff075b51fd5bf9b”,  
“complexity”: 1,  
“data”: {  
“warehouses”: [  
{  
“id”: “V2FyZWhvdXNlOjcwNjEz”,  
“legacy\_id”: 70613  
}  
]  
}  
}  
}  
}

I already tried with both id, and legacy\_id within the request for returns, neither worked.

---

<div class="post-metadata">

**Author:** ![Theresa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/theresa/32/377_2.png) [@Theresa](https://community.shiphero.com/u/Theresa)\
**Post date:** [June 1, 2021, 8:50pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233/6 "2021-06-01T20:50:46Z")

</div>

Hi,  
On the initial return creation, it was for acct 60490, which is a test account and does not have the warehouse 14732 associated with it.

---

<div class="post-metadata">

**Author:** ![Theresa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/theresa/32/377_2.png) [@Theresa](https://community.shiphero.com/u/Theresa)\
**Post date:** [June 1, 2021, 8:52pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233/7 "2021-06-01T20:52:59Z")

</div>

On the request for the warehouse id, it was made through 60638 Which is also a test account and does not have that warehouse id associated with it

---

<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:** [June 1, 2021, 8:59pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233/8 "2021-06-01T20:59:33Z")

</div>

Hi @melvinj.hidalgo!  
Maybe you are still using the credentials from the test account instead of your client account?  
If you want you could open a ticket for support so you can share with us your user’s email address over there and we can investigate further (to avoid putting your email on this forum)

Thanks again!

---

<div class="post-metadata">

**Author:** ![melvinj.hidalgo](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@melvinj.hidalgo](https://community.shiphero.com/u/melvinj.hidalgo)\
**Post date:** [June 1, 2021, 9:04pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233/9 "2021-06-01T21:04:32Z")

</div>

Thank you Tomas, can you please let me know how can I get in contact with support? we have an internal contact (Yosef) but he told me to raise the question here in this forum.

---

<div class="post-metadata">

**Author:** ![Theresa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/theresa/32/377_2.png) [@Theresa](https://community.shiphero.com/u/Theresa)\
**Post date:** [June 2, 2021, 3:03pm UTC](https://community.shiphero.com/t/permission-issue-while-creating-returns-as-a-third-party-developer/1233/10 "2021-06-02T15:03:09Z")

</div>

Hi @melvinj.hidalgo ,  
[Support@shiphero.com](mailto:Support@shiphero.com) will get you the assistance that you need. Please let them know that you were sent from Tomas in Community!
