GetBestOffers
Use this call to retrieve details of Best Offers for items being sold by
or being bid on by the user.
Offers are selected for return based on the BestOfferStatus filter (Active by default). See Enabling Best Offer for details.
Usage Details
Options:
- If you have the BestOfferID value, you can submit this value along with its associated ItemID to get details about that Best Offer.
- If you provide just an ItemID (and omit BestOfferID), you receive a list of IDs of all Best Offers for that ItemID (filtered per BestOfferStatus).
- If you omit both ItemID and BestOfferID, you receive a list of IDs of all active Best Offers related to the calling user--up to 1,000 IDs for Best Offers the user submitted as a bidder and up to 10,000 IDs for Best Offers the user received as a seller.
Note the following rules and restrictions to the use of GetBestOffers:
- If the seller retrieves the Best Offer details for a listing--The seller sees the offer price and currency of each Best Offer, whether the listing is active or has ended. The seller sees email ids only for those users whose Best Offers have been accepted.
- If a bidder retrieves the Best Offer details for a listing--The bidder sees his own Best Offer and the current state of whichever offer is currently the Best Offer (for example, whether or not the seller has made a counter offer).
- If a non-winning bidder makes the call for a listing--If the listing has not ended, he sees the offer price and currency he submitted in his offer. If the listing has ended, he sees everyone's offer prices and currencies. He sees no email ids.
- If a winning bidder makes the call for a listing--If the listing has not ended, he sees the offer price and currency he submitted in his offer. If the listing has ended, he sees everyone's offer prices and currencies. He sees his own email id but no others.
- If the user is neither the seller nor a bidder for a listing--The user sees all offer prices and currencies of all bidders IF the listing has ended. Otherwise, the user sees nothing. No email ids are returned.
For more information on when email addresses are returned, see Email and Address Privacy Policy.
Testing GetBestOffers
To test GetBestOffers in the Sandbox environment, you need at least two test users---one to act as the seller, the other as the bidder.
- List an item using the seller test user. Create a
FixedPriceItemand enable Item.BestOfferDetails.BestOfferEnabled. - Have other test user submit an offer on the item using PlaceOffer. You can also use the Sandbox UI (
http://sandbox.ebay.com) to place the offer. - Call GetBestOffers as one of the two users, providing no ItemID or BestOfferID. You should see a list of IDs of Best Offers related to this user.
- Call GetBestOffers as one of the two users, providing ItemID but no BestOfferID. You should see a list of IDs of Best Offers related to that listing.
Related Information
See:
Best Offer
User information
Input
See also Samples.
The box below lists all fields that could be included in the call request. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).
See also the Deprecated Objects link above. Fields presented in this color are deprecated, and fields presented in this color are (or soon will be) non-operational.
The XML prototype does not include requester credentials. This is a documentation limitation only (see Standard Requester Credentials for Making Calls).
<?xml version="1.0" encoding="utf-8"?> <GetBestOffersRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <!-- Call-specific Input Fields --> <BestOfferID> BestOfferIDType (string) </BestOfferID> <BestOfferStatus> BestOfferStatusCodeType </BestOfferStatus> <ItemID> ItemIDType (string) </ItemID> <Pagination> PaginationType <EntriesPerPage> int </EntriesPerPage> <PageNumber> int </PageNumber> </Pagination> <!-- Standard Input Fields --> <DetailLevel> DetailLevelCodeType </DetailLevel> <!-- ... more DetailLevel values allowed here ... --> <ErrorLanguage> string </ErrorLanguage> <MessageID> string </MessageID> <OutputSelector> string </OutputSelector> <!-- ... more OutputSelector values allowed here ... --> <Version> string </Version> <WarningLevel> WarningLevelCodeType </WarningLevel> </GetBestOffersRequest>
| Argument | Type | Occurrence | Meaning |
|---|
Default: Active.
Applicable values:
Active value can also be used in the GetBestOffers request to retrieve only active Best Offers.(Not all values in BestOfferStatusCodeType apply to this field.)
The maximum and default values are not the same for all calls. For most Trading API calls, the maximum value is 200 and the default value is 25 entries per page.
Default: 20.
Min: 1. Default: 1.
| DetailLevel | DetailLevelCodeType | Optional,
repeatable: [0..*] |
Detail levels are instructions that define standard subsets of data to return for particular data components (e.g., each Item, Transaction, or User) within the response payload. For example, a particular detail level might cause the response to include buyer-related data in every result (e.g., for every Item), but no seller-related data. Specifying a detail level is like using a predefined attribute list in the SELECT clause of an SQL query. Use the DetailLevel element to specify the required detail level that the client application needs pertaining to the data components that are applicable to the request. The DetailLevelCodeType defines the global list of available detail levels for all request types. Most request types support certain detail levels or none at all. If you pass a detail level that exists in the schema but that isn't valid for a particular request, eBay ignores it and processes the request without it. For each request type, see the detail level tables in the Input/Output Reference to determine which detail levels are applicable and which elements are returned for each applicable detail level. Note that DetailLevel is required input for GetMyMessages. With GetSellerList and other calls that retrieve large data sets, please avoid using ReturnAll when possible. For example, if you use GetSellerList, use GranularityLevel instead, or use GetSellerEvents. If you do use 'ReturnAll' with GetSellerList, use a small Pagination.EntriesPerPage value and a narrow EndTimeFrom/EndTimeTo date range for better performance. Applicable values: (Not all values in DetailLevelCodeType apply to this field.) |
||||||||||||||||||||||||||||||||||||||||
| ErrorLanguage | string | Optional |
Use ErrorLanguage to return error strings for the call in a different language from the language commonly associated with the site that the requesting user is registered with. Below are some examples from different countries.
|
||||||||||||||||||||||||||||||||||||||||
| MessageID | string | Optional |
Most Trading API calls support a MessageID element in the request and a CorrelationID element in the response. If you pass in a MessageID in a request, the same value will be returned in the CorrelationID field in the response. Pairing these values can help you track and confirm that a response is returned for every request and to match specific responses to specific requests. If you do not pass a MessageID value in the request, CorrelationID is not returned. Note: GetCategories is designed to retrieve very large sets of metadata that change once a day or less often. To improve performance, these calls return cached responses when you request all available data (with no filters). When this occurs, the MessageID and CorrelationID fields aren't applicable. However, if you specify an input filter to reduce the amount of data returned, the calls retrieve the latest data (not cached). When this occurs, MessageID and CorrelationID are applicable. |
||||||||||||||||||||||||||||||||||||||||
| OutputSelector | string | Optional,
repeatable: [0..*] |
You can use the OutputSelector field to restrict the data returned by a call. This field can make the call response easier to manage, especially when a large payload is returned. If you use the OutputSelector field, the output data will only include the field(s) you specified in the request, as well as all of its child fields (if a field is a container) and its parent fields (if any). Note that it is possible that a field included through an OutputSelector field may still not be returned if it is not applicable, or if it is not found based on other criteria set up in the request payload. For example, if you are using GetItem and you only want to retrieve the URL of the View Item page (emitted in ViewItemURL field) and the item's Buy It Now price (emitted in BuyItNowPrice field), you would include two separate OutputSelector fields and set the value for each one as ViewItemURL and BuyItNowPrice as in the following example: If the following output selectors are used: See OutputSelector. |
||||||||||||||||||||||||||||||||||||||||
| Version | string | Conditional |
The version number of the API code that you are programming against (e.g., 1149). The version you specify for a call has these basic effects:
For the SOAP API: If you are using the SOAP API, this field is required. Specify the version of the WSDL your application is using. For the XML API: If you are using the XML API, this field has no effect. Instead, specify the version in the X-EBAY-API-COMPATIBILITY-LEVEL HTTP header. (If you specify Version in the body of an XML API request and it is different from the value in the HTTP header, eBay returns an informational warning that the value in the HTTP header was used instead.) See:
|
||||||||||||||||||||||||||||||||||||||||
| WarningLevel | WarningLevelCodeType | Optional |
Controls whether or not to return warnings when the application passes unrecognized or deprecated elements in a request. An unrecognized element is one that is not defined in any supported version of the schema. Schema element names are case-sensitive, so using WarningLevel can also help you remove any potential hidden bugs within your application due to incorrect case or spelling in field names before you put your application into the Production environment. WarningLevel only validates elements; it doesn't validate XML attributes. It also doesn't control warnings related to user-entered strings or numbers, or warnings for logical errors. We recommend that you only use this during development and debugging. Do not use this in requests performed in the Production environment. Applicable values: High if the user wishes to receive warnings when the application passes unrecognized or deprecated elements in an API call request. Setting the WarningLevel value to High is not recommended in a production environment. Instead, it should only be used during the development/debugging stage.Low if the user does not wish to receive warnings when the application passes unrecognized or deprecated elements in an API call request. This is the default value if WarningLevel is not specified in the call request.See Warning Level. |
Output
See also Samples.
The box below lists all fields that might be returned in the response. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).
See also the Deprecated Objects link above. Fields presented in this color are deprecated, and fields presented in this color are not returned (or soon will not be returned) or are not operational (or soon will be non-operational).
<?xml version="1.0" encoding="utf-8"?> <GetBestOffersResponse xmlns="urn:ebay:apis:eBLBaseComponents"> <!-- Call-specific Output Fields --> <BestOfferArray> BestOfferArrayType <BestOffer> BestOfferType <BestOfferCodeType> BestOfferTypeCodeType </BestOfferCodeType> <BestOfferID> BestOfferIDType (string) </BestOfferID> <Buyer> UserType <Email> string </Email> <FeedbackScore> int </FeedbackScore> <RegistrationDate> dateTime </RegistrationDate> <ShippingAddress> AddressType </ShippingAddress> <UserID> UserIDType (string) </UserID> </Buyer> <BuyerMessage> string </BuyerMessage> <ExpirationTime> dateTime </ExpirationTime> <Price currencyID="CurrencyCodeType"> AmountType (double) </Price> <Quantity> int </Quantity> <SellerMessage> string </SellerMessage> <Status> BestOfferStatusCodeType </Status> </BestOffer> <!-- ... more BestOffer nodes allowed here ... --> </BestOfferArray> <Item> ItemType <BuyItNowPrice currencyID="CurrencyCodeType"> AmountType (double) </BuyItNowPrice> <Currency> CurrencyCodeType </Currency> <ItemID> ItemIDType (string) </ItemID> <ListingDetails> ListingDetailsType <EndTime> dateTime </EndTime> </ListingDetails> </Item> <ItemBestOffersArray> ItemBestOffersArrayType <ItemBestOffers> ItemBestOffersType <BestOfferArray> BestOfferArrayType <BestOffer> BestOfferType <BestOfferCodeType> BestOfferTypeCodeType </BestOfferCodeType> <BestOfferID> BestOfferIDType (string) </BestOfferID> <Buyer> UserType <Email> string </Email> <FeedbackScore> int </FeedbackScore> <RegistrationDate> dateTime </RegistrationDate> <ShippingAddress> AddressType </ShippingAddress> <UserID> UserIDType (string) </UserID> </Buyer> <BuyerMessage> string </BuyerMessage> <ExpirationTime> dateTime </ExpirationTime> <Price currencyID="CurrencyCodeType"> AmountType (double) </Price> <Quantity> int </Quantity> <SellerMessage> string </SellerMessage> <Status> BestOfferStatusCodeType </Status> </BestOffer> <!-- ... more BestOffer nodes allowed here ... --> </BestOfferArray> <Item> ItemType <BuyItNowPrice currencyID="CurrencyCodeType"> AmountType (double) </BuyItNowPrice> <Currency> CurrencyCodeType </Currency> <ItemID> ItemIDType (string) </ItemID> <ListingDetails> ListingDetailsType <EndTime> dateTime </EndTime> </ListingDetails> </Item> <Role> TradingRoleCodeType </Role> </ItemBestOffers> <!-- ... more ItemBestOffers nodes allowed here ... --> </ItemBestOffersArray> <PageNumber> int </PageNumber> <PaginationResult> PaginationResultType <TotalNumberOfEntries> int </TotalNumberOfEntries> <TotalNumberOfPages> int </TotalNumberOfPages> </PaginationResult> <!-- Standard Output Fields --> <Ack> AckCodeType </Ack> <Build> string </Build> <CorrelationID> string </CorrelationID> <Errors> ErrorType <ErrorClassification> ErrorClassificationCodeType </ErrorClassification> <ErrorCode> token </ErrorCode> <ErrorParameters ParamID="string"> ErrorParameterType <Value> string </Value> </ErrorParameters> <!-- ... more ErrorParameters nodes allowed here ... --> <LongMessage> string </LongMessage> <SeverityCode> SeverityCodeType </SeverityCode> <ShortMessage> string </ShortMessage> </Errors> <!-- ... more Errors nodes allowed here ... --> <HardExpirationWarning> string </HardExpirationWarning> <Timestamp> dateTime </Timestamp> <Version> string </Version> </GetBestOffersResponse>
| Return Value | Type | Occurrence | Meaning |
|---|
ReturnAll detail level is used. Only returned if Best Offers have been made.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
repeatable: [1..*] For GetBestOffers, each BestOffer container consists of detailed information on the Best Offer/Counter Offer, including the type of Best Offer (Best Offer, Buyer/Seller Counter Offer), amount of the Best Offer/Counter Offer, and status of Best Offer/Counter Offer.
For RespondToBestOffer, each BestOffer container provides the status ('Success' or 'Failure') of the Best Offer action (Accept, Counter, or Decline), which are defined in BestOfferActionCodeType.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.BestOfferCodeType BestOfferTypeCodeType Always This value indicates whether the corresponding offer is a Best Offer, a seller's counter offer, or a buyer counter offer to the seller's counter offer.
Applicable values:
Code so that your app gracefully handles any future changes to this list.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.BestOfferID BestOfferIDType (string) Always Unique identifier for a Best Offer. This identifier is created once a prospective buyer makes a Best Offer on an item.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.Email string Conditionally Email address for the user. Please see the links below to the topics related to anonymous user information and static email addresses. You cannot retrieve an email address for any user with whom you do not have an order relationship, regardless of site.
An email address of another user is only returned if you and the other user are in an order relationship, within a certain time of order line item creation (although this limitation isn't applicable to the GetAllBidders call in the case of motor vehicles categories.) Based on Trust and Safety policies, the time is unspecified and can vary by site.
Since a bidder's user info is anonymous, this tag will be returned only to that bidder, and to the seller of an item that the user is bidding on.
For the GetOrders call, the buyer's email address will be returned (to the seller only) for orders less than two weeks old, but for orders that occurred more than two weeks in the past, the buyer's email address will no longer be returned. This Email field will still be returned, but 'dummy data', such as
Invalid Request will replace the actual email address. Note: For the GetItemTransactions call, this field is only returned to the seller of the order; this field is not returned for the buyer or third party.
Max length: 64 for US. May differ for other countries. Note: The eBay database allocates up to 128 characters for this field .
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.FeedbackScore int Always The aggregate feedback score for a user. A user's feedback score is the net positive feedback minus the net negative feedback left for the user. Feedback scores are a quantitative expression of the desirability of dealing with a user as a buyer or a seller in either side of an order.
Each order line item can result in one feedback entry for a given user (the buyer can leave feedback for the seller, and the seller can leave feedback for the buyer.). That one feedback can be positive, negative, or neutral. The aggregated feedback counts for a particular user represent that user's overall feedback score (referred to as a "feedback rating" on the eBay site).
If the user has chosen to make their feedback private and that user is not the user identified in the request's authentication token, FeedbackScore is not returned and FeedbackPrivate is returned with a value of
true. In GetMyeBayBuying and GetMyeBaySelling, feedback information (FeedbackScore and FeedbackRatingStar) is returned in BidList.ItemArray.Item.Seller. For GetMyeBayBuying, the feedback score of each seller with an item having received a bid from the buyer is returned. For GetMyeBaySelling, the feedback score of the seller is returned.
GetMyeBayBuying and GetMyeBaySelling also return feedback information (FeedbackScore and FeedbackRatingStar) in BidList.ItemArray.Item.SellingStatus.HighBidder. GetMyeBayBuying returns feedback information on the high bidder of each item the buyer is bidding on. GetMyeBaySelling returns feedback information on the high bidder of each item the seller is selling.
Since a bidder's user info is anonymous, the real feedback score will be returned only to that bidder, and to the seller of an item that the user is bidding on. For all other users, the value -99 is returned.
For GetOrders and GetItemTransactions only: If using Trading WSDL Version 1019 or above, this field will only be returned to the buyer or seller, and no longer returned at all to third parties. If using a Trading WSDL older than Version 1019, the accurate Feedback Score for the user is returned to the buyer or seller, but a dummy value of
0 will be returned to all third parties.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.RegistrationDate dateTime Always Indicates the date the specified user originally registered with eBay.
Since a bidder's user info is anonymous, this tag will be returned only to that bidder, and to the seller of an item that the user is bidding on.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ShippingAddress AddressType Conditionally Contains the shipping address of a bidder who has made a Best Offer for an item.
You cannot retrieve a shipping address for any user with whom you do not have an order relationship, regardless of site. The shipping address of another user is returned only if you and the other user are in an order relationship, within a certain time of order line item creation.
Because a bidder's user information is anonymous, this container is returned only to that bidder, and to the seller of an item that the user is bidding on.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.UserID UserIDType (string) Conditionally Unique eBay user ID for the user.
Note: Effective September 26, 2025, select developers will no longer receive username data for U.S. users through this field. Instead, an immutable user ID will be returned in its place. For more information, please refer to Data Handling Compliance.
Since a bidder's user info is anonymous, this tag contains the actual value of an ID only for that bidder, and for the seller of an item that the user is bidding on. For other users, the actual value is replaced by an anonymous value, according to these rules:
When bidding on items, UserID is replaced with the value "a****b" where a and b are random characters from the UserID. For example, if the UserID =
IBidALot, it might be displayed as, "I****A". Important: In this format, the anonymous bidder ID can change for each auction. For GetMyeBayBuying only, when bidding on items: UserID is replaced with the value "a****b" where a and b are random characters from the UserID.
When bidding on items listed on the Philippines site: UserID is replaced with the value "Bidder X" where X is a number indicating the order of that user's first bid. For example, if the user was the third bidder, UserID =
Bidder 3. Note that in this Philippines site format, the anonymous bidder ID stays the same for a given auction, but is different for different auctions. For example, a bidder who is the third and then the seventh bidder in an auction will be listed for both bids as "Bidder 3". However, if that same bidder is the first bidder on a different auction, the bidder will be listed for that auction as "Bidder 1", not "Bidder 3". For GetMyeBayBuying only, when bidding on items listed on the UK and AU sites: UserID is replaced with the string "High Bidder".
For PlaceOffer, see also SellingStatus.HighBidder.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.BuyerMessage string Conditionally A prospective buyer has the option to include a comment when placing a Best Offer or making a counter offer to the seller's counter offer. This field will display that comment.
Max length: 500 (in bytes).
DetailLevel: ReturnAll.
.ExpirationTime dateTime Always Timestamp indicating when a Best Offer will naturally expire (if the seller has not accepted or declined the offer).
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
[ attribute currencyID ] CurrencyCodeType Always The amount of the Best Offer or counter offer. For this field to be returned, the user must have a relationship to the Best Offer, either as the seller, buyer, or potential buyer who has made the Best Offer or counter offer.
For a list of possible enumeration values, see CurrencyCodeType.
.Quantity int Always The quantity of the item for which the buyer is making a Best Offer. This value will usually be
1, unless the buyer is making an offer on multiple quantity of a line item in a multi-quantity listing.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.SellerMessage string Conditionally A seller has the option to include a comment when making a counter offer to the prospective buyer's Best Offer. This field will display that comment.
Max length: 500 (in bytes).
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.Status BestOfferStatusCodeType Always The status of the Best Offer or counter offer. For PlaceOffer, the only applicable values are
Accepted, AdminEnded, Declined, and Expired.
Applicable values: See Status.
Code so that your app gracefully handles any future changes to this list.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
By including this field and specifying a 'Buy It Now' price, the seller is enabling the 'Buy It Now' feature on the auction listing. If the seller includes this field for any other listing type other than an auction, this field and its price will just be ignored.
The price in this field must be at least 30 percent higher than the starting bid price (which is specified in an Add call through the Item.StartPrice field). Once a bid is made on an auction listing, and the bid meets or exceeds the Item.ReservePrice value (if set), the 'Buy It Now' option becomes unavailable, and this field will no longer be applicable. If there is no Reserve Price, the first bid will nullify the 'Buy It Now' option.
Keep in mind that GetItem (and other 'Get' calls that retrieve the Item details) may still return the BuyItNowPrice field for an auction item even if the 'Buy It Now' option is no longer available. Instead, a user should look for the ListingDetails.BuyItNowAvailable boolean field in the GetItem response to determine if the 'Buy It Now' option is still available for the auction item.
Note: For the US site, new eBay sellers are subject to Seller Limits, which limit the quantity of items that may be listed and/or the total cumulative value of these listings. While subject to these selling limits, an eBay seller can use the GetMyeBaySelling call to retrieve both the remaining number of listings they can create and the remaining cumulative value of these listings. These values are shown in the Summary.QuantityLimitRemaining and Summary.AmountLimitRemaining fields in the GetMyeBaySelling response. If a call to add an item or revise an item would result in the exceeding of these limits, the add item or revise item call will fail. These fields will only be returned if the seller is subject to seller limits.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
[ attribute currencyID ] CurrencyCodeType Always This field is only applicable for auction listings. By specifying a 'Buy It Now' price, a seller is allowing prospective buyers the opportunity to purchase the item in the auction listing at this price immediately. When a buyer uses the 'Buy It Now' option to purchase the item, the auction listing will end immediately.
By including this field and specifying a 'Buy It Now' price, the seller is enabling the 'Buy It Now' feature on the auction listing. If the seller includes this field for any other listing type other than an auction, this field and its price will just be ignored.
The price in this field must be at least 30 percent higher than the starting bid price (which is specified in an Add call through the Item.StartPrice field). Once a bid is made on an auction listing, and the bid meets or exceeds the Item.ReservePrice value (if set), the 'Buy It Now' option becomes unavailable, and this field will no longer be applicable. If there is no Reserve Price, the first bid will nullify the 'Buy It Now' option.
Keep in mind that GetItem (and other 'Get' calls that retrieve the Item details) may still return the BuyItNowPrice field for an auction item even if the 'Buy It Now' option is no longer available. Instead, a user should look for the ListingDetails.BuyItNowAvailable boolean field in the GetItem response to determine if the 'Buy It Now' option is still available for the auction item.
Note: For the US site, new eBay sellers are subject to Seller Limits, which limit the quantity of items that may be listed and/or the total cumulative value of these listings. While subject to these selling limits, an eBay seller can use the GetMyeBaySelling call to retrieve both the remaining number of listings they can create and the remaining cumulative value of these listings. These values are shown in the Summary.QuantityLimitRemaining and Summary.AmountLimitRemaining fields in the GetMyeBaySelling response. If a call to add an item or revise an item would result in the exceeding of these limits, the add item or revise item call will fail. These fields will only be returned if the seller is subject to seller limits.
For a list of possible enumeration values, see CurrencyCodeType.
In 'Get' calls, it is possible that any of the values in CurrencyCodeType may appear, as some cost-related fields will show the buyer's currency type.
Applicable values: See Currency.
Code so that your app gracefully handles any future changes to this list.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
Note: Although we represent item IDs as strings in the schema, we recommend you store them as 64-bit signed integers. If you choose to store item IDs as strings, allocate at least 19 characters (assuming decimal digits are used) to hold them. Your code should be prepared to handle IDs of up to 19 digits.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
In an Add/Revise/Relist call, this container is used to set the Best Offer Auto-Accept and Best Offer Auto-Decline threshold values.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers ItemBestOffersType Conditionally,
repeatable: [0..*] A collection of details about the Best Offers received for a specific item. Empty if there are no Best Offers. Includes the buyer and seller messages only if the
ReturnAll detail level is used.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray BestOfferArrayType Conditionally All Best Offers for the item according to the filter or Best Offer ID (or both) used in the input. The buyer and seller messages are returned only if the detail level is defined. Includes the buyer and seller message only if detail level
ReturnAll is used. Only returned if a Best Offer has been made.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer BestOfferType Always,
repeatable: [1..*] For GetBestOffers, each BestOffer container consists of detailed information on the Best Offer/Counter Offer, including the type of Best Offer (Best Offer, Buyer/Seller Counter Offer), amount of the Best Offer/Counter Offer, and status of Best Offer/Counter Offer.
For RespondToBestOffer, each BestOffer container provides the status ('Success' or 'Failure') of the Best Offer action (Accept, Counter, or Decline), which are defined in BestOfferActionCodeType.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.BestOfferCodeType BestOfferTypeCodeType Always This value indicates whether the corresponding offer is a Best Offer, a seller's counter offer, or a buyer counter offer to the seller's counter offer.
Applicable values:
Code so that your app gracefully handles any future changes to this list.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.BestOfferID BestOfferIDType (string) Always Unique identifier for a Best Offer. This identifier is created once a prospective buyer makes a Best Offer on an item.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.Buyer UserType Always Container consisting of information about the prospective buyer who made the Best Offer.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.Buyer.Email string Conditionally Email address for the user. Please see the links below to the topics related to anonymous user information and static email addresses. You cannot retrieve an email address for any user with whom you do not have an order relationship, regardless of site.
An email address of another user is only returned if you and the other user are in an order relationship, within a certain time of order line item creation (although this limitation isn't applicable to the GetAllBidders call in the case of motor vehicles categories.) Based on Trust and Safety policies, the time is unspecified and can vary by site.
Since a bidder's user info is anonymous, this tag will be returned only to that bidder, and to the seller of an item that the user is bidding on.
For the GetOrders call, the buyer's email address will be returned (to the seller only) for orders less than two weeks old, but for orders that occurred more than two weeks in the past, the buyer's email address will no longer be returned. This Email field will still be returned, but 'dummy data', such as
Invalid Request will replace the actual email address. Note: For the GetItemTransactions call, this field is only returned to the seller of the order; this field is not returned for the buyer or third party.
Max length: 64 for US. May differ for other countries. Note: The eBay database allocates up to 128 characters for this field .
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.Buyer.FeedbackScore int Always The aggregate feedback score for a user. A user's feedback score is the net positive feedback minus the net negative feedback left for the user. Feedback scores are a quantitative expression of the desirability of dealing with a user as a buyer or a seller in either side of an order.
Each order line item can result in one feedback entry for a given user (the buyer can leave feedback for the seller, and the seller can leave feedback for the buyer.). That one feedback can be positive, negative, or neutral. The aggregated feedback counts for a particular user represent that user's overall feedback score (referred to as a "feedback rating" on the eBay site).
If the user has chosen to make their feedback private and that user is not the user identified in the request's authentication token, FeedbackScore is not returned and FeedbackPrivate is returned with a value of
true. In GetMyeBayBuying and GetMyeBaySelling, feedback information (FeedbackScore and FeedbackRatingStar) is returned in BidList.ItemArray.Item.Seller. For GetMyeBayBuying, the feedback score of each seller with an item having received a bid from the buyer is returned. For GetMyeBaySelling, the feedback score of the seller is returned.
GetMyeBayBuying and GetMyeBaySelling also return feedback information (FeedbackScore and FeedbackRatingStar) in BidList.ItemArray.Item.SellingStatus.HighBidder. GetMyeBayBuying returns feedback information on the high bidder of each item the buyer is bidding on. GetMyeBaySelling returns feedback information on the high bidder of each item the seller is selling.
Since a bidder's user info is anonymous, the real feedback score will be returned only to that bidder, and to the seller of an item that the user is bidding on. For all other users, the value -99 is returned.
For GetOrders and GetItemTransactions only: If using Trading WSDL Version 1019 or above, this field will only be returned to the buyer or seller, and no longer returned at all to third parties. If using a Trading WSDL older than Version 1019, the accurate Feedback Score for the user is returned to the buyer or seller, but a dummy value of
0 will be returned to all third parties.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.Buyer
.RegistrationDate dateTime Always Indicates the date the specified user originally registered with eBay.
Since a bidder's user info is anonymous, this tag will be returned only to that bidder, and to the seller of an item that the user is bidding on.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.Buyer
.ShippingAddress AddressType Conditionally Contains the shipping address of a bidder who has made a Best Offer for an item.
You cannot retrieve a shipping address for any user with whom you do not have an order relationship, regardless of site. The shipping address of another user is returned only if you and the other user are in an order relationship, within a certain time of order line item creation.
Because a bidder's user information is anonymous, this container is returned only to that bidder, and to the seller of an item that the user is bidding on.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.Buyer.UserID UserIDType (string) Conditionally Unique eBay user ID for the user.
Note: Effective September 26, 2025, select developers will no longer receive username data for U.S. users through this field. Instead, an immutable user ID will be returned in its place. For more information, please refer to Data Handling Compliance.
Since a bidder's user info is anonymous, this tag contains the actual value of an ID only for that bidder, and for the seller of an item that the user is bidding on. For other users, the actual value is replaced by an anonymous value, according to these rules:
When bidding on items, UserID is replaced with the value "a****b" where a and b are random characters from the UserID. For example, if the UserID =
IBidALot, it might be displayed as, "I****A". Important: In this format, the anonymous bidder ID can change for each auction. For GetMyeBayBuying only, when bidding on items: UserID is replaced with the value "a****b" where a and b are random characters from the UserID.
When bidding on items listed on the Philippines site: UserID is replaced with the value "Bidder X" where X is a number indicating the order of that user's first bid. For example, if the user was the third bidder, UserID =
Bidder 3. Note that in this Philippines site format, the anonymous bidder ID stays the same for a given auction, but is different for different auctions. For example, a bidder who is the third and then the seventh bidder in an auction will be listed for both bids as "Bidder 3". However, if that same bidder is the first bidder on a different auction, the bidder will be listed for that auction as "Bidder 1", not "Bidder 3". For GetMyeBayBuying only, when bidding on items listed on the UK and AU sites: UserID is replaced with the string "High Bidder".
For PlaceOffer, see also SellingStatus.HighBidder.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.BuyerMessage string Conditionally A prospective buyer has the option to include a comment when placing a Best Offer or making a counter offer to the seller's counter offer. This field will display that comment.
Max length: 500 (in bytes).
DetailLevel: ReturnAll.
.ItemBestOffers.BestOfferArray
.BestOffer.ExpirationTime dateTime Always Timestamp indicating when a Best Offer will naturally expire (if the seller has not accepted or declined the offer).
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.Price AmountType (double) Conditionally The amount of the Best Offer or counter offer. For this field to be returned, the user must have a relationship to the Best Offer, either as the seller, buyer, or potential buyer who has made the Best Offer or counter offer.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.Price
[ attribute currencyID ] CurrencyCodeType Always The amount of the Best Offer or counter offer. For this field to be returned, the user must have a relationship to the Best Offer, either as the seller, buyer, or potential buyer who has made the Best Offer or counter offer.
For a list of possible enumeration values, see CurrencyCodeType.
.ItemBestOffers.BestOfferArray
.BestOffer.Quantity int Always The quantity of the item for which the buyer is making a Best Offer. This value will usually be
1, unless the buyer is making an offer on multiple quantity of a line item in a multi-quantity listing.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.SellerMessage string Conditionally A seller has the option to include a comment when making a counter offer to the prospective buyer's Best Offer. This field will display that comment.
Max length: 500 (in bytes).
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.BestOfferArray
.BestOffer.Status BestOfferStatusCodeType Always The status of the Best Offer or counter offer. For PlaceOffer, the only applicable values are
Accepted, AdminEnded, Declined, and Expired.
Applicable values: See Status.
Code so that your app gracefully handles any future changes to this list.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.Item ItemType Conditionally The item for which Best Offers are being returned. Only returned if a Best Offer has been made.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.Item
.BuyItNowPrice AmountType (double) Conditionally This field is only applicable for auction listings. By specifying a 'Buy It Now' price, a seller is allowing prospective buyers the opportunity to purchase the item in the auction listing at this price immediately. When a buyer uses the 'Buy It Now' option to purchase the item, the auction listing will end immediately.
By including this field and specifying a 'Buy It Now' price, the seller is enabling the 'Buy It Now' feature on the auction listing. If the seller includes this field for any other listing type other than an auction, this field and its price will just be ignored.
The price in this field must be at least 30 percent higher than the starting bid price (which is specified in an Add call through the Item.StartPrice field). Once a bid is made on an auction listing, and the bid meets or exceeds the Item.ReservePrice value (if set), the 'Buy It Now' option becomes unavailable, and this field will no longer be applicable. If there is no Reserve Price, the first bid will nullify the 'Buy It Now' option.
Keep in mind that GetItem (and other 'Get' calls that retrieve the Item details) may still return the BuyItNowPrice field for an auction item even if the 'Buy It Now' option is no longer available. Instead, a user should look for the ListingDetails.BuyItNowAvailable boolean field in the GetItem response to determine if the 'Buy It Now' option is still available for the auction item.
Note: For the US site, new eBay sellers are subject to Seller Limits, which limit the quantity of items that may be listed and/or the total cumulative value of these listings. While subject to these selling limits, an eBay seller can use the GetMyeBaySelling call to retrieve both the remaining number of listings they can create and the remaining cumulative value of these listings. These values are shown in the Summary.QuantityLimitRemaining and Summary.AmountLimitRemaining fields in the GetMyeBaySelling response. If a call to add an item or revise an item would result in the exceeding of these limits, the add item or revise item call will fail. These fields will only be returned if the seller is subject to seller limits.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.Item
.BuyItNowPrice
[ attribute currencyID ] CurrencyCodeType Always This field is only applicable for auction listings. By specifying a 'Buy It Now' price, a seller is allowing prospective buyers the opportunity to purchase the item in the auction listing at this price immediately. When a buyer uses the 'Buy It Now' option to purchase the item, the auction listing will end immediately.
By including this field and specifying a 'Buy It Now' price, the seller is enabling the 'Buy It Now' feature on the auction listing. If the seller includes this field for any other listing type other than an auction, this field and its price will just be ignored.
The price in this field must be at least 30 percent higher than the starting bid price (which is specified in an Add call through the Item.StartPrice field). Once a bid is made on an auction listing, and the bid meets or exceeds the Item.ReservePrice value (if set), the 'Buy It Now' option becomes unavailable, and this field will no longer be applicable. If there is no Reserve Price, the first bid will nullify the 'Buy It Now' option.
Keep in mind that GetItem (and other 'Get' calls that retrieve the Item details) may still return the BuyItNowPrice field for an auction item even if the 'Buy It Now' option is no longer available. Instead, a user should look for the ListingDetails.BuyItNowAvailable boolean field in the GetItem response to determine if the 'Buy It Now' option is still available for the auction item.
Note: For the US site, new eBay sellers are subject to Seller Limits, which limit the quantity of items that may be listed and/or the total cumulative value of these listings. While subject to these selling limits, an eBay seller can use the GetMyeBaySelling call to retrieve both the remaining number of listings they can create and the remaining cumulative value of these listings. These values are shown in the Summary.QuantityLimitRemaining and Summary.AmountLimitRemaining fields in the GetMyeBaySelling response. If a call to add an item or revise an item would result in the exceeding of these limits, the add item or revise item call will fail. These fields will only be returned if the seller is subject to seller limits.
For a list of possible enumeration values, see CurrencyCodeType.
.ItemBestOffers.Item.Currency CurrencyCodeType Conditionally In an Add/Revise/Relist/Verify call, this required three-digit enumeration value defines the currency associated with the listing site. The item price and all costs passed in the call request will be using this currency. Similarly, the listing fees and other cost-related data will be using this currency. Since the Trading API can only be used for a select number of eBay sites, only a subset of values are supporting when adding/revising/relisting an item. These supported values are discussed in the top section of CurrencyCodeType.
In 'Get' calls, it is possible that any of the values in CurrencyCodeType may appear, as some cost-related fields will show the buyer's currency type.
Applicable values: See Currency.
Code so that your app gracefully handles any future changes to this list.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.Item.ItemID ItemIDType (string) Conditionally The unique identifier of the eBay listing. This identifier is generated by eBay and returned in the response of an Add call if an item is successfully listed. Once an item is successfully created, the ItemID cannot be modified.
Note: Although we represent item IDs as strings in the schema, we recommend you store them as 64-bit signed integers. If you choose to store item IDs as strings, allocate at least 19 characters (assuming decimal digits are used) to hold them. Your code should be prepared to handle IDs of up to 19 digits.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.Item
.ListingDetails ListingDetailsType Always Various details about a listing, some of which are calculated or derived after the item is listed. These include the start and end time, converted (localized) prices, and certain flags that indicate whether the seller specified fields whose values are not visible to the requesting user. For GetMyeBayBuying, returned as a self-closed element if no listings meet the request criteria.
In an Add/Revise/Relist call, this container is used to set the Best Offer Auto-Accept and Best Offer Auto-Decline threshold values.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.Item
.ListingDetails.EndTime dateTime Conditionally Time stamp (in GMT) when the listing is scheduled to end (calculated based on the values of StartTime and ListingDuration ) or the actual end time if the item has ended.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.ItemBestOffers.Role TradingRoleCodeType Conditionally Indicates whether the eBay user is in the Buyer or Seller role for the corresponding Best Offer.
Applicable values:
Code so that your app gracefully handles any future changes to this list.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.TotalNumberOfEntries int Conditionally Indicates the total number of entries that could be returned by repeated call requests. Returned with a value of 0 if no entries are available.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
.TotalNumberOfPages int Conditionally Indicates the total number of pages of data that could be returned by repeated requests. Returned with a value of 0 if no pages are available.
DetailLevel: ReturnAll. Also returned if DetailLevel is not provided on input.
Applicable values:
(Not all values in AckCodeType apply to this field.)
Code so that your app gracefully handles any future changes to this list.
Note: GetCategories is designed to retrieve very large sets of metadata that change once a day or less often. To improve performance, these calls return cached responses when you request all available data (with no filters). When this occurs, the MessageID and CorrelationID fields aren't applicable. However, if you specify an input filter to reduce the amount of data returned, the calls retrieve the latest data (not cached). When this occurs, MessageID and CorrelationID are applicable.
repeatable: [0..*] A list of application-level errors (if any) that occurred when eBay processed the request.
Applicable values:
Code so that your app gracefully handles any future changes to this list.
See Errors By Number.
repeatable: [0..*] This optional element carries a list of context-specific error variables that indicate details about the error condition. These are useful when multiple instances of ErrorType are returned.
[ attribute ParamID ] string Conditionally This optional element carries a list of context-specific error variables that indicate details about the error condition. These are useful when multiple instances of ErrorType are returned.
Applicable values:
If the source of the problem is within the application (such as a missing required element), change the application before you retry the request.
- If the problem is due to end-user input data, please alert the end-user to the problem and provide the means for them to correct the data. Once the problem in the application or data is resolved, you can attempt to re-send the request to eBay.
- If the source of the problem is on eBay's side, An application can retry the request as-is a reasonable number of times (eBay recommends twice). If the error persists, contact Developer Technical Support. Once the problem has been resolved, the request may be resent in its original form.
See the Error handling section of the Making a Trading API call guide for more information.
When a warning occurs, the error is returned in addition to the business data. In this case, you do not need to retry the request (as the original request was successful). However, depending on the cause or nature of the warning, you might need to contact either the end user or eBay to effect a long term solution to the problem to prevent it from reoccurring in the future.
Code so that your app gracefully handles any future changes to this list.
Note: GetCategories and other Trading API calls are designed to retrieve very large sets of metadata that change once a day or less often. To improve performance, these calls return cached responses when you request all available data (with no filters). When this occurs, this time value reflects the time the cached response was created. Thus, this value is not necessarily when the request was processed. However, if you specify an input filter to reduce the amount of data returned, the calls retrieve the latest data (not cached). When this occurs, this time value does reflect when the request was processed.
Detail Controls
DetailLevel
The DetailLevel input field influences which call-specific fields may be returned. (All standard output fields are returned regardless of DetailLevel.)
The none column indicates the fields that are returned when you do not specify a DetailLevel.
Samples
New to making API calls? Please see Making a Call.
Note: Some item IDs, user IDs, or other data in these samples might no longer be active on eBay. If necessary, you can substitute current eBay data in your requests.
Returns all the best offers made for a particular ItemID.
Description
The following call queries for all best offers made for a particular ItemID. DetailLevel is set to ReturnAll, which causes the response to include all messages from prospective buyers, if they exist.
Input
XML format.
<?xml version="1.0" encoding="utf-8"?>
<GetBestOffersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>A*******3</eBayAuthToken>
</RequesterCredentials>
<ItemID>7**********0</ItemID>
<DetailLevel>ReturnAll</DetailLevel>
<BestOfferStatus>All</BestOfferStatus>
</GetBestOffersRequest>
Output
XML format.
<?xml version="1.0" encoding="UTF-8" ?>
<GetBestOffersResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2019年11月04日T18:01:14.906Z</Timestamp>
<Ack>Success</Ack>
<Version>1125</Version>
<Build>E1125_CORE_API_19070409_R1</Build>
<BestOfferArray>
<BestOffer>
<BestOfferID>2*****7</BestOfferID>
<ExpirationTime>2019年11月05日T18:01:14.906Z</ExpirationTime>
<Buyer>
<Email>b********@*****.com</Email>
<FeedbackScore>500</FeedbackScore>
<RegistrationDate>1995年01月01日T00:00:00.000Z</RegistrationDate>
<UserID>t********r</UserID>
</Buyer>
<Price currencyID="USD">15.0</Price>
<Status>Pending</Status>
<Quantity>1</Quantity>
<BestOfferCodeType>BuyerBestOffer</BestOfferCodeType>
</BestOffer>
<BestOffer>
<BestOfferID>2*****6</BestOfferID>
<ExpirationTime>2019年11月05日T18:01:14.906Z</ExpirationTime>
<Buyer>
<Email>t********@*****.com</Email>
<FeedbackScore>1</FeedbackScore>
<RegistrationDate>2004年02月05日T00:00:00.000Z</RegistrationDate>
<UserID>t********r</UserID>
</Buyer>
<Price currencyID="USD">14.0</Price>
<Status>Pending</Status>
<Quantity>1</Quantity>
<BestOfferCodeType>BuyerBestOffer</BestOfferCodeType>
</BestOffer>
</BestOfferArray>
<Item>
<BuyItNowPrice currencyID="USD">23.0</BuyItNowPrice>
<ListingDetails>
<EndTime>2019年11月14日T18:01:14.906Z</EndTime>
</ListingDetails>
<Location>Seattle, WA</Location>
<Title>Wizard Outfit</Title>
</Item>
</GetBestOffersResponse>
Change History
| Change Date | Description |
|---|---|
| 863 2014年02月25日 |
|
| 849 2013年11月05日 |
|
| 821 2013年04月24日 |
|
| 663 2010年03月31日 |
|
| 637 2009年09月30日 |
|
| 539 2007年11月14日 |
|
| 517 2007年06月13日 |
|
| 499 2007年02月07日 |
|