swagger: '2.0' info: description: Note: This is a Limited Release(Limited Release) API available only to select developers approved by business units. For information on how to obtain access to this API in production, see the Buy APIs Requirements.

The Buy Offer API enables Partners to place proxy bids for a buyer and retrieve the auctions where the buyer is bidding. By placing a proxy bid, the buyer is agreeing to purchase the item if they win the auction. version: v1_beta.0.1 title: Buy Offer API contact: name: eBay Inc, license: name: eBay API License Agreement url: https://go.developer.ebay.com/api-license-agreement host: api.ebay.com basePath: /buy/offer/v1_beta schemes: - https paths: /bidding/{item_id}: get: tags: - bidding description: This method retrieves the bidding details that are specific to the buyer of the specified auction. This must be an auction where the buyer has already placed a bid.

To retrieve the bidding information you use a user access token and pass in the item ID of the auction. You can also retrieve general bidding details about the auction, such as minimum bid price and the count of unique bidders, using the Browse API getItem method.

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.

operationId: getBidding produces: - application/json parameters: - name: item_id in: path description: 'The eBay RESTful identifier of an item that you want the buyer''s bidding information. This ID is returned by the Browse and Feed API methods.

RESTful Item ID example: v1|2**********2|0

For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview.

Restriction: The buyer must have placed a bid for this item. ' required: true type: string - name: X-EBAY-C-MARKETPLACE-ID in: header description: 'The ID of the eBay marketplace where the buyer is based. Note: This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions.' required: true type: string responses: '200': description: OK schema: $ref: '#/definitions/Bidding' '400': description: Bad Request x-response-codes: errors: '120015': domain: API_OFFER category: REQUEST description: The X-EBAY-C-MARKETPLACE-ID header is missing. This is a required header. '120017': domain: API_OFFER category: REQUEST description: The Marketplace {marketplace_id} is not supported. Supported values are [marketplace_ids]. '404': description: Not found x-response-codes: errors: '120001': domain: API_OFFER category: REQUEST description: The item ID {item_id} was not found. Check that this is an active auction item ID. '120033': domain: API_OFFER category: REQUEST description: There is no bidding activity for this auction (item ID {item_id}). '500': description: Internal Server Error x-response-codes: errors: '120000': domain: API_OFFER category: APPLICATION description: There was a problem with an eBay internal system or process. Contact eBay developer support for assistance. security: - Authorization Code: - https://api.ebay.com/oauth/api_scope/buy.offer.auction /bidding/{item_id}/place_proxy_bid: post: tags: - bidding description: 'This method uses a user access token to place a proxy bid for the buyer on a specific auction item. The item must offer AUCTION as one of the buyingOptions.

To place a bid, you pass in the item ID of the auction as a URI parameter and the buyer''s maximum bid amount (maxAmount ) in the payload. By placing a proxy bid, the buyer is agreeing to purchase the item if they win the auction.

After this bid is placed, if someone else outbids the buyer a bid, eBay automatically bids again for the buyer up to the amount of their maximum bid. When the bid exceeds the buyer''s maximum bid, eBay will notify them that they have been outbid.

To find auctions, you can use the Browse API to search for items and use a filter to return only auction items. For example:

/buy/browse/v1/item_summary/search?q=iphone&filter=buyingOptions:{AUCTION}

Restrictions

For a list of supported sites and other restrictions, see API Restrictions.

' operationId: placeProxyBid consumes: - application/json produces: - application/json parameters: - name: item_id in: path description: 'The eBay RESTful identifier of an item you want to bid on. This ID is returned by the Browse and Feed API methods.

RESTful Item ID Example: v1|2**********2|0

For more information about item ID for RESTful APIs, see the Legacy API compatibility section of the Buy APIs Overview.' required: true type: string - name: X-EBAY-C-MARKETPLACE-ID in: header description: 'The ID of the eBay marketplace where the buyer is based. Note: This value is case sensitive.

For example:
  X-EBAY-C-MARKETPLACE-ID = EBAY_US

For a list of supported sites see, API Restrictions.' required: true type: string - in: body name: body required: false schema: $ref: '#/definitions/PlaceProxyBidRequest' responses: '200': description: OK schema: $ref: '#/definitions/PlaceProxyBidResponse' '400': description: Bad Request x-response-codes: errors: '120011': domain: API_OFFER category: REQUEST description: The bid amount exceeds the limit. '120013': domain: API_OFFER category: REQUEST description: The bid amount is missing or invalid. '120014': domain: API_OFFER category: REQUEST description: The bid currency is invalid. Refer to the documentation for a list of currency codes. '120015': domain: API_OFFER category: REQUEST description: The X-EBAY-C-MARKETPLACE-ID header is missing. This is a required header. '120016': domain: API_OFFER category: REQUEST description: The maximum bid amount is missing. '120017': domain: API_OFFER category: REQUEST description: The Marketplace {marketplaceId} is not supported. Supported values are {allowedMarketplaces}. '404': description: Not found x-response-codes: errors: '120001': domain: API_OFFER category: REQUEST description: The item ID {item_id} was not found. Check that this is an active auction item ID. '409': description: Conflict x-response-codes: errors: '120002': domain: API_OFFER category: BUSINESS description: The auction was ended because the item was purchased with Buy It Now (fixed_price). '120003': domain: API_OFFER category: BUSINESS description: A seller cannot place a bid. '120004': domain: API_OFFER category: BUSINESS description: You are not eligible to bid on this item. '120005': domain: API_OFFER category: BUSINESS description: The bid price cannot be greater than the Buy It Now price. '120006': domain: API_OFFER category: BUSINESS description: You are not eligible to bid on this item due to seller restrictions. '120007': domain: API_OFFER category: REQUEST description: The bid amount is too high. '120008': domain: API_OFFER category: BUSINESS description: The bid amount is too low. '120009': domain: API_OFFER category: BUSINESS description: The bid currency needs to match the item price currency. '120010': domain: API_OFFER category: BUSINESS description: You cannot lower your proxy bid. '120012': domain: API_OFFER category: BUSINESS description: The auction has ended. '120018': domain: API_OFFER category: REQUEST description: For this auction, the bid amount cannot have decimals. '120019': domain: API_OFFER category: BUSINESS description: You must be pre-approval to bid on this auction. '120020': domain: API_OFFER category: BUSINESS description: A user agreement acceptance is required for this auction. '120021': domain: API_OFFER category: BUSINESS description: You are not authorized to bid on adult items. See the eBay help on adult items. '120022': domain: API_OFFER category: BUSINESS description: A privacy user agreement is required for this auction. '120023': domain: API_OFFER category: BUSINESS description: This is a business to business only auction. '120024': domain: API_OFFER category: BUSINESS description: The item is currently unavailable. '120025': domain: API_OFFER category: BUSINESS description: The bid was blocked because you have exceeded the item purchased limit. '120026': domain: API_OFFER category: BUSINESS description: The bid was blocked due to a seller restriction based on your feedback score. '120027': domain: API_OFFER category: BUSINESS description: The bid was blocked due to a seller restriction on the shipping location. '120028': domain: API_OFFER category: BUSINESS description: The auction is restricted to users with a linked PayPal accounts. '120029': domain: API_OFFER category: BUSINESS description: There has been a buyer policy violation. '120030': domain: API_OFFER category: BUSINESS description: The bid was blocked due to unpaid items. '120031': domain: API_OFFER category: BUSINESS description: This requires credit card verification. '120032': domain: API_OFFER category: REQUEST description: This requires the user's consent for adult items. '500': description: Internal Server Error x-response-codes: errors: '120000': domain: API_OFFER category: APPLICATION description: There was a problem with an eBay internal system or process. Contact eBay developer support for assistance. security: - Authorization Code: - https://api.ebay.com/oauth/api_scope/buy.offer.auction securityDefinitions: Authorization Code: description: The security definitions for this API. Please check individual operations for applicable scopes. type: oauth2 authorizationUrl: https://auth.ebay.com/oauth2/authorize tokenUrl: https://api.ebay.com/identity/v1/oauth2/token flow: accessCode scopes: https://api.ebay.com/oauth/api_scope/buy.offer.auction: View and manage bidding activities for auctions definitions: Amount: type: object properties: currency: type: string description: The three-letter ISO 4217 code representing the currency of the amount in the value field. For implementation help, refer to eBay API documentation value: type: string description: The monetary amount. description: The type that defines the fields for a monetary value and its currency. Bidding: type: object properties: auctionEndDate: type: string description: The date the auction will end. auctionStatus: type: string description: An enumeration value that represents the current state of the auction, such as ACTIVE or ENDED.

If this value is ENDED and the value of highBidder is true, this indicates the buyer has won the auction. For implementation help, refer to eBay API documentation bidCount: type: integer description: The number of proxy bids that have been placed for the auction. currentPrice: $ref: '#/definitions/Amount' currentProxyBid: $ref: '#/definitions/ProxyBid' highBidder: type: boolean description: Indicates if the buyer is the highest bidder. itemId: type: string description: The eBay RESTful identifier of an item being bid on, which was submitted in the request. reservePriceMet: type: boolean description: 'This indicates if the reserve price of the item has been met. A reserve price is set by the seller and is the minimum amount the seller is willing to sell the item for.

If the highest bid is not equal to or higher than the reserve price when the auction ends, the listing ends and the item is not sold.

Note: This is returned only for auctions that have a reserve price.

' suggestedBidAmounts: type: array description: 'The suggested bid amount for the next bid. Note: These are generated suggestions and do not guarantee the buyer will win the bid. This means these suggestions do not take into account the max bid amount of other bidders. The buyer can be outbid even if they submit the highest suggested bid.' items: $ref: '#/definitions/Amount' description: The type the defines the field for the auction details. PlaceProxyBidRequest: type: object properties: maxAmount: $ref: '#/definitions/Amount' userConsent: $ref: '#/definitions/UserConsent' description: The type that defines the fields for placing a proxy bid. PlaceProxyBidResponse: type: object properties: proxyBidId: type: string description: Identifier of the proxy bid created by the request. This indicates that the bid was placed and is not used for anything else. description: The type that defines the fields for the place proxy bid response. ProxyBid: type: object properties: maxAmount: $ref: '#/definitions/Amount' proxyBidId: type: string description: Identifier of a specific proxy bid. description: The type the defines the fields for the proxy bid information. UserConsent: type: object properties: adultOnlyItem: type: boolean description: The type that defines the fields for buyer consent to bid on adult-only items.

This field must be included in the placeProxyBid request and set to true if the buyer is bidding on an adult-only item.

For more information about adult-only items on eBay, see Adult-Only items on eBay. description: The type that defines the fields for collecting the buyers consent.