Mutations
requestAmazonProductByURL
Requests an Amazon product to be tracked by Rye’s API. Products will be refreshed on some interval. A product must be requested before it can be queried.
Arguments
An object containing the product’s URL.
Returns
The productId
is the unique identifier for the requested product, which can be used in subsequent queries to fetch product information, e.g. with productByID
.
Example
Errors
Invalid URL
If the provided URL is not a valid Amazon product URL then the following error is returned
JSON
Product data not found
If the product data can’t be found, a PRODUCT_NOT_FOUND_ERROR
is returned. This can happen for a variety of reasons:
- The URL doesn’t point to a valid product page (for example, the provided URL returns a 404 status code)
JSON
Webhooks
Calling this mutation will subscribe your developer account to product webhooks for the requested product.
Related mutations
Was this page helpful?