| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Amazon FPS error results provide information about syntax errors in your requests, as well as errors that occur during the execution of your request (for example, a search that returns no results). Errors are returned only in response to REST requests. For SOAP requests, an error results in a SOAP fault.
In the Amazon FPS API Reference, each action description contains the list of errors that can be returned. For a list of all errors, see Errors.
If the original request to Amazon FPS used REST, in the case of an error, Amazon FPS returns an XML error response similar to the following. Errors consist of two elements: code and message.
Response : <?xml version="1.0" encoding="UTF-8"?>
<Response>
<Errors>
<Error>
<Code>InvalidTokenId_Sender</Code>
<Message>Sender token is not valid.</Message>
</Error>
</Errors>
<RequestID>67679d8a-fd87-4e44-b063-32a69bfc3c8b</RequestID>
</Response>
Response Code: 400>The error code is a unique string that identifies the error; the error message is a human-readable description of the error. These elements are nested within an Error element. If a request generates more than one error, only the first error is reported.
Response codes are more generic errors of which the error code is a subset. For more information, see Response Codes.
If the original request to Amazon FPS used SOAP, in the case of an error, Amazon FPS returns a SOAP fault similar to the following.
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:aws="http://webservices.amazon.com/AWSFault/2005-15-09">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>aws:Client.IncompatibleTokens</faultcode>
<faultstring>The transaction could not be completed because the tokens
have incompatible payment instructions:
Assertion Failed for Recipient</faultstring>
<detail>
<aws:RequestId xmlns:aws="http://webservices.amazon.com/AWSFault/2005-15-09">
ad56d51c-b1df-4b15-95ca-9f71c2c65eea
</aws:RequestId>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>The elements faultcode and faultstring are the SOAP equivalents of the REST elements Code and Message, respectively.
Amazon FPS returns response codes in three categories so that you can easily determine how best to handle a problem:
2XX—Errors caused by mistakes in the request. For example, your request might be missing a required parameter. The error message in the response gives a clear indication of what is wrong.
4XX—Errors that are transient
These errors do not indicate a problem with Amazon FPS. So, upon receiving this error, resubmit the request.
5XX—Errors that are nontransient
These errors reflect problems with the underlying Amazon FPS web service. You will have to wait until the web service is functioning before resubmitting the request.
Amazon FPS returns a status code for each of the Co-Branded service requests you make. You can receive success and failure status codes for your requests. The status codes for each of the Co-Branded service APIs are listed in the respective topics in this guide. If you receive a caller exception (CE) or system error (SE) status code, you must handle them as described here.
A caller exception (CE) error code indicates that your Co-Branded service code has an error. We assume that you will encounter any caller exceptions when you test your Co-Branded service integration (before you go live). Therefore, when a caller exception occurs, Amazon FPS displays an error message on the user interface describing the problem. If you click the provided Continue button, the CBUI returns you (as the test buyer) to your website (the return URL) and passes the caller exception error in the URI. You must fix the code that manages the requests to avoid receiving the error again.
|
Error Message |
Description |
|---|---|
|
|
The request parameters in the error message are not specified as mentioned in the request parameter description of the pipeline. |
|
|
The input parameters in the error messages are either incorrect or have not been specified in the request. |
|
|
The input parameters mentioned in the error messages should not be included for this pipeline. Please view the list of correct input parameters from the respective topic. |
A system error (SE) indicates that your Co-Branded service request has temporally failed in Amazon FPS. You can retry the request again.