cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[sandbox] API Scope logistics fails when trying to authorize as the authorization code grant flow

Hello everyone,

 

ENV: sandbox

 

I'm trying to call POST /shipping_quote request which requires authorisation code grant flow and below scope:

https://api.ebay.com/oauth/api_scope/sell.logistics

 

My problem is that when I'm calling authorisation request with above scope, I'm getting to this URL (where we can see the url param "error=invaild_scope"):

https://myapp.local/ajax/modal/integrations/module_ebay.php?state=a8bbf88f3f73086e026d20694f988b34&error=invalid_scope

and I'm unable to provide my sandbox account detalis to authorise. Also the html looks like the CSS is broken.

 

When I remove the above token from my authorisation request (but still provide any other scopes which are necessary for my app), then everything works fine - I can login to my sandbox on authorisation request and call  some requests works with no errors in response.

 

Here is the list of scopes which I'm using in my app for authorisation code grant flow with success:

https://api.ebay.com/oauth/api_scope
https://api.ebay.com/oauth/api_scope/sell.inventory.readonly
https://api.ebay.com/oauth/api_scope/sell.inventory
https://api.ebay.com/oauth/api_scope/sell.account.readonly
https://api.ebay.com/oauth/api_scope/sell.account
https://api.ebay.com/oauth/api_scope/sell.finances
https://api.ebay.com/oauth/api_scope/sell.payment.dispute
https://api.ebay.com/oauth/api_scope/sell.fulfillment

And here is the API endpoint which also works good.

GET https://api.sandbox.ebay.com/sell/fulfillment/v1/order?limit=50

 

I'm looking for a help how to solve this error, or maybe some eBay developers are here and they could check is the provided scope supported by API.

 

Thanks in advance.

Sebastian

Message 1 of 2
latest reply
1 REPLY 1

Re: [sandbox] API Scope logistics fails when trying to authorize as the authorization code grant flo

Hello,
I have the same problem. Maybe it's because as mentioned in "https://developer.ebay.com/api-docs/sell/logistics/resources/methods", the API is only available to select developers approved by business units.


I appreciate that you asked the question, and I'm writing because I'm interested in staying updated to find a solution.

Message 2 of 2
latest reply