Tutorial

In this tutorial, you'll create a GQL client from which you can use Rye's Product API for adding external products to the Rye inventory and fetching product data from Rye inventory.

Requirements


Step 1: Initialize GQL client with your API key

Use your API Key to initialize authorization headers for your GQL client.


Step 2: Add external product to Rye inventory

Adding product data to inventory may take a few seconds, but the product id will be returned immediately. You can then use this product id to fetch product data in the next step.
You can also do this via the Rye Console.


Step 3: Fetch product data from Rye inventory

The product ID can be found in the response to the requestProduct mutation.



Next steps