inventory APIv1.6.0

deleteOffer

DELETE
/offer/{offerId}
If used against an unpublished offer, this call will permanently delete that offer. In the case of a published offer (or live eBay listing), a successful call will either end the single-variation listing associated with the offer, or it will remove that product variation from the eBay listing and also automatically remove that product variation from the inventory item group. In the case of a multiple-variation listing, the deleteOffer will not remove the product variation from the listing if that variation has one or more sales. If that product variation has one or more sales, the seller can alternately just set the available quantity of that product variation to 0, so it is not available in the eBay search or View Item page, and then the seller can remove that product variation from the inventory item group at a later time.

Input

Resource URI (production)

DELETE https://api.ebay.com/sell/inventory/v1/offer/{offerId}

URI parameters

ParameterTypeDescription
offerIdstringThe unique identifier of the offer to delete. The unique identifier of the offer (offerId) is passed in at the end of the call URI.

Occurrence: Required

HTTP request headers

All requests made to eBay REST operations require you to provide the Authorization HTTP header for authentication authorization.

OAuth scope

This request requires an access token created with the authorization code grant flow, using one scope from the following list:

https://api.ebay.com/oauth/api_scope/sell.inventory

See Oauth access tokens for more information.

Output

HTTP response headers

HTTP status codes

This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.

StatusMeaning
204No Content
400Bad Request
404Not Found
500Internal Server Error

Error codes

CodeDomainCategoryMeaning
25001API_INVENTORYAPPLICATIONA system error has occurred. {additionalInfo}
25713API_INVENTORYREQUESTThis Offer is not available : {additionalInfo}.

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.

Sample 1: Deleting an Offer

This call will delete a specific published or unpublished offer associated to the seller's acount. For published offers, a successful call will actually delete that offer and end the associated eBay listing.

Input

The offerId value associated with the offer to delete is input into the end of the call URI. In this case, the offerId value for the offer is 3455632452345.
DELETE
https://api.ebay.com/sell/inventory/v1/offer/3455632452345

Output

There is no output payload with this response. A successful call contains an HTTP status code of 200.