Skip to main content
Published: February 15 2011, 6:13:00 PMUpdated: November 28 2020, 9:14:21 PM


  I am getting an error for my Product API JSON request as below:

{
  "jsonns.tns":"http://www.ebay.com/marketplace/marketplacecatalog/v1/services",
  "tns.getProductCompatibilities":
    {"productIdentifier":
      {"ePID":"74272686"
      }
    }
}

  What is the issue and how to fix it?

productIdentifier, the ProductIdentifierTypes is an array with ePID, MementoString, ISBN, UPC, EAN, Brand_MPN type as elements. and should be defined inside the [] as below

 {"jsonns.xsi":"http://www.w3.org/2001/XMLSchema-instance",
"jsonns.xs":"http://www.w3.org/2001/XMLSchema",
"jsonns.tns":"http://www.ebay.com/marketplace/marketplacecatalog/v1/services",
   "getProductCompatibilitiesRequest":  
      {"productIdentifier":      
         [        
           {"ePID":"74272686"},
           {"ePID":"74259549"}
         ]      
      }  
}

 

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