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"
}
}
]}
227sparts
2 comments
shipscript
https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/product_compatibility/methods/createOrReplaceProductCompatibility
The example looks like this:
What happens if you put them all into one container:
227sparts
OPThanks. 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.