Skip to main content
Published: February 13 2007, 11:16:00 AMUpdated: August 02 2022, 10:16:48 AM

Why am I getting the following error when I try to list an item using AddItem?


    <ShortMessage>Invalid quantity.</ShortMessage>

    <LongMessage>The quantity you submitted is invalid. One possible cause can be bad format.</LongMessage>






If you do not set the ListingType correctly, you are likely to get this error.  When you try to list a multi-quantity auction item, you need to set the ListingType to Dutch.  For single Quantity, it needs to be Chinese.  If you do not specify the ListingType for auction items, it will automatically set it appropriately, depending on the quantity.

Detailed Description

Here is a sample AddItem request that will return error 515, because the ListingType is set to Chinese and the Quantity is more than 1:

<?xml version="1.0" encoding="utf-8"?>

<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">








    <Location>San Jose, CA</Location>













To correct the error, you need to set the ListingType to Dutch.

Version Info

The code example above was based on the versions specified below:

API Schema Version 495

Additional Resources

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

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