2012

Table Of Contents
Sandbox User Guide April 2012 49
Testing Error Conditions
API Testing
7
The request invokes the following response:
Timestamp =2011-06-13T16:13:07Z& Ack =Failure& CorrelationID
=bacbc41933f33& Errors ="urn:ebay:apis:eBLBaseComponents"&
ShortMessage=Buyer cannot pay.& LongMessage=Transaction rejected, please
contact the buyer.& ErrorCode=10606& SeverityCode=Error&
Negative Testing Using a Non-Amount Trigger Field
Consider an example that sets up testing for error 10603 for DoVoid, in which the error code
is specified in the AUTHORIZATIONID field:
METHOD=DoVoid& AUTHORIZATIONID=10603&
VERSION=2.4&
USER=username&
PWD=password&
SIGNATURE=signature
The request invokes the following response:
TIMESTAMP=2007%2d04%2d04T03%3a10%3a22Z&
CORRELATIONID=51b0c5054dee6& ACK=Failure& L_ERRORCODE0=10603&
L_SHORTMESSAGE0=The%20buyer%20is%20restricted%2e&
L_LONGMESSAGE0=The%20buyer%20account%20is%20restricted%2e&
L_SEVERITYCODE0=Error
&VERSION=2%2e400000&
BUILD=1%2e0006
Negative Testing With Multiple Messages
Consider an example that sets up testing for error 10009 for RefundTransaction, which
returns 14 possible error message sets:
METHOD=RefundTransaction&
TRANSACTIONID=asdf&
REFUNDTYPE=Partial& AMT=100.09&
VERSION=2.4&
USER=username&
PWD=password&
SIGNATURE=signature
The request invokes the following response: