eBay Community logo
    • Home
    • News & Updates
    • Buying & Selling
      • Buying
      • Selling
      • New to selling on eBay
      • Seller Tools
      • Shipping
      • Returns
      • eBay Advertising
      • Payments
      • Mobile Apps
    • Explore Categories
        • eBay Motors
        • Electronics
        • Collectibles & Art
        • Home & Garden
        • Clothing, Shoes & Accessories
        • Toys & Hobbies
        • Sporting Goods
        • Books, Movies & Music
        • Health & Beauty
        • Business & Industrial
        • Jewelry & Watches
        • Specialty Services
        • eBay Partner Network
        • Accessibility
        • eBay Developers Program
        • eBay Cafe
        • eBay Live
        • Community Mentors
      • Ask a Mentor
    • About
      • About the Community
      • Share Community Platform Feedback
      • Report eBay Technical Issues
      • About eBay
    • Community Events
      • Events
      • Seller Circle Hosts
      • Seller Circles
    • eBay Help
    All PostsDiscussionsBlogsIdeasQuestions
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    Discussions
    • Special CategoriesChevronRightIcon
    • eBay Developers ProgramChevronRightIcon
    • Token, Messaging, Sandbox related issuesChevronRightIcon
    [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

    sebagru-26
    sebagru-26
    0View listings
    Posted 2 years ago·Last reply 1 year ago
                                           
             
    1 comment

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                   
    jucamejo-0

    jucamejo-0

    ·1 year ago

    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.

                                           
                                                                                     
    •                                                              
    •                                                              
    •