Whether you represent a merchant who has many items on eBay, or whether you are uploading inventory for the first time, you will eventually need to upload item data, revise item data, and download status or reports about your listings. This topic explains how to use the Sell Feed API with LMS feed types including upload flows, including how to create a data file to upload items and tracking inventory by SKU, and download flows.
Uploading Trading API-related files allow sellers to add, revise, relist, verify, or end listings in bulk. See the Inventory upload feed types flow for this use.
Additionally, you can upload a file to:
Acknowledge that an order, or orders, has been received and remove the order from the order report (
Remove a single order line item from a multiple line item order (
Specify the shipment tracking information associated with one package of an order, or to mark an order as paid or shipped (
See the Fulfillment upload feed types flow for these uses.
When using the Sell Feed API with LMS feed types in this flow, prepare all objects within the same XML-based data file, and then upload the file using the uploadFile method. In this way, you can create, modify, or end listings in bulk, acknowledge order or order line items in bulk, or provide shipment tracking information in bulk.
Create the data file
The following steps outlines creation of the data file. For additional information, see the topic titled XML data files overview.
Create an XML data file that includes the XML declaration.
Add opening and closing tags for the BulkDataExchangeRequests root node.
Important! long text/string values. Pretty-printing is one way of inserting the necessary line breaks to prevent excessive line lengths. There are many utilities or code libraries that support pretty-printing XML. After adding the needed line breaks, resubmit the failed uploadFile request.
Important! Upload feed types that you can use are contained in Inventory upload feed types and Fulfillment upload feed types. You can use one or more instances of only one type of call in each file you upload. For instance, you cannot use the same file to add some items (using AddFixedPriceItem calls) and revise some items (using ReviseFixedPriceItem calls) in the same file. The Example data file call code snippet shows the format of a request to revise inventory using a XML data file with the ReviseInventoryStatusRequest feed type.
Make sure the input XML file is in the correct format. See XML data files overview for more information. The following example illustrates a ReviseInventoryStatusRequest data file with two request objects:
<?xml version="1.0" encoding="UTF-8"?>
<!-- ... More ReviseInventoryStatusRequest nodes here ... -->
Refer to the Inventory upload feed types or the Fulfillment upload feed types for Feed Types API calls and the associated inputs and outputs for each. There is a Merchant Data XSD file that can be used to validate your data file payloads or to stub out code. See Data file schema for more information.
Using other APIs to complete your selling solution
When preparing your data file, you may need to make API calls outside of the Sell Feed API. For example, you may need to use the Trading GeteBayDetails call to determine the available shipping methods, or the Taxonomy API to determine the category ID and aspects of items you are adding using a data file.
AddItem call family
Since AddFixedPriceItem, ReviseFixedPriceItem, and RelistFixedPriceItem requests, as well as AddItem, ReviseItem, and RelistItem requests, are based on the eBay Trading APIs. You may want to make some of these Trading API calls using the API Explorer on the eBay Developer Program website, especially if you are not familiar with these calls. This allows you to get more familiar with the request and response data for the calls. You can make all calls in the Inventory upload feed types flow using the API Explorer. See Use the API Explorer to try out APIs for more information.