Developers Program

Error 515 The quantity you submitted is invalid

Published: November 06 2006, 1:12:00 PMยทUpdated: July 31 2022, 8:33:44 PM

Products

Question

When set Item.Quantity 2 in AddItem, I am getting request error: The quantity you submitted is invalid. One possible cause can be bad format.

Answer

Summary

Error 515 is usually returned in AddItem, RelistItem and ReviseItem. The error indicates you have explicitly specified the Item.ListingType to Chinese auction and your Item.Quantity is not valid. The Chinese Auction is a single-quantity online auction format. The only allowed value for the Item.Quantity property is 1 for Chinese auction.

The request that triggers the error 515 :
<?xml version="1.0" encoding="utf-8"?>
<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>apitest21</eBayAuthToken>
</RequesterCredentials>
<WarningLevel>High</WarningLevel>
<Item>
<CategoryMappingAllowed>true</CategoryMappingAllowed>
<Country>US</Country>
<Currency>USD</Currency>
<Description>Chinese auction sample with Buy It Now and PayPal.</Description>
<ListingDuration>Days_7</ListingDuration>
<ListingType>Chinese</ListingType>
<Location>San Jose, CA</Location>
<PaymentMethods>AmEx</PaymentMethods>
<PrimaryCategory>
<CategoryID>307</CategoryID>
</PrimaryCategory>
<Quantity>2</Quantity>
<Site>US</Site>
<StartPrice currencyID="USD">1.00</StartPrice>
<Title>Pink Side of the Moon</Title>
</Item>
</AddItemRequest>

If you like to list multiple-quantity online auction, you can use the Dutch listing type.

Additional Resources

Documentation: Listing Types

Additional Comments
How well did this answer your question?