Skip to main content
Published: April 18 2012, 8:15:00 PMUpdated: November 28 2020, 10:26:53 PM

Why I am getting this error in GetUser call?

 <?xml version="1.0" encoding="utf-8"?>
<GetUserResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2012-04-19T03:12:51.429Z</Timestamp>
  <Ack>Failure</Ack>
  <Errors>
    <ShortMessage>No ItemId exists.</ShortMessage>
    <LongMessage>ItemId required for this Detail Level. Transactional relationship must exist between requesting and subject user.</LongMessage>
    <ErrorCode>17420</ErrorCode>
    <SeverityCode>Error</SeverityCode>
    <ErrorParameters ParamID="0">
      <Value>0</Value>
    </ErrorParameters>
    <ErrorClassification>RequestError</ErrorClassification>
  </Errors>
  <Version>770</Version>
  <Build>E770_CORE_BUNDLED_14754096_R1</Build>
</GetUserResponse>

  Detailed Description

 This error can occur when you set DetailLevel to ReturnAll  AND passed an UserID that is not the requesting user identified by the user auth token in GetUser call as below:

  <?xml version="1.0" encoding="utf-8"?>
  <GetUserRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <Version>765</Version>
    <RequesterCredentials>
      <eBayAuthToken>YOUR USER AUTH TOKEN</eBayAuthToken>
    </RequesterCredentials>
    <DetailLevel>ReturnAll</DetailLevel>
    <UserID>USERID for the OTHER EBAY USER</UserID>
</GetUserRequest>

  You can fix the request error by removing the  <DetailLevel>ReturnAll</DetailLevel> from the request.

  For GetUser API,   you can only use ReturnAll detail level in either of the cases below:
     1. The requester identified by the user token is retrieving his/her own data

     2. The requester has transaction relationship with the user specified  in the UserID for the listing, the ItemID is also passed into the ItemID field, in which the requestor and target user were participants.
 

How well did this answer your question?
Answers others found helpful