question

dei-equipment-us avatar image
0 Likes"
dei-equipment-us asked

The new OAuth is only for Shopping API calls or for Orders too (Trading API)?

We are switching to the new OAuth as per the notice (Migrate Shopping API to use OAuth by June 30, 2021) and it's working but only for the Shopping API.

Is this new migration only for this module? Because the orders (Trading API) is connecting but it's giving a 0 result of records.

It only works when we leave the old eBayAuthToken in the xml request, but the instructions says to remove this (which works for the Shopping API)


We are confused whether we need to use the new OAuth only for Shopping API the old authorization for everything else, can anyone confirm or are we using the wrong API to retrieve orders with the new OAuth ?

2062086942.jpg1150834927.jpg

shopping-apioauthtradingget orders
2062086942.jpg (33.0 KiB)
1150834927.jpg (37.5 KiB)
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

safg_7652 avatar image
0 Likes"
safg_7652 answered

Endpoints allow you to request files, images, file versions, users, comments, team Once you have a Figma account, the next step is to authenticate with the API. This will be your only chance to copy the token, so make sure you keep a copy of We support OAuth 2 authentication in addition to personal access tokens.


https://www.mybalancenow.win/

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sagar_developersupport avatar image
1 Like"
sagar_developersupport answered

Hi @dei-equipment-us,

When you execute the Trading API you use a user access token (Authorization code grant) while shopping API requires an Application access token (Client credentials grant) for the execution of shopping API calls.

The eBay token service generates, or mints, access tokens via two different grant flows:

Client credentials grant flow mints a new Application access token that you can use to access the resources owned by the application.
Authorization code grant flow mints a new User access token that you can use to access the resources owned by the user.

Ref:https://developer.ebay.com/api-docs/static/oauth-token-types.htmlPlease, generate an OAuth application token with scope https://api.ebay.com/oauth/api_scope and try to execute the call with an application access token not with a user access token. If you still face the same issue, please let us know.

Ref:
https://developer.ebay.com/api-docs/static/oauth-client-credentials-grant.html
https://developer.ebay.com/devzone/shopping/docs/Concepts/ShoppingAPI_FormatOverview.html

Best regards,
eBay Developer Support

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.