I am using eBay API to revise a product on eBay that has variations of Size
and Colour
.
I have used the documentation to configure my XML file.
However the request returns below error message:
21919420: For multiple-variation listings, GTIN values are specified at the variation level. Please remove the GTIN value from the listing level and provide a GTIN value for each variation within the listing.
My Code:
<?xml version="1.0" encoding="utf-8"?>
<ReviseFixedPriceItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials><eBayAuthToken>'.USERTOKEN.'</eBayAuthToken></RequesterCredentials>
<WarningLevel>High</WarningLevel>
<Item>
<ItemID>'.$param['itemID'].'</ItemID>'.$xmlpriceandquantity.'
<Title>'.$itemTitle.'</Title>
<ProductListingDetails>
<BrandMPN>
<Brand> Navdari </Brand>
<MPN> 2016 </MPN>
</BrandMPN>
<EAN> ".$param['EAN']." </EAN>
</ProductListingDetails>
<Variations>
<Variation>
<SKU>".$stockdetail['id'].$stockdetail['itemref']."</SKU>
<StartPrice>".$stockdetail['price']."</StartPrice>
<Quantity>".$stockdetail['qty']."</Quantity>
<VariationProductListingDetails> <EAN>".$param['EAN']."</EAN> </VariationProductListingDetails>
<VariationSpecifics>
<NameValueList>
<Name>Size</Name>
<Value>".$stockdetail['size']."</Value>
</NameValueList>
<NameValueList>
<Name>Color</Name>
<Value>".$stockdetail['colour']."</Value>
</NameValueList>
</VariationSpecifics>
</Variation>
</Variations>
</Item>
</ReviseFixedPriceItemRequest>