Skip to main content
Published: April 28 2008, 4:00:00 PMUpdated: August 08 2022, 6:10:16 AM

Question

If you send in undefined elements, depending on the WarningLevel in your request, you may see elements ignored or get warnings on your requests.

Answer

Assume you have WarningLevel set to High and you send in an AddItem request like this :

<Item>
<PrimaryCategory><CategoryID>14111</CategoryID>
</PrimaryCategory>
<Country>US</Country>
<Currency>USD</Currency>
<ListingDuration>Days_10</ListingDuration>
<Location>San Jose</Location>
<PaymentMethods>PaymentSeeDescription</PaymentMethods>
<Quantity>5</Quantity>
<RegionID>0</RegionID>
<StartPrice>9.99</StartPrice>
<ShippingTermsInDescription>True</ShippingTermsInDescription>
<Subtitle>Good deal</Subtitle>
<Title>Pez dispenser</Title>
<Description>An eBay original</Description>
</Item>

You will receive a warning like this :

<Errors>
<ShortMessage>Unrecognized element <Item.Subtitle> in request message.</ShortMessage>
<LongMessage>The element <Item.Subtitle> was found in the input request message. This is not a declared element in the schema and will be ignored.</LongMessage>

As the warning indicates, the <Subtitle> is not recognized (should be SubTitle with capital 'T') and will be ignored.

If you do not have the WarningLevel set to High, your Subtitle (sic) will be ignored and you won't see it in your listing.

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

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