Skip to main content
Published: February 11 2010, 5:48:00 PMUpdated: September 06 2022, 8:40:20 AM

What calls should I use to revise price / quantity for items with variations?

Detailed Description

Here is an example that will help with understanding what calls need to be made for variations depending on their state:

Assumptions:
1. Item listed with variation1, variation2 and variation3
2. variation1 has a sale while variation2 and variation3 do not have any sale 

Now let's assume you need to set the quantity to 0 for all of the variations one after another since they get out of stock
 

VariationRequirementActionEffectAction for restocking
variation1Need to set the quantity to 0When there is a SALE in the variation and using ReviseInventoryStatus to set the quantity to 0Variation will remain in the listing and will appear as out of stock on the view item page i.e. buyers will not be able to select the variation for purchaseUse ReviseInventoryStatus and set the quantity
variation2Need to set the quantity to 0When there is NO SALE in the variation and using ReviseInventoryStatus to set the quantity to 0Variation will be deleted from the listing since it does not have any sale and will not appear on the view item page.Use ReviseFixedPriceItem and add the variation
variation3Need to set the quantity to 0(all other variations quantity is already 0)Use EndFixedPriceItem.
Since variation3 is the only variation with a quantity > 0 at this point, you cannot use ReviseInventoryStatus
Item will endUse RelistFixedPriceItem to relist the item with the required variations
 

 Additional Information

Multi-varition listings

 

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

Got thoughts? Click the feedback button – your insights help us improve!