Skip to main content
Published: August 31 2018, 5:46:00 PMUpdated: August 07 2022, 11:33:21 PM

I am getting <Ack>Failure<Ack> and an error returned for my AddItem call, but the VerifyAddItem call for the exact same item did not return an error.

Summary

There are a very small number of cases where the VerifyAddItem call will return <Ack>Success<Ack> but the exact same request in an AddItem call will return <Ack>Failure<Ack>.
In these cases, the AddItem call will return Errors, and the VerifyAddItem call will not return Errors.

However, in almost all of these cases, the VerifyAddItem call will return the same Message node that AddItem returns.
The Message node, as documented for both VerifyAddItem and AddItem is an HTML formatted message which provides clarification on the error that was generated.

The error generated for the AddItem call in these cases is usually the following error:

    <Errors>
         <ShortMessage>The item cannot be listed or modified.</ShortMessage>
         <LongMessage>The item cannot be listed or modified. The title and/or description may contain improper words, or the listing or seller may be breaching eBay policy.</LongMessage>
         <ErrorCode>240</ErrorCode>
         <SeverityCode>Error</SeverityCode>
         <ErrorClassification>RequestError</ErrorClassification>
    </Errors>

The difference between the VerifyAddItem call and the AddItem call in regards to this issue is that there are cases where this error is generated on AddItem, but not on VerifyAddItem.
However, the VerifyAddItem call will still return the Message node that further explains the error.
Here is an example of a VerifyAddItem call response returning a Success with a Message node:

    <?xml version="1.0" encoding="UTF-8" ?>
    <VerifyAddItemResponse xmlns="urn:ebay:apis:eBLBaseComponents">
         <Timestamp>2007-02-23T22:17:47.898Z</Timestamp>
         <Ack>Success</Ack>
         <Message><div> <table cellpadding="0" cellspacing="0" border="0" width="100%"> ... </Message>
         <Version>499</Version>
         <Build>e499_intl_Bundled_4251650_R1</Build>
         <ItemID>0</ItemID>
         <Fees>
              <Fee>
                   <Name>AuctionLengthFee</Name>
                   <Fee currencyID="USD">0.0</Fee>
              </Fee>
              ...
         </Fees>
         ...
    </VerifyAddItemResponse>

The full HTML content for an example Message node can be found in the Message.html attachment.
It is not possible in all cases to return an Error in VerifyAddItem even when the Message node is returned.

The best practice recommendation is to do the following:

In the VerifyAddItem call, please always check for the existence of a Message node, even if <Ack>Success</Ack> is returned with no Errors.
If a Message node does exist, please show this Message to the seller, and let the seller know that for this listing attempt, there was a message from eBay which may cause the actual listing attempt to fail.

Please note that this recommendation is a "defensive programming" best effort, and effectively gives the seller the same notice regardless of the underlying issue.
This will provide the same user experience and information as if the VerifyAddItem call had returned with a Failure ... which in the end is what any selling application attempts to achieve.



Additional Resources

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

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