To use Shopify's REST Admin API, you'll need to add a Shopify access token as a secret in Mavenoid. The API scope set during token generation will define what resources Mavenoid can interact with.
Create a custom Shopify app.
Follow Shopify's guide Custom apps to create and install a custom app.
Select API scopes
Unsure which API scopes you need? Consult your Shopify admin or Mavenoid representative. For example, to retrieve order information, the required scope is read_orders
.
Get the access token
After selecting the scopes, install the app to generate the access token.
Add the access token as a secret in Mavenoid
Follow our guide on adding Secrets to Mavenoid.
Use the Call External API or Custom JavaScript action to interact with Shopify's REST APIs. Include the access token in the header as X-Shopify-Access-Token
and reference the secret as {{$secrets["Shopify Admin API Token"]}}
.
For more guidance, check out the Shopify template.