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
- 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.
1️⃣
Initialize GQL client with your API Key
Open Recipe
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.
2️⃣
Add external product to Rye inventory
Open Recipe
Step 3: Fetch product data from Rye inventory
The product ID can be found in the response to the requestProduct
mutation.
3️⃣
Fetch product data from Rye inventory
Open Recipe
Next steps
- Check out the documentation to start using the Product API
- Run queries on the GraphQL on either of the following playgrounds:
- https://docs.rye.com/graphql
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.
- https://console.rye.com/graphql
- https://docs.rye.com/graphql
Updated 3 months ago