cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API and vehicle compatibility

I'm trying to use createOrReplaceProductCompatibility to add vehicle fitment compatibility against a listing but when I enter an array, only the last value is being added against the listing. Can anyone see what I'm doing wrong? An example of the call is shown below. It works but only the last fitment 17779 will be stored.

 

{
"compatibleProducts": [
{
"productIdentifier": {
"ktype": "12753"
},
"productIdentifier": {
"ktype": "15891"
},
"productIdentifier": {
"ktype": "133166"
},
"productIdentifier": {
"ktype": "17779"
}
}
]}

Message 1 of 3
latest reply
2 REPLIES 2

API and vehicle compatibility

https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/product_compatibility/me...

 

The example looks like this:

"productIdentifier" :
{ /* ProductIdentifier */
"epid" : "string",
"gtin" : "string",
"ktype" : "string"
}

 

What happens if you put them all into one container:

"productIdentifier": {
"ktype": "12753",
"ktype": "15891",
"ktype": "133166",
"ktype": "17779"
}

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 3
latest reply

API and vehicle compatibility

Thanks. It gives a 201 result but changes nothing on the listing. I had tried this but in the description further down that page, it does show each vehicle details split within the array container.

 

{
"compatibleProducts":[
   { "productFamilyProperties":{
       "make": "Subaru",
       "model": "DL",
       "year": "1982",
       "trim": "Base Wagon 4-Door",
       "engine": "1.8L 1781CC H4 GAS SOHC Naturally Aspirated"
       },
      "notes" : "Equivalent to AC Delco Alternator"
   },
   { "productFamilyProperties":{
       "make": "Subaru",
       "model": "GL",
       "year": "1983",
       "trim": "Base Wagon 4-Door",
       "engine": "1.8L 1781CC H4 GAS OHV Turbocharged"
       },
     "notes" : "Equivalent to AC Delco Alternator"
   },
   { "productFamilyProperties":{
       "make": "Subaru",
       "model": "DL",
       "year": "1985",
       "trim": "Base Wagon 4-Door",
       "engine": "1.8L 1781CC H4 GAS SOHC Naturally Aspirated"
       },
     "notes" : "Equivalent to AC Delco Alternator"
   },
   { "productFamilyProperties":{
       "make": "Subaru",
       "model": "GL",
       "year": "1986",
       "trim": "Base Wagon 4-Door",
       "engine": "1.8L 1781CC H4 GAS OHV Naturally Aspirated"
       },
     "notes" : "Equivalent to AC Delco Alternator"
   }
  ]
}

 

 

Message 3 of 3
latest reply