Skip to main content
Published: December 29 2011, 2:59:00 PMUpdated: November 28 2020, 10:10:49 PM

Why is the UPC is not showing in the ProductListingDetails in the GetItem response?

Summary

How come the UPC is not showing in the ProductListingDetails in the GetItem response



Detailed Description

The reason the UPC is not showing in the ProductListingDetails is because the UPC is not in our catalogs.  If our catalogs contain the UPC in question, when adding the item via the API or eBay.com, it will automatically pre fill the information you are looking for.  Example:

  <ProductListingDetails>
       <ProductID>118656:2:1049:4276817045:390427655:3f5acce195ccfcf94a20bffcb51bf332:1:1:1:5000000672452</ProductID>
       <IncludeStockPhotoURL>true</IncludeStockPhotoURL>
       <IncludePrefilledItemInformation>true</IncludePrefilledItemInformation>
       <UseStockPhotoURLAsGallery>true</UseStockPhotoURLAsGallery>
       <StockPhotoURL>http://i.ebayimg.com/00/$(KGrHqMOKooE6eVU7UV4BOuWWY5i!g~~_7.JPG?set_id=89040003C1</StockPhotoURL>
       <ProductReferenceID>110288225</ProductReferenceID>
       <UPC>883929140459</UPC>
  </ProductListingDetails>

If eBay does not contain the UPC in the catalogs, you can still list the item, and can specify the UPC, but that information will only show on the item page on ebay.com and not in the item information in an API response.  Since UPC is not one of the recommended names for categoires, you can't add UPC to the item specifics.  The only other way of getting UPC information into your API call is through the ApplicationData (if we do not have the UPC in our catalogs), http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/AddFixedPriceItem.html#Request.Item.ApplicationData.  This field can hold something like "UPC816387015359", and you can filter from there.  


Here are my recommended steps.

1.  Make a call to FindProducts
     Example:  http://open.api.ebay.com/shopping?callname=FindProducts&responseencoding=XML&appid=eBay91ab0-1ca5-4c29-bb60-73c82b8cec4&siteid=0&version=735&ProductID.Type=UPC&ProductID.Value=816387015359
2.  If the UPC is not in the eBay catalogs, make a call to addProducts
3.  At this point you can do 1 of 2 things, wait for the UPC to be added, or list without the UPC in the eBay catalogs.

*NOTE - Not all categories accept product creation.  Make sure to use GetCategoryFeatures and check if the category accepts products.  Here is a link for more detail Product Creation.



Additional Resources

GetItem: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetItem.html

Item.ProductListingDetails: developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetItem.html#Response.Item.ListingDetails.RelistedItemID

addProducts: http://developer.ebay.com/DevZone/product/CallRef/addProducts.html

FindProducts: http://developer.ebay.com/DevZone/shopping/docs/CallRef/FindProducts.html

How well did this answer your question?
Answers others found helpful