- eBay’s Modernized REST and GraphQL APIs are now Generally Available. Explore the next generation of eBay APIs with migration guides , AI-powered development tools , SDKs , and easy-to-use API Explorers — all designed to help you build faster and migrate with confidence. Get Started with APIs.
- eBay Partner Program 2027: The 2027 program criteria have been announced, and applications are now open. Review the updated criteria and apply here.
Listing Management
Overview
This guide discusses the use cases involved in managing active eBay listings, including revising listings, relisting items, retrieving listings, ending listings, managing listing media (images, videos, and documents) with the Media API, and managing an eBay Store and its Store Categories with the Stores API.
API Use Case
Choose a Listing API operation
Revising listings
Relisting items
Retrieving listings
Ending listings
End and publish a single-SKU listing
End and publish a variation listing
Managing images with the Media API
Managing videos with the Media API
Managing documents with the Media API
Managing eBay Store and Store Categories
Choose a Listing API operation
| Your task | Operation | Key consideration |
|---|---|---|
| Create a new single-SKU or multiple-SKU listing | createListing | Use validation mode to check the request before creating the listing. |
| Change product details, listing terms, or item details on an active or scheduled listing | updateListing | Send fields that need to change. Collection fields have specific replacement rules. |
| Change only price and/or available quantity for fixed-price items | bulkUpdateInventory | Submit one to four item entries per request and handle each item’s result. |
| Create a new listing based on an ended listing | relistListing | The resulting listing has a new listingId; review inherited quantities and terms. |
| End a listing before its scheduled end | endListing | The action applies to the entire listing, including all variations. |
| Retrieve a listing whose ID you know | sellerListings | Select the fields needed by your integration and follow the query’s documented input limits. |
| Find listings by supported search criteria | sellerListingSearch | Use the query’s filters and pagination controls. |
Use the operation reference for required inputs, supported listing formats, and business restrictions. A Second Chance Offer for an eligible bidder from an ended auction is a separate workflow using createSecondChanceListing.
Revising listings
The Listing API, the Inventory API, the Sell Feed API, and the Trading API can all be used to revise active listings. The required steps vary with each of these APIs, so they will be covered individually below. Regardless of the API used, active listings can only be revised a maximum of 250 times per calendar day.
Revising a listing with the Listing API
The GraphQL Listing API provides two mutations for revising an active listing: updateListing for general listing changes, and bulkUpdateInventory for fast price and quantity updates across up to four fixed-price items in one call.
updateListing identifies the listing to revise with a listingIdentifier (SKU or listingId) and a marketplace value. Unlike the Inventory API’s createOrReplaceInventoryItem method, updateListing only requires the fields that are changing — for example, a request that updates only availability.quantityAvailable does not need to resend the title, aspects, or pricing terms. For a multiple-SKU (MSKU) listing, target an individual variation by including its SKU in the listingItems.items array, or revise shared, listing-level details (such as aspects) by including the full variationTraits block. The mutation returns UpdateListingSuccess when an EXECUTE request succeeds, UpdateListingValidationSuccess when a VALIDATE request succeeds without applying the update, or UpdateListingValidationError when blocking business validation errors prevent the request from succeeding. Nonblocking warnings can accompany either success type and can also appear with validation errors. Use __typename to distinguish the result; the presence or absence of warnings does not identify the operation mode. For how SKU and listingId identify a listing, see Identifying listings by SKU or listingId with the Listing API.
Update fields without unintentionally removing existing values
For updateListing, omit individual fields whose values should remain unchanged. For most collection fields, providing an array replaces the existing collection: include all values you want to retain. The variationDetails, items, and itemCompatibilities arrays have specific behavior documented in their field references.
| Intended change | Guidance |
|---|---|
| Keep an individual field unchanged | Omit it from the request. |
| Change an individual field | Supply the new value. |
| Replace a collection | For a replacement-style collection, include the complete desired collection, including existing values you want to retain. |
| Clear an optional field or disable a feature | Follow that field’s documented null, empty-value, or boolean behavior. There is no universal clearing rule. |
| Update one variation | Identify the item in listingItems.items using its SKU and follow the item-specific update rules. |
Do not automatically serialize missing application values as JSON null. Omission, null, an empty string, an empty array, false, and 0 can have different meanings. Review the relevant field description before sending a clearing or replacement request.
For changes limited to price and/or quantity of fixed-price items, consider bulkUpdateInventory. Use updateListing for broader product or listing-term changes.
Update fixed-price inventory in small batches
Use bulkUpdateInventory to update price, available quantity, or both for one to four items in fixed-price listings. The limit counts item entries, not listings: four variations in one listing consume all four entries, just as one item in each of four listings does.
For each entry:
- Identify a single-SKU item using the documented listingId or sku identifier. Use the SKU to target a variation in a multiple-SKU listing. Follow the identifier requirements in the operation reference.
- Include fixedPrice, availableQuantity, or both. Omit a field that should remain unchanged.
- Set availableQuantity to the desired available quantity, not an increment or decrement. For example,
5means set the available quantity to five; it does not mean add five. - Supply price in the existing listing marketplace’s currency. This operation does not provide a currency-conversion input.
bulkUpdateInventory has no options.operationMode input. Do not add VALIDATE to its request.
Handle each item’s result
Request __typename and fragments for all three outcomes:
| Result | Meaning | Client action |
|---|---|---|
| BulkUpdateInventorySuccess | The returned items were updated successfully. | Record successes and inspect warnings. |
| BulkUpdateInventoryPartialFailure | Some items succeeded and others failed. | Record successes; inspect and correct failures individually. |
| BulkUpdateInventoryFailure | The operation returned failures. | Inspect failure details and correct the cause before resubmitting. |
A batch is not an all-or-nothing transaction. Do not resend every item merely because some items failed. Correlate outcomes using returned identifiers, inspect each failed item’s violations, and submit only the updates still needed. Handle batch-level failures where an individual target cannot be identified.
After a timeout or interrupted response, do not assume that no items changed. Reconcile the current listing state with the latest desired inventory state before resubmitting an older quantity. This is a recommended client recovery practice, not a guarantee of server-side deduplication or transactional ordering.
Identifying listings by SKU or listingId with the Listing API
The listingIdentifier input used by updateListing, relistListing, and endListing (and the item identifiers in bulkUpdateInventory) accepts either a listingId or a sku. Keep the following in mind when you choose between them:
- The listing-level SKU is optional. A listing is not required to have a SKU. A listing with no SKU can only be identified by its listingId.
- A listing-level SKU maps one-to-one to a listing. When a listing-level SKU was supplied at creation and inventoryTrackingBySku was
true(the default), the SKU is unique for the seller across all eBay marketplaces and identifies exactly one listing. That one-to-one mapping is what allows you to update or end a listing by its SKU. - Listing-level SKU versus variation-child SKU. In listingIdentifier, a SKU identifies the listing as a whole. In the listingItems.items array of an updateListing request, a SKU identifies an individual variation of a multiple-SKU listing, or is assigned to a new variation that you are adding. Variation-child SKUs must be unique within their variation listing. For a single-SKU listing, the item-level SKU is ignored in an updateListing request because the listing is already identified.
- Difference from the Trading API. The Trading API does not generally enforce uniqueness for a listing-level SKU when listings are managed by ItemID, so the same SKU can exist on more than one listing. The Trading API requires the SKU to be unique within the seller’s active and scheduled listings only when InventoryTrackingMethod is set to SKU. The Listing API is stricter, so a SKU used to identify a listing must resolve to exactly one listing. If several of your existing listings share the same SKU, identify each one by its listingId.
- Single-SKU listings without a top-level SKU. If the top-level sku was omitted when a single-SKU listing was created, the SKU on the single item identifies the listing, and the same uniqueness rule applies to that SKU.
- Temporary migration exception. If an existing integration created listings with inventoryTrackingBySku set to
false, more than one listing can share the same listing-level SKU, and a SKU cannot identify a single listing. Identify those listings by listingId. Setting inventoryTrackingBySku tofalseis not recommended for new integrations, the field is planned for future deprecation, and it does not change the requirement that variation-child SKUs are unique within their variation listing.
If a SKU supplied in the request is already associated with another listing (a listing-level SKU), or with another variation in the same listing (a variation-child SKU), the mutation returns an UpdateListingValidationError with a LSTNG_SKU_IN_USE violation ("The provided SKU is already in use. Please provide a unique SKU.").
Revising product details with the Inventory API
The flow diagram below provides a visual representation of how to revise product details using the Inventory API:

- Use a getInventoryItem (for one specific inventory item), a getInventoryItems (for all inventory items), or a bulkGetInventoryItem (for up to 25 specific inventory items) method to see the current values for one or more inventory items.
- The createOrReplaceInventoryItem method will be used to modify any product details of one inventory item, or the bulkCreateOrReplaceInventoryItem method can be used to modify any product details of up to 25 inventory items. As the names suggest for both of these methods, a complete replace is done for inventory items, so you must pass in all applicable requests fields even if their current value is not changing.
- After a successful createOrReplaceInventoryItem or bulkCreateOrReplaceInventoryItem method, you might want to check the View Item page(s) for the item(s) you changed.
Revising offer details with the Inventory API
The flow diagram below provides a visual representation of how to revise offer details using the Inventory API:

- Use a getOffer method using the offerId as the path parameter, or a getOffers method using the sku query parameter to see the current offer-related values for the listing. If you need to update more than one variation in a multiple-variation listing, you will need to use multiple GET calls, as each variation will have its own offer object.
- The updateOffer method is used to modify any offer details of a single-SKU listing or of a single variation in a multiple-SKU listing. The updateOffer method does a complete replacement of the offer, so you must pass in all applicable requests fields even if their current value is not changing. If you have used any of the GET calls mentioned in Step 1, one thing you can do is copy the offer object and then modify as needed in the request payload of the updateOffer method. There is no “bulk” version of updateOffer, but the bulkUpdatePriceQuantity method can be used to update the price and/or quantity of up to 25 SKUs in active listings.
- After a successful updateOffer or bulkUpdatePriceQuantity method, you might want to check the View Item page(s) for the item(s) you changed.
Adding a variation with the Inventory API
As long as an inventory item and an offer object exists for the SKU to be added, that SKU can be added to an existing multiple-variation listing by using the createOrReplaceInventoryItemGroup method. The new SKU’s value is just included with the rest of the SKU values defined under the variantSKUs array.
Please note that the inventory item and offer objects for a SKU that will become part of an inventory item group object have slightly different requirements than a SKU that will become a single-SKU listing. Revisit the Creating a multiple-variation listing with the Inventory API section for more information about these requirements.
Removing a variation with the Inventory API
There are a number of ways that a variation/SKU within a multiple-variation listing can be removed using the Inventory API. The different Inventory API methods that can be used to remove a SKU from an active multiple-variation listing are covered below:
- The createOrReplaceInventoryItemGroup method can be used to update the inventory item group object, with the SKU to be removed not being included within the variantSKUs array. The inventory item and offer objects associated with this SKU remain intact except the status of the offer goes from the PUBLISHED state to the UNPUBLISHED state.
- The deleteOffer method can be run against that SKU. The offer object is deleted, but the inventory item object stays intact.
- The deleteInventoryItem method can be run against that SKU. This will delete the inventory item object and the offer object associated with that SKU.
Revising listings in bulk with the Inventory API
The flow diagram below provides a visual representation of how to revise up to 25 active listings using three bulk methods of the Inventory API:

Here are the necessary steps to take in the Inventory API to revise up to 25 listings:
- Use the getInventoryItems method to retrieve all inventory items defined for a seller’s account, or the bulkGetInventoryItem method can be used to retrieve up to 25 specific inventory item records. Currently, there is no bulk method that retrieves multiple offers.
- Use the bulkCreateOrReplaceInventoryItem method to revise up to 25 inventory item records. The payload for this method is identical to the createOrReplaceInventoryItem method except up to 25 inventory item records can be revised instead of just one, and the requests.sku field is specified in the request payload for each inventory item record instead of the sku value being a path parameter like in the createOrReplaceInventoryItem method. As the name suggests, a complete replace is done for inventory items, so you must pass in all applicable requests fields even if their current value is not changing.
- There is no “bulk” version of the updateOffer method, but the bulkUpdatePriceQuantity method can be used to update the price and/or quantity of up to 25 SKUs in active listings.
- A successful bulkCreateOrReplaceInventoryItem or bulkUpdatePriceQuantity method will automatically update the active eBay listings, so you might want to check the View Item page(s) for the item(s) you revised.
Revising listings in bulk with the Sell Feed API
The Sell Feed API lets sellers upload and download various feed files and reports. The two feed types used for bulk listing updates are LMS_REVISE_ITEM, LMS_REVISE_FIXED_PRICE_ITEM, and LMS_REVISE_INVENTORY_STATUS. The size limitation for these feed files is 15 MB, and the files are processed asynchronously by eBay. The status of all upload tasks are tracked with a unique 'task ID'.
The flow diagram below provides a visual representation of how to revise multiple active listings using the Sell Feed API:

Here are the necessary steps to take in the Sell Feed API to revise multiple active listings:
- Stage the task using the createTask method. Use the X-EBAY-C-MARKETPLACE-ID header to set the listing marketplace, and set the feedType value in the request payload to either LMS_REVISE_ITEM, LMS_REVISE_FIXED_PRICE_ITEM, or LMS_REVISE_INVENTORY_STATUS. LMS_REVISE_ITEM cannot be used if you are modifying multiple-variation listings. If the call is successful, the getTask URI for the task is returned in the Location response header.
- Use the getTask method to check the status of the task. The value returned in the status field should be CREATED. Proceed to the next step if you see this value.
- Use the uploadFile method to upload the LMS_REVISE_ITEM, LMS_REVISE_FIXED_PRICE_ITEM, or LMS_REVISE_INVENTORY_STATUS feed file. The same task ID returned in createTask method and used in getTask method is used as a path parameter for the uploadFile method.
- Run another getTask method (using the same task ID) to check status. This time, you will want to see a value of COMPLETED or COMPLETED_WITH_ERROR.
- Use the getResultFile method (using the same task ID as a path parameter) to retrieve the file that indicates the results of the listings revision task.
Revising listings with the Trading API
Active listings can be revised with the Trading API using ReviseItem or ReviseFixedPriceItem. ReviseItem supports all listing types, but not multiple variations. As its name suggests, ReviseFixedPriceItem only supports fixed price listings (single and multiple-variations).
Follow the process below to revise listing details in an active listing using ReviseItem or ReviseFixedPriceItem:
- Use a GetItem call to see the current settings/values for the listing.
- Identify the listing to revise using the ItemID field in the ReviseItem or ReviseFixedPriceItem call.
- Modify the active listing as needed. Below are ways to add fields, modify fields, or remove fields:
- You can add or modify one or more fields/settings using the applicable field(s) to add/modify the setting(s). See the Listing Creation Guide for more information about setting listing details in the Trading API.
- You can delete one or more fields/settings using the DeletedField field. Just pass in the full path of the field to be removed. For example, if you wanted to remove the optional Subtitle from the listing, you’d pass in the following in the request payload: <DeletedField>Item.SubTitle</DeletedField>. To remove a boolean field, you can pass in that field name and use false as the value. For example, if you wanted to disable the Best Offer feature for the listing, you’d pass in the following in the request payload: <BestOfferEnabled>false</BestOfferEnabled>
Note that required fields cannot be removed and the values of some fields cannot be changed under some circumstances, such as auction listings that end within 12 hours or any listings that have pending Best Offers/counteroffers.
-
A successful ReviseItem or ReviseFixedPriceItem call should not trigger any errors or warnings. Keep in mind that a Revise call may incur additional listing fees depending on which setting was added. For example, if the seller added a subtitle to an active listing that didn’t have one before. Also note that you will not be automatically entitled to a listing fee refund just because you removed the setting/feature that incurred the fee.
Other listing revision calls in the Trading API include:
- ReviseInventoryStatus: a call that allows a seller to easily update the price and/or quantity for one to four active listings per call.
- AddToItemDescription: a call that allows a seller to append additional text to the current item description.
Relisting items
The process to relist recently ended listings will vary based on whether you are using the Listing API, the Inventory API, the Sell Feed API, or the Trading API. The required steps to relist with each of these APIs will be covered individually below.
Relisting items with the Listing API
The relistListing mutation of the GraphQL Listing API is used to relist a recently ended listing. Identify the ended listing with listingIdentifier (listingId or SKU) and marketplace, and include only the fields that need to change (such as a new price, title, or quantity) — price, GTIN/ePID, and most other listing terms carry over from the ended listing unless overridden (for an MSKU listing, up to 250 items can be included). Note that any idempotencyKey set on the original listing does not carry over, so supply a new one if needed. Use options.operationMode set to VALIDATE to check the request before executing it (the default mode is EXECUTE). The mutation returns RelistListingSuccess when an EXECUTE request successfully creates the relisted listing, RelistListingValidationSuccess when a VALIDATE request succeeds without relisting, or RelistListingValidationError when blocking business validation errors prevent success. Warnings do not determine whether a listing was created. Use __typename to distinguish these results.
Review inherited values before relisting
relistListing creates a new listing from an ended listing. A successful execution returns a new listingId; update your integration’s records and retain an association with the original listing when you need lifecycle history.
Review the following before relisting:
- Quantity: explicitly check the quantity you intend to offer rather than assuming the ended listing’s quantity is appropriate.
- Product data and terms: many values carry over unless overridden. Follow the individual field descriptions for inheritance and clearing behavior.
- Format changes: changing the listing format can require additional field changes or removal of incompatible settings.
- Paid upgrades: inherited visual enhancements can incur listing fees. Review the returned fee estimates.
- Identity: use the ended listing’s ID, or a supported SKU identifier when SKU-based inventory tracking was enabled. Save the newly returned listing ID after execution.
- Idempotency: the original listing’s idempotency key does not carry over to a new relist operation. When supplying a relist key, allocate it for the new intended relist operation and follow the documented retry contract.
Use VALIDATE to check the proposed relist before execution. Handle a validation-success result separately from the result that actually creates the new listing. Relisting eligibility is subject to the operation’s business rules; an ended state alone should not be treated as a guarantee that every relist request will succeed.
Relisting items with the Inventory API
In the Inventory API, there are no actual “relist” methods, but instead, you will use the publishOffer method to move an offer from the unpublished to the published state.
Below is a logical flow to use to relist an item with the Inventory API:

- Before using the publishOffer method, you should use the getOffer method to see the current state of the offer and the getInventoryItem method to see the current state of the inventory item.
- According to the changes you want to make, either use the updateOffer method to make offer updates or the createOrReplaceInventoryItem method to make inventory item updates. If no changes are needed, you can proceed to the next step.
- Use the publishOffer method to relist the item.
Bulk relisting items with the Sell Feed API
The Sell Feed API lets sellers upload and download various feed files and reports. The two feed types used for bulk item relisting are LMS_RELIST_ITEM and LMS_RELIST_FIXED_PRICE_ITEM.
The flow diagram below provides a visual representation of how to relist multiple items using the Sell Feed API:

Relisting items with the Trading API
Recently ended listings can be relisted with the Trading API using RelistItem or RelistFixedPriceItem. RelistItem supports all listing types, but not multiple variations. As its name suggests, RelistFixedPriceItem only supports fixed price listings (single and multiple-variations).
Follow the process below to relist an item using RelistItem or RelistFixedPriceItem:
- Use a GetItem call to see the current settings/values for the listing.
- Identify the listing to relist using the ItemID field in the RelistItem or RelistFixedPriceItem call.
- Make any necessary modifications to the listing.
-
A successful RelistItem or RelistFixedPriceItem call should not trigger any errors or warnings. A successfully relisted item will get a new ItemID value returned in the response.
Retrieving listings
Retrieving eBay listings with APIs varies based on whether you use the Listing API, the Inventory API, the Sell Feed API, or the Trading API, so they will be covered individually below.
Retrieving listings using the Listing API
The GraphQL Listing API provides two queries for retrieving listings, depending on whether you already know which listings you want or need to search for them.
- sellerListings: retrieves a specific listing by listingId; with the initial release, only one listing can be requested per call, though the input accepts an array for future expansion. Use the optional itemsFilter to return just one item/SKU from an MSKU listing instead of all of its variations. This query only returns listings belonging to the authenticated seller, and returns a ListingIdsMaxLimitError if the limit is exceeded.
- sellerListingSearch: searches across a seller’s activeListings, endedListings, and scheduledListings, with filters such as startAtRange, endAtRange, modifiedAtRange, and primaryCategoryIds, plus pagination controls. Use this query to find listings by date range, category, or other criteria rather than by a known listing ID.
Both queries return a union response type, so the request must select the applicable success fragment (for example, ... on ListingsSuccess or ... on SellerListings) alongside any error fragments in order to correctly handle the response.
Retrieving listings using the Inventory API
When using the Inventory API, eBay listings are actually comprised of an inventory_item object and an offer object, with the inventory_item object describing details of the item/product, and the offer object describing all non-product, offer-related details such as price, category, quantity, listing details, and others.
- getInventoryItem: retrieves a specific inventory_item object, using its SKU value as a path parameter.
- getInventoryItems: retrieves all of a seller’s inventory_item objects across all eBay marketplaces. The response for this method can be quite large, so pagination control is available.
- bulkGetInventoryItem: retrieves up to 25 inventory_item objects, with the SKU values being specified in the request payload.
Retrieving listings using the Trading API
There are a few GET calls in the Trading API to retrieve eBay listings, with the main one being GetItem.
Ending listings
Ending eBay listings with APIs varies based on whether you use the Listing API, the Inventory API, the Sell Feed API, or the Trading API, so they will be covered individually below.
Ending listings using the Listing API
The endListing mutation of the GraphQL Listing API ends an active listing before its scheduled end date. Identify the listing with listingIdentifier (listingId or any item’s SKU) and supply an endListingReason value (such as NOT_AVAILABLE, ERROR_IN_PRICE, or END_ITEM_ON_ZERO_QUANTITY). This mutation works for both fixed-price and auction-format listings. Because listingIdentifier resolves to the listing as a whole rather than a single variation, ending a multiple-SKU (MSKU) listing — whether identified by its listingId or by any one item’s SKU — ends all variations in that listing in one call. If you identify the listing by SKU, the SKU must resolve to exactly one listing; use the listingId instead when the same SKU is used by more than one listing (see Identifying listings by SKU or listingId with the Listing API). A successful call returns EndListingSuccess with the full details of the ended listing; an invalid request returns EndListingValidationError with violation details.
Choose an end reason and confirm the intended scope
endListing applies to the entire listing. For a multiple-SKU listing, identifying the listing through one variation’s SKU still ends all variations. Do not use it to remove or reduce the quantity of only one variation.
Select the endListingReason that matches the seller’s intent and the listing’s circumstances. Some reasons have format-specific effects: for example, END_AUCTION_AND_SELL is intended to end an auction and sell to its current high bidder; it is not a generic cancellation reason. Review the enum reference and applicable auction restrictions before using it.
endListing does not expose options.operationMode; it has no VALIDATE option. Check the identifier and intended action before submitting the request, and inspect the returned success or validation-error result afterward.
Setting available quantity to zero and ending a listing are different workflows. Do not assume they have identical lifecycle effects. Use quantity updates for inventory changes and review the applicable out-of-stock behavior; use endListing when the intent is to end the whole listing.
Ending listings using the Inventory API
- The withdrawOffer method is used to end a single-variation eBay listing. If the operation is successful, the offer object remains, but just goes from the PUBLISHED state to the UNPUBLISHED state.
- The deleteOffer method will end a single-variation eBay listing and it will also delete the offer object associated with that listing.
- The deleteInventoryItem method will end a single-variation eBay listing and it will also delete the inventory item object and the offer object associated with that listing.
- The withdrawOfferByInventoryItemGroup method is used to end a multiple-variation eBay listing. The inventory_item_group object and all inventory item and offer objects in the group remain intact, but all offers just go from the PUBLISHED state to the UNPUBLISHED state.
- The deleteInventoryItemGroup method will end a multiple-variation eBay listing and also delete the inventory item group object, but the inventory item objects and the offer objects associated with that listing will remain intact other than the status of the offer objects going from the PUBLISHED state to the UNPUBLISHED state.
End and publish a single-SKU listing
Same offer, new listing
Use this flow when a seller wants to end a single-SKU listing and republish it — with or without updates to the inventory item or offer. The offerId is preserved throughout the flow, and publishOffer creates a new listing with a new listingId.
The flow diagram below provides a visual representation of how to end and publish a single-SKU listing using the Inventory API:

Here are the necessary steps:
- Call withdrawOffer with the offerId as the path parameter to end the active listing. After this call, the listing ends, the offer object moves from the PUBLISHED state to the UNPUBLISHED state, and the offerId is preserved.
- (Optional) If product-level details need to change (title, condition, description, images, or aspects), call createOrReplaceInventoryItem using the sku as the path parameter. This method performs a complete replacement — include all fields in the request payload, even those that are not changing.
- (Optional) If offer-level details need to change (price, quantity, policies, category, or listing description), call updateOffer with the offerId as the path parameter. This method performs a complete replacement — include all fields in the request payload, even those that are not changing.
- Call publishOffer with the offerId as the path parameter to create a new active eBay listing. After this call, the offer object moves from the UNPUBLISHED state to the PUBLISHED state, and a new listingId is returned in the response.
Important! Use withdrawOffer, not deleteOffer, when you plan to republish the same offer. The deleteOffer method permanently removes the offer object, so that offerId cannot be published again.
Note: The offerId stays the same through withdraw, update, and publish. publishOffer returns a new listingId. updateOffer replaces the whole offer object — send every field you want to keep, including fields that did not change.
End and publish a variation listing
Group offers, new listing
Use this flow when a seller wants to end a multiple-variation listing and republish it — with or without updates to the group or individual variation offers. All offerId values and the inventory item group are preserved throughout the flow.
The flow diagram below provides a visual representation of how to end and publish a variation listing using the Inventory API:

Here are the necessary steps:
- Call withdrawOfferByInventoryItemGroup to end the multiple-variation listing. Pass the inventoryItemGroupKey and marketplaceId in the request body. After this call, the variation listing ends, all offer objects move from the PUBLISHED state to the UNPUBLISHED state, and the inventory_item_group object and all offerId values are preserved.
- (Optional) To update the item group and/or variation, call createOrReplaceInventoryItemGroup using the inventoryItemGroupKey as the path parameter to change group-level details (such as common aspects or which SKUs belong to the variation), or call createOrReplaceInventoryItem using the sku as the path parameter to change product details for an individual variation. Both methods perform a complete replacement — include all fields in the request payload, even those that are not changing.
- (Optional) For each variation that needs offer-level changes, call updateOffer with that variation’s offerId. Repeat for each variation that requires updates. This method performs a complete replacement — include all fields, even those that are not changing.
- Call publishOfferByInventoryItemGroup to create a new multiple-variation listing. Pass the inventoryItemGroupKey and marketplaceId in the request body. After this call, all offer objects move from the UNPUBLISHED state to the PUBLISHED state, and a new listingId is returned in the response.
Note: The offerId for each variation stays the same through withdraw, update, and publish. publishOfferByInventoryItemGroup returns a new listingId. updateOffer replaces the whole offer object — send every field you want to keep, including fields that did not change.
Ending listings in bulk using Sell Feed API
The flow diagram below provides a visual representation of how to end multiple listings using the Sell Feed API:

Ending listings using the Trading API
An active listing can be ended with the Trading API using EndItem or EndFixedPriceItem, or up to 10 active listings can be ended with one EndItems call.
Managing images with the Media API
Sellers can upload images through the Media API image resource, which has methods to create images from files or from URLs, and to retrieve image details.
Image requirements
eBay Picture Services (EPS) supports the uploading of image data in the following formats: JPG, GIF, PNG, BMP, TIFF, AVIF, HEIC, and WEBP. Non-JPG format files (other than GIF and PNG, which retain their original format) are converted to JPG upon upload.
Create an image from a file
Create an image resource from a local file using the createImageFromFile method. This method does not use a JSON payload; instead, the image file is uploaded using multipart/form-data.
Create an image from a URL
Create an image resource from a self-hosted picture using the createImageFromUrl method, specifying the location of the picture on an external web server in the imageUrl field of the request payload.
Important! If either create image call is successful, a 201 Created HTTP status code is returned, along with a newly-created image ID URI value in the location response header (in the format https://apim.ebay.com/commerce/media/v1_beta/image/{image_id}). Capture the entire URI, or just the image_id value, as it is required to call the getImage method. The response payload of a successful create call also contains the imageUrl field and its expiration date — this is the actual EPS image URL used to add the image to a listing.
Retrieve image details
To retrieve a created image's details, including its expiration date, call the getImage method, passing in the image ID URI returned by createImageFromFile or createImageFromUrl.
Add images to a listing
Add the image to a listing using the createOrReplaceInventoryItem method of the Inventory API (in the product.imageUrls array), or using the Add/Revise/Relist calls of the Trading API in the Item.PictureDetails.PictureURL field.
Managing videos with the Media API
Sellers can upload videos and associate them with their listings using the Media API video resource, giving buyers a better view of an item's condition, features, and usage.
Create the video resource
Use the createVideo method to create a video resource, specifying the following metadata:
- title — text-only title of the video (required).
- size — the exact size of the video file in bytes; maximum allowed size is 150MB, or 157,286,400 bytes (required).
- classification — set to ITEM to indicate the video will be associated with a listing (required).
- description — optional, text-only description of the video.
A successful call returns 201 Created along with a video ID in the location response header. Store this value, as it is needed for the uploadVideo and getVideo methods, as well as to associate the video with a listing.
Upload the video
Upload the MP4 (MPEG-4 Part 10 / AVC) video file using the uploadVideo method, passing the video_id returned by createVideo in the URI. This method has no request payload — the video file is sent in binary format with a Content-Type header of application/octet-stream. The uploaded file size must exactly match the size value supplied in createVideo, or the upload will fail.
A successful upload returns 200 OK, after which the video enters processing. The status flow is PENDING_UPLOAD > PROCESSING > LIVE, PROCESSING_FAILED, or BLOCKED. The API supports resumable uploads using the Content-Range and Content-Length headers if an upload is interrupted.
Retrieve video details
Use the getVideo method, passing in the video_id, to track upload/processing status and retrieve metadata such as status, playList (streaming URLs once LIVE), and thumbnail.
Add videos to a listing
A video created with the Media API can be added to a listing using the videoIds field of the createOrReplaceInventoryItem method of the Inventory API, or using the Add/Revise/Relist calls of the Trading API with the Item.VideoDetails.VideoID field. A video can be attached to a listing before it reaches the LIVE state, but it will not be viewable until processing and moderation are complete. Currently, videos can only be viewed through the native iOS and Android apps.
Note: The videosByIds GraphQL operation can also be used to retrieve metadata (such as title, thumbnail, duration, and playback URLs) on a listing video.
Managing documents with the Media API
The Media API also supports uploading documents for listing attachments, such as user guides, product safety information, and other compliance-related documents (for example, GPSR requirements), as well as documents needed for post-order activities such as returns. This capability is split across the document resource (for listing/regulatory documents) and the post_order resource (for post-order activities).
Managing documents with the document resource
Create the document resource using the createDocument method, specifying the required documentType (a DocumentTypeEnum value, such as USER_GUIDE_OR_MANUAL or SAFETY_DATA_SHEET) and languages array. A successful call returns 201 Created, along with a documentId value in both the response payload and the location response header. Store this ID, as it is needed for the uploadDocument and getDocument methods, and to associate the document with a listing.
Upload the document file using the uploadDocument method, passing the document_id in the URI. Supported file types are .PDF, .JPEG/.JPG, and .PNG, up to 10MB (10,485,760 bytes).
Alternatively, use the createDocumentFromUrl method to download a document directly from a URL (provided in the documentUrl field) and add it to the seller's account in a single call, without needing createDocument or uploadDocument.
Use the getDocument method, passing in the document_id, to retrieve the document's current documentStatus and metadata. Note: A document must have the ACCEPTED status before it can be added to a listing.
Add a document to a listing using the regulatory.documents.documentId field of the createOffer method in the Inventory API, or using the Add/Revise/Relist calls of the Trading API with the Regulatory.Documents.Document.DocumentID field.
Managing documents with the post_order_document resource
The post_order resource supports uploading, downloading, and removing documents tied to post-order activities (such as returns). The initial supported use case allows sellers to upload a return shipping label (RETURN_SHIPPING_LABEL), which buyers can then download.
Use the uploadPostOrderDocument method, specifying the documentUsageType, entityType, and entityId, to upload a file (PDF, JPEG/JPG, PNG, BMP, or GIF, up to 5MB/5,242,880 bytes). A successful call creates a documentId, returned in the location response header, and the document's initial status is SUBMITTED. Publishing the document (linking it to the post-order entity so other parties can access it) requires a separate eBay GraphQL mutation; once published, the status becomes PUBLISHED.
Use the downloadPostOrderDocument method, passing the document_id, to download the file. The document must be in SUBMITTED or PUBLISHED status to be downloadable, and this access requires the commerce.post_order.document OAuth scope.
Use the removePostOrderDocument method to delete a previously submitted post-order document. Note that published documents cannot be deleted, and expired documents are no longer available.
Managing eBay Store and Store Categories
The Stores API lets sellers retrieve basic eBay Store information and manage their eBay Store category hierarchy. To use the Stores API, the seller must have an active eBay Store subscription, be opted in to Business Policies, and the call must be made with an OAuth token that includes the sell.stores scope. eBay Stores support up to three levels of categories.
Retrieve store and category information
Use the getStore method to retrieve basic information about a seller's eBay Store, such as store name, description, and store URL. Use the getStoreCategories method to retrieve the full eBay Store category hierarchy.
Add, rename, move, and delete store categories
Store categories can be managed with the following methods:
- addStoreCategory — adds a single new category. Specify the required categoryName (up to 35 characters, unique under the same parent) and, optionally, a destinationParentCategoryId (defaults to the root level if omitted).
- renameStoreCategory — renames a single category, specified by its category_id.
- moveStoreCategory — moves a single category to a different position/parent in the hierarchy.
- deleteStoreCategory — deletes a single category, specified by its category_id.
Note: addStoreCategory, renameStoreCategory, moveStoreCategory, and deleteStoreCategory are processed asynchronously. Each successful call returns a getStoreTask URI in the location response header. Call getStoreTask (for a single task) or getStoreTasks (for all recent tasks) to check the processing status of the operation.
Managing store categories with the Trading API
Store categories can also be managed with the Trading API. Use SetStoreCategories to add, rename, move, or delete one or more store categories in a single call (eBay Stores support up to 300 custom categories across three levels). Use GetStore to retrieve a seller's store information and custom category hierarchy, and GetStoreCategoryUpdateStatus to check the status of an asynchronous SetStoreCategories request.
Note: There is no API to create a new eBay Store — a seller must open their Store through the eBay website before any of the above category-management calls can be used.
Code Samples
Retrieve all inventory items defined in Inventory API
curl -X GET "https://api.ebay.com/sell/inventory/v1/inventory_item?limit=2&offset=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Retrieve all inventory locations defined in Inventory API
curl -X GET "https://api.ebay.com/sell/inventory/v1/location?limit=20&offset=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Error Handling
Interpret GraphQL and operation results separately
An HTTP-success response alone does not establish that a listing operation succeeded. Your client should inspect:
- Transport or HTTP failures, where an operation’s outcome may be unknown.
- Top-level GraphQL errors, which can accompany a null operation result or partial response data.
- The operation’s __typename and applicable success, validation-success, validation-error, or bulk failure fields.
- Nonblocking warnings alongside the result.
Use error and violation codes for programmatic handling and inputPath, where returned, to associate violations with input fields. Treat developer-facing error messages as diagnostic information rather than stable values for branching or text to display directly to end users.
Correct blocking business violations before retrying. Do not use one automatic retry policy for every failure. For requests with an ambiguous outcome, reconcile state and follow the operation’s idempotency guidance. Do not infer exactly-once behavior, retry windows, or rate limits from another eBay API.
- eBay has a policy where each active listing may only be revised up to 250 times per calendar day, so any API operation that attempts to revise a listing beyond that maximum threshold will fail. The user will need to wait until the next calendar day to make additional revisions.
- An active listing created using the Inventory API cannot be revised using Trading API Revise/Relist calls.
- When you identify a listing by SKU in a Listing API mutation such as updateListing, relistListing, or endListing, the SKU must resolve to exactly one listing. Listings that share a SKU, such as listings created with the Trading API or with inventoryTrackingBySku set to false, must be identified by their listingId. A new variation added to a multiple-SKU listing must have a SKU that is not used by another variation in that listing; otherwise the LSTNG_SKU_IN_USE violation is returned. See Identifying listings by SKU or listingId with the Listing API for details.
- JavaScript cannot be used in any seller-defined, text-based fields (such as item description) and will lead to an error.
- When using the Sell Feed API, the feed type specified through the feedType field of the createTask method should match the actual object types being uploaded through the uploadFile method.
- There are quite a few revision restrictions for auction listings. Some restrictions start as soon as the item has one or more active bids, and then more restrictions kick in once the auction listing has less than 12 hours before ending. Fixed priced listings also have some revision restrictions, including when the listing has open Best Offers. See the Revise a listing help topic for more information on these restrictions. An error will occur if a Revise call is attempted for a revision that is not allowed.
- Error 190203 is returned by the createImageFromFile or createImageFromUrl method of the Media API if the uploaded image file is in an unsupported format.
- The uploadVideo method of the Media API will fail if the uploaded file size does not exactly match the size value declared in the createVideo method. Check the status and statusMessage fields returned by getVideo for a value of PROCESSING_FAILED or BLOCKED before assuming an upload succeeded.
- The createDocument method of the Media API returns error 190050 if the languages array is missing or invalid, or error 190051 if the documentType value is missing or invalid. Only documents with an ACCEPTED documentStatus can be added to a listing.
- The downloadPostOrderDocument method can return error 190301 (invalid document identifier), 190302 (document has expired), or 190308 (document identifier missing from the request). Only documents with a status of SUBMITTED or PUBLISHED can be downloaded.
- All POST methods across the Media API’s image, video, document, and post_order resources are subject to a short-duration rate limit of 50 requests per 5 seconds at the user level; exceeding this threshold results in a throttling error.
- All Stores API calls require the seller to have an active eBay Store subscription and to be opted in to Business Policies; calls will fail for sellers that do not meet these requirements.
- The addStoreCategory method will return an error if the categoryName value exceeds 35 characters, duplicates another category name under the same parent, or uses a reserved term such as “Other”.
- The addStoreCategory, renameStoreCategory, moveStoreCategory, and deleteStoreCategory methods are processed asynchronously. Calling getStoreCategories immediately afterward may still return the pre-change category hierarchy until the task completes; always confirm completion with getStoreTask.
Best Practices
- Revising a listing generally does not incur eBay fees unless a fee-based option is added such as adding a subtitle or adding a Reserve Price to auction listings.
- As an alternative to using the Trading API sandbox environment, the VerifyRelistItem call can be used to test the validity of the item object in the production environment before that item is actually relisted. This call uses the same logic and validation as the RelistItem or RelistFixedPriceItem calls, but there is no risk of incurring any listing fees.
- For those using Inventory API, the bulkUpdatePriceQuantity is a nice alternative to bulkCreateOrReplaceInventoryItem or updateOffer when a user wants to update just the price and/or quantity for multiple listings.
- The getListingFees method in the Inventory API can be used against up to 250 unpublished offers to get the expected listing fees.
- Like the names imply, the createOrReplaceInventoryItem and bulkCreateOrReplaceInventoryItem methods will do a complete replacement of inventory item objects, so you must pass in all applicable fields even if the values of those fields are not changing.
- If you need to revise any active listing with a createOrReplaceInventoryItem or a bulkCreateOrReplaceInventoryItem method, you may want to consider using the bulkGetInventoryItem, getInventoryItems, or getInventoryItem methods to retrieve the current state of the inventory item object(s) and then modify as needed with createOrReplaceInventoryItem or bulkCreateOrReplaceInventoryItem methods.
- Consider using the withdrawOffer method to end an active listing instead of the deleteOffer method if there’s a chance that you’d want to publish the offer again at a later date. The deleteOffer method will end an active listing and it will delete the offer object associated with the listing.
- Use the withdrawOfferByInventoryItemGroup method to end a multiple-variation listing. The inventory item group object itself and each offer associated with each variation in the group is not affected by this action other than all offers going from the PUBLISHED state to the UNPUBLISHED state.
- For those using the Listing API, bulkUpdateInventory is a nice alternative to updateListing when a user wants to update just the price and/or quantity for up to four items in fixed-price listings. The limit counts item entries, not listings, and bulkUpdateInventory does not support options.operationMode.
- Unlike createOrReplaceInventoryItem, the Listing API’s updateListing mutation only requires the fields that are changing, so there is no need to retrieve and resend the full listing payload. Collection fields have specific replacement rules, so review the operation reference before updating them.
- The Listing API does not have separate “withdraw vs. delete” or “end-by-group” mutations like the Inventory API’s withdrawOffer, deleteOffer, and withdrawOfferByInventoryItemGroup methods: a single endListing call (against the listingId or any item’s SKU) ends the listing, including all variations in a multiple-SKU listing, and relistListing can be used afterward to bring a similar listing back if needed. The relisted listing has a new listingId. endListing does not support options.operationMode, so confirm the identifier and the intended scope before you submit the request.
Validate a request before executing it
createListing, updateListing, and relistListing support options.operationMode. Set it explicitly to VALIDATE to check a request without creating, updating, or relisting a live listing and without incurring listing fees from that operation. If the operation mode is omitted, the default is EXECUTE.
| Operation | Supports options.operationMode: VALIDATE |
|---|---|
| createListing | Yes |
| updateListing | Yes |
| relistListing | Yes |
| endListing | No |
| bulkUpdateInventory | No |
For supported operations:
- Send the request with options.operationMode set to VALIDATE.
- Inspect __typename, blocking violations, and nonblocking warnings. Correct blocking violations before submitting again.
- Select listingFees in the response if you need estimated listing fees. Treat these amounts as estimates.
- When you are ready to apply the operation, send the intended request with options.operationMode explicitly set to EXECUTE and inspect that response separately.
A validation-success response means the request passed validation; it does not mean a live listing was created or changed. Do not treat a listing object returned by validation as proof of publication. Validation is a preflight check, not a reservation of listing state or a replacement for testing your complete integration in Sandbox. State or applicable requirements can change before execution.
- Always capture the image ID, video ID, or document ID value returned in the location response header immediately after a successful createImageFromFile/createImageFromUrl, createVideo, or createDocument call — it is required for all subsequent get/upload/attach operations and is not easily recoverable otherwise.
- Reuse previously-uploaded, unexpired images and videos across listings instead of re-uploading the same file, to reduce API call volume and avoid unnecessary re-processing. Unused EPS image URLs are purged after 30 days, and videos expire 30 days after upload if not attached to an active listing.
- Confirm a video’s status is LIVE by calling getVideo before relying on it displaying in a listing; a video can be attached earlier, but it won’t be viewable until processing and moderation finish. Use the videosByIds GraphQL operation to retrieve metadata for multiple listing videos in a single call instead of making repeated getVideo calls.
- Poll getDocument (for the document resource) or the applicable status field of the post_order resource until the document reaches ACCEPTED or SUBMITTED/PUBLISHED status, rather than assuming a document is immediately available to attach to a listing or download.
- When updating several eBay Store categories at once, use the SetStoreCategories call of the Trading API, since each Stores API method (addStoreCategory, renameStoreCategory, moveStoreCategory, deleteStoreCategory) only operates on one category per call. Reserve the REST Stores API methods for lighter, single-category updates, and confirm completion using getStoreTask or getStoreTasks.