FetchToken Can not return token, error code: 21916160 and 21916017
constructed auth-url and click
and Authorization successfully page url's param
FetchTokenAPI encounter errors.
Severity: Error, Code: 21916160, Invalid authorization type for given session ID. Your session ID is for ID verification, not for FetchToken, please use correct RuName when making GetSessionID call.
Severity: Error, Code: 21916017, The end user has not completed Auth & Auth sign in flow. The end user has not completed Auth & Auth sign in flow.
difference between two errors : use correct RuName when making GetSessionID call.
How to get token use
2 Replies· Add your reply
Answer by robert.fassl · Aug 20, 2015 at 01:43 PM
LongMessage => The end user has not completed Auth & Auth sign in flow. ErrorCode => 21916017
Generate a SessionID works perfectly. But when i use the FetchToken Funktion then i get this error.
Even when i use the login method like this
https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&RuName=<<ru name>>&SessID=<<session id>>
after the login and klick on "i agree" i will be redirect to my site ->
"sucess=true" ist the special Accept Redirect URL parameter ("sucess=false" is for the Reject Redirect URL). So i know the auth ist correct but the "ebaytkn" paramater is always empty also the tknexp parameter is always 1970-01-01