Permission Issue while Creating Returns as a Third party Developer

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
}
}

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

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

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

Regards,

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

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.

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.

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

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!

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.

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