The following is an HTML implementation of the
PurchaseURL
.
<form name=”Proceed to Checkout” method=”post”
action=https://www.amazon.com/gp/cart/aws-merge.html?cart-id=002-9918938-
1696046%26associate-id=[Your ID]%26hmac=b0ogzvivVYLXjSZ9WwoBRFesFYU=%26AWSAc
cessKeyId=[Access Key ID]>
<input type="submit" name="Proceed to Purchase"
value="
PurchaseURL
Purchase" >
</form>
Handling Errors and Troubleshooting
Applications
Topics
•
Syntax and Parameter Errors (p. 149)
•
Retrieving Errors (p. 151)
•
Troubleshooting Applications (p. 151)
•
Error Codes and Messages (p. 152)
Product Advertising API provides specific and descriptive errors to help you troubleshoot problems with
your requests. There are two kinds of errors, as explained in the following sections.
Syntax and Parameter Errors
Topics
•
Processing Error (p. 150)
•
Results and Errors (p. 151)
All responses contain an
IsValid
element, for example:
<IsValid>False</IsValid>
The
IsValid
element tells you whether or not there is an error in the syntax of any elements of the
request and if all required parameters are included.. For example, if you were to omit the
Operation
parameter, which is required in every request, Product Advertising API would set
IsValid
to False and
not process your request. Typically, these kinds of errors are a little more subtle. Typical errors are
incorrectly capitalized parameters or values, or the failure to include a required parameter in the request.
For example, in the following request, the
SearchIndex
parameter is entered as "Searchindex."
http://webservices.amazon.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=
[AWS Access Key ID]
&
Operation=ItemSearch&
Keywords=Potter&
Searchindex=Books
API Version 2011-08-01
149
Product Advertising API Developer Guide
Handling Errors and Troubleshooting Applications