Need a working example of AddFixedPriceItem using 1 varation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2023 04:31 AM
I've been working for a few days on VB code to use AddFixedPriceItem with one variation (for instance, "Card") and two variants (for instance "Card 1" and "Card 2". Does anybody have an example of working code to do this? I can't seem to get the right combination of values.
Need a working example of AddFixedPriceItem using 1 varation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2023 09:19 AM - edited ‎05-01-2023 09:21 AM
I can give you an XML example and a spreadsheet example, but not a VB example.
This example is for trading cards where there will be only one variation droplist in the listing.
We will call that list "Card#" (since "Card", "Card Name", and "Card Number" are reserved terms and are not allowed). I have eliminated the sections within the Variation container that are not relevant to trading cards.
The reference page from the Trading API is:
https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/AddFixedPriceItem.html
(caveat - I have not actually used this method.)
<Variations>
<Pictures>
<VariationSpecificName> Card# </VariationSpecificName>
<VariationSpecificPictureSet>
<PictureURL> https://myhost.com/1/front.jpg </PictureURL>
<PictureURL> https://myhost.com/1/back.jpg </PictureURL>
<VariationSpecificValue> Mickey Mouse </VariationSpecificValue>
</VariationSpecificPictureSet>
<VariationSpecificPictureSet>
<PictureURL> https://myhost.com/2/front.jpg </PictureURL>
<PictureURL> https://myhost.com/2/back.jpg </PictureURL>
<VariationSpecificValue> Donald Duck </VariationSpecificValue>
</VariationSpecificPictureSet>
<VariationSpecificPictureSet>
<PictureURL> https://myhost.com/3/front.jpg </PictureURL>
<PictureURL> https://myhost.com/3/back.jpg </PictureURL>
<VariationSpecificValue> Popeye Sailor </VariationSpecificValue>
</VariationSpecificPictureSet>
</Pictures>
<Variation>
<Quantity> 1 </Quantity>
<SKU> box 1 </SKU>
<StartPrice> 1.99 </StartPrice>
<VariationSpecifics>
<NameValueList>
<Name> Card# </Name>
<Value> Mickey Mouse </Value>
</NameValueList>
</VariationSpecifics>
</Variation>
<Variation>
<Quantity> 1 </Quantity>
<SKU> box 2 </SKU>
<StartPrice> 2.99 </StartPrice>
<VariationSpecifics>
<NameValueList>
<Name> Card# </Name>
<Value> Donald Duck </Value>
</NameValueList>
</VariationSpecifics>
</Variation>
<Variation>
<Quantity> 1 </Quantity>
<SKU> box 3 </SKU>
<StartPrice> 3.99 </StartPrice>
<VariationSpecifics>
<NameValueList>
<Name> Card# </Name>
<Value> Popeye Sailor </Value>
</NameValueList>
</VariationSpecifics>
</Variation>
<VariationSpecificsSet>
<NameValueList>
<Name> Card# </Name>
<Value> Mickey Mouse </Value>
<Value> Donald Duck </Value>
<Value> Popeye Sailor </Value>
</NameValueList>
</VariationSpecificsSet>
</Variations>
Below is what these fields would look like if uploaded as a spreadsheet through File Exchange in Seller Hub. The VariationSpecificsSet at the end of the XML above is equivalent to Relationship Details in the parent record in the spreadsheet below. It is a summary of all variation values:
Action | Relationship | Relationship Details | Custom Label | Quantity | Start Price | PicURL |
Add | Card#=Mickey Mouse;Donald Duck;Popeye Sailor |
| https://myhost.com/main-image-grouped-together.jpg | |||
Variation | Card#=Mickey Mouse | box 1 | 1 | 1.99 | Mickey Mouse=https://myhost.com/1/front.jpg|https://myhost.com/1/back.jpg | |
Variation | Card#=Donald Duck | box 2 | 1 | 2.99 | Donald Duck=https://myhost.com/2/front.jpg|https://myhost.com/2/back.jpg | |
Variation | Card#=Popeye Sailor | box 3 | 1 | 3.99 | Popeye Sailor=https://myhost.com/3/front.jpg|https://myhost.com/3/back.jpg |
The pictures (PicURL) and item details for the parent record are in other areas of the XML.
Need a working example of AddFixedPriceItem using 1 varation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2023 06:43 AM
Please go through the guide "Configuring Variations for a Listing" for detailed information about listing the item with variations.
Also, please have look on the KB article for the Listing flow for items with variations here.
eBay Developer Support
Need a working example of AddFixedPriceItem using 1 varation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2025 12:55 AM
Hey @shipscript , do you have any updates to this XML with the 2023 condition requirements for Trading Cards / CCGs? I am trying to create a CCG listing with two variations.
I am using ConditionID of 4000, but don't know where to specify the "Card Condition" codes. I've tried doing it once inside of ItemSpecifics, and also per variation inside of VariationSpecifics and VariationItemSpecifics, but keep getting the "Card Condition (40001) is a required field." error when posting to the AddFixedPriceItem endpoint.
I'm trying to specify the "Card Condition" codes with the XML below, in those places I mentioned
