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.
- You have created a Rye Developer Account.
- You have access to your API key (Follow these steps if not).
Step 1: Initialize GQL client with your API key
Use your API Key to initialize authorization headers for your GQL client.
Initialize GQL client with your API Key
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.
Add external product to Rye inventory
Step 3: Fetch product data from Rye inventory
The product ID can be found in the response to the
Fetch product data from Rye inventory
- Check out the documentation to start using the Product API
- Run queries on the GraphQL on either of the following playgrounds:
Ensure you have the HTTP headers set
Before testing on https://docs.rye.com/graphql, you will need the correct HTTP headers. Check this guide here on how to get them.
Updated 4 days ago