Find the answer to your question
Advanced Search
For e.g. Women's Jeans now require Brand, Trouser Size, Style. My listings have Size as the variation. How do I update these listings to have the variation updated to Trouser Size?
You can pass Variation.Delete flag and set it to true in ReviseFixedPriceItem API call to delete a variation even if the variation still has quantity and/or has had one or more previous sales during the life of the listing
Below is the sample ReviseFixedPriceItem request xml snippet with new variations which have Variation as 'Trouser Size' and delete the existing variations with the old item specific (Size):
Variations container for original listing <Variations> <Variation> <SKU><![CDATA[4451___1]]></SKU> <StartPrice currencyID="GBP">49.99</StartPrice> <Quantity><![CDATA[10]]></Quantity> <VariationSpecifics> <NameValueList> <Name><![CDATA[Size]]></Name> <Value><![CDATA[30]]></Value> </NameValueList> </VariationSpecifics> </Variation> <Variation> <SKU><![CDATA[4451___2]]></SKU> <StartPrice currencyID="GBP">49.99</StartPrice> <Quantity><![CDATA[10]]></Quantity> <VariationSpecifics> <NameValueList> <Name><![CDATA[Size]]></Name> <Value><![CDATA[32]]></Value> </NameValueList> </VariationSpecifics> </Variation> <Variation> <SKU><![CDATA[4451___3]]></SKU> <StartPrice currencyID="GBP">49.99</StartPrice> <Quantity><![CDATA[10]]></Quantity> <VariationSpecifics> <NameValueList> <Name><![CDATA[Size]]></Name> <Value><![CDATA[34]]></Value> </NameValueList> </VariationSpecifics> </Variation> <VariationSpecificsSet> <NameValueList> <Name><![CDATA[Size]]></Name> <Value><![CDATA[30]]></Value> <Value><![CDATA[32]]></Value> <Value><![CDATA[34]]></Value> </NameValueList> </VariationSpecificsSet> </Variations> | Variations container for relist request |
Note: This example is for the UK Clothes, Shoes & Accessories > Men's Clothing > Jeans category
API Document: ReviseFixedPriceItem.html#Request.Item.Variations.Variation.Delete
How well did this answer your question?
Answers others found helpful
- Anatomy of a Multi-variations listing request
- Missing name in the variation specifics or variation specifics set
- Revising/Relisting multi-variation items
- Associating pictures with Variations
- ReviseItem: An error "Variations with quantity '0' will be removed" (ErrorCode 21916620) may be encountered when revising multi-variation items.