question

pricseve_0 avatar image
0 Likes"
pricseve_0 asked

error "unsupported_grant_type"

Hi, I used this link https://developer.ebay.com/api-docs/static/oauth-app-token.html to get application token, and when i am trying i get this error: **{ "error": "unsupported_grant_type", "error_description": "grant type in request is not supported by the authorization server" }** i used those parameters: Content-Type: application/x-www-form-urlencoded" Authorization: Basic grant_type=client_credentials redirect_uri={RuName} scope= https://api.ebay.com/oauth/api_scope can any one help me please thanks
grant_type
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.

pricseve_0 avatar image
0 Likes"
pricseve_0 answered
please help me with it
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.

xtremerjay30 avatar image
0 Likes"
xtremerjay30 answered
Hi @pricseve_0 , Apologies for the delay and thank you for your patience. Based on this Knowledge Base article - https://ebaydts.com/eBayKBDetails?KBid=5075 Try using grant_type=authorization_code in the URL request to exchange the authorization code for a user token. The following example call requests access token for the sandbox POST /identity/v1/oauth2/token HTTP/1.1 Host: api.sandbox.ebay.com Authorization: Basic Content-Type: application/x-www-form-urlencoded grant_type=authorization_code&code=URL-decoded-auth-code&redirect_uri=your_redirect_uri Let me know if this helps. Best Regards, eBay Developer Program
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.