Skip to main content
Published: June 14 2004, 11:51:00 AMUpdated: July 18 2022, 4:41:24 AM

Do I need the Userid to make Trading API requests?

The Username property of the requester credentials is not needed for authentication purposes when a Request Token is used.

Some API calls refer to a particular user, such as GetUser, GetSellerEvents, GetSellerList, GetBidderList and GetFeedback. For these calls, a <UserID> property of the request object represents the user who's data is referred to in the call. If the <UserID> tag is omitted, eBay implicitly uses the user represented by the Request Token.

For example, the GetUser request below specifies a UserID property in the request object. Regardless of which user's token is used, this call will return user data for "tuser1". If "tuser1" was not specified, user data would be returned for the user represented by the eBayAuthToken property.

<?xml version="1.0" encoding="utf-8"?> 
<GetUserRequest xmlns="urn:ebay:apis:eBLBaseComponents"> 
  <RequesterCredentials>
    <eBayAuthToken></eBayAuthToken>
  </RequesterCredentials>
    <ErrorLanguage>en_US</ErrorLanguage>
    <WarningLevel>High</WarningLevel>
    <!-- Enter an eBay User ID. If a user token is being used, and the UserID is omitted, the response payload will show the user account settings of user associated with that token. -->
  <UserID>XXXXX</UserID>
</GetUserRequest> 

 

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

Got thoughts? Click the feedback button – your insights help us improve!