Skip to content

Reference

Shopify

Connect Shopify to Alter Vault for secure API access

Use a Shopify Admin API access token to make authenticated Admin API calls through Alter Vault without exposing the token in code.

PropertyValue
Provider IDshopify
CategoryE-commerce
Credential TypeAPI Key

Open the custom app in the Shopify admin

In the Shopify admin go to Settings > Apps and sales channels > Develop apps and open the existing custom app. Shopify’s legacy custom app guide covers these apps.

Copy the Admin API access token

On the API credentials tab, copy the Admin API access token (starts with shpat_). It is shown once, at install time; if it was not saved, uninstall and reinstall the app to get a new one.

Note the store subdomain

Note the store subdomain (for example your-store from your-store.myshopify.com).

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Shopify

Go to Managed Secrets > Add Provider > Shopify.

Enter credentials

Paste your Admin API Access Token into the credential field, and enter your store subdomain (e.g. your-store) in the Store Subdomain field.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.GET,
"https://your-store.myshopify.com/admin/api/YOUR_API_VERSION/products.json",
grant_id="YOUR_GRANT_ID",
)

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
orders/canceladmin, delete, paymentPOST/admin/api/{api_version}/orders/{order_id}/cancel.json
orders/createadmin, paymentPOST/admin/api/{api_version}/orders.json
customers/createadmin, writePOST/admin/api/{api_version}/customers.json
graphqladmin, delete, payment, read, send, writePOST/admin/api/{api_version}/graphql.json
products/createadmin, writePOST/admin/api/{api_version}/products.json
webhooks/createadmin, writePOST/admin/api/{api_version}/webhooks.json
customers/listreadGET/admin/api/{api_version}/customers.json
customers/searchreadGET/admin/api/{api_version}/customers/search.json
inventory_levels/listreadGET/admin/api/{api_version}/inventory_levels.json
orders/listreadGET/admin/api/{api_version}/orders.json
products/countreadGET/admin/api/{api_version}/products/count.json
products/listreadGET/admin/api/{api_version}/products.json
shop/getreadGET/admin/api/{api_version}/shop.json
variants/listreadGET/admin/api/{api_version}/products/{product_id}/variants.json
webhooks/listreadGET/admin/api/{api_version}/webhooks.json

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.