You can connect to Shopify and make it available as a resource in Retool. Once complete, your users can write queries that interact with Shopify data using GraphQL. Shopify also offers a REST API, which you can also connect to Retool as a resource.
Requirements
All users for Retool organizations on Free or Team plans have global Edit permissions and can add, edit, and remove resources. If your organization manages user permissions for resources, you must be a member of a group with Edit all permissions.
To create a Shopify resource, you also need:
- A custom Shopify app.
- An API access token for your Shopify app.
1. Create a new resource
Retool can connect to almost any API or database, and has built-in integrations for popular data sources. Sign in to your Retool organization and create a new GraphQL resource from the Resources tab.
2. Configure the resource
Provide the necessary details to configure the resource so Retool can connect to Shopify. Not all settings are required but refer to the Shopify documentation to learn what is needed.
General
These settings configure the name and location of the resource within Retool.
Name
The name to use for the resource (e.g., Shopify).
Folder
The folder in which to save the resource.
Description
A brief description of the resource (e.g., Order data).
Credentials
These settings configure how Retool connects to Shopify.
Base URL
The base URL for the Shopify API. This must be an absolute URL. Use https://{shop}.myshopify.com/admin/api/2023-04/graphql.json
.
Headers
Key-value pairs to include as headers with Shopify API requests. Shopify uses your API access token as a header. Include the following key-value pair:
Key | Value |
---|---|
X-Shopify-Access-Token | your-access-token |
3. Save the resource
Click Create resource to complete the setup. You can then click either Create an app to immediately start building a Retool app or Back to resources to return to the list of resources.
Wrap up
Your Shopify resource is now ready to use. See the guide to querying Shopify to learn how to interact with your Shopify data.