Building custom Shopify functions in 2026 requires more sophistication than ever before. Whether you're developing custom manual order processing workflows, payment customizations, or product recommendations, you'll need a properly configured Shopify access token with the right permissions. This comprehensive guide walks you through obtaining and configuring your access token specifically for creating Shopify functions with custom manual controls.
When creating Shopify functions for custom manual processes, your access token must include specific API scopes. These scopes determine what your functions can access and modify within your Shopify store. Here are the essential scopes you'll need:
| Scope | What It Allows |
|---|---|
| write_products | Enables your functions to modify product data, pricing, and inventory when creating custom product recommendation functions or dynamic pricing rules |
| read_products | Allows your functions to access product information, variants, and metadata needed for custom manual filtering and selection logic |
| write_orders | Permits modification of order details, discounts, and custom attributes for manual order processing functions |
| read_orders | Grants access to order data, customer information, and order history for custom manual workflows and conditions |
| write_fulfillments | Allows your functions to create and manage fulfillment operations for custom manual shipping and delivery customizations |
Follow these detailed steps to create your Shopify access token for custom manual Shopify functions:
First, navigate to your Shopify Partner account. If you don't have one, visit partners.shopify.com and sign up for free. This dashboard is your central hub for managing apps, functions, and API credentials. Once logged in, you'll see various options for app development and store management.
In your Partner dashboard, locate the "Stores" section. If you already have a development store, select it. If not, create a new development store by clicking "Create store" and selecting "Development store" as the type. Development stores are perfect for testing Shopify functions without affecting live sales. Give your store a descriptive name that indicates its purpose, such as "Custom Functions Testing."
Navigate to the "Apps and integrations" section in your Partner dashboard. Click "Create an app" and choose "Create app manually." Give your app a name related to your Shopify functions project, such as "Custom Manual Functions App" or "Advanced Order Processing." This app will be the container for your functions and API credentials.
Once your app is created, go to the "Configuration" section. Under "Admin API access scopes," select all the scopes listed in the table above. Make sure to include write_products, read_products, write_orders, read_orders, and write_fulfillments at minimum. For custom manual functions, you may also want to add write_discounts and read_discounts if your functions involve discount logic.
After configuring scopes, click "Save" and then navigate to the "Admin API access tokens" section. Click "Generate token" to create your access token. This token will be displayed only once, so copy it immediately and store it securely. Never share this token or commit it to public repositories.
Store your access token in an environment variable file (.env) rather than hardcoding it into your application. Here's the proper way to structure this:
SHOPIFY_ACCESS_TOKEN=shpat_1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p
SHOPIFY_STORE_NAME=your-store-name.myshopify.com
SHOPIFY_API_VERSION=2026-01
Verify your token works correctly by making a test API call. Use curl to query your store's products endpoint:
curl -X GET "https://your-store-name.myshopify.com/admin/api/2026-01/products.json" \
-H "X-Shopify-Access-Token: shpat_1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p" \
-H "Content-Type: application/json"
If successful, this request will return your store's product data in JSON format. If you receive a 401 Unauthorized error, double-check your token and store name. For custom manual Shopify functions, this confirmation ensures your credentials are ready for deployment.
Return to your Partner dashboard and find your newly created app. Click on it and select "Install app" for your development store. This step associates your API credentials with your test environment, allowing your Shopify functions to access store data and perform custom manual operations.
With your access token configured, you're ready to develop and deploy your Shopify functions. Use the Shopify CLI with the command:
shopify function build
Then deploy using:
shopify function publish
Your functions will now have access to the scopes and permissions defined in your app configuration, allowing them to execute custom manual logic for orders, products, and fulfillments.
While the manual process above gives you complete control, there's a faster alternative available. Visit https://getshopifytoken.com to automate much of this process. GetShopifyToken streamlines token generation and validates your configuration automatically, reducing setup time from 15-20 minutes to just a few minutes. This service is particularly useful when you're managing multiple apps or need to quickly rotate tokens for security purposes. The platform ensures all required scopes for custom manual Shopify functions are properly configured, and it provides a secure dashboard for managing your credentials across different projects and stores.
Yes, absolutely. A single access token can be used across multiple Shopify functions within the same app, as long as all functions require the same API scopes. However, for security best practices, consider creating separate apps for different function categories if they require different permission levels. This follows the principle of least privilege, where each function has only the permissions it needs to operate.
Shopify recommends rotating access tokens every 90 days for optimal security, especially if your token could be exposed to external services or team members. For tokens used only in secure, internal environments, rotation every 6-12 months may be sufficient. When you generate a new token, the previous one immediately becomes invalid, so plan your rotation during a maintenance window or use a token management system to ensure zero downtime.
Access tokens are used for server-to-server authentication and are what you need for Shopify functions and Admin API calls. API keys (used with API secrets) are typically for OAuth flows and app installations. For creating custom manual Shopify functions, you'll exclusively use access tokens. Access tokens are more secure for direct API access because they don't require managing separate secrets.
Yes, this is exactly why development stores exist. Deploy your functions to your development store first using your access token. Test all custom manual logic thoroughly in this isolated environment. Only after comprehensive testing should you install your app on production stores. Development stores are fully functional Shopify stores that don't process real payments, making them ideal for safely testing Shopify functions.
Skip the manual OAuth flow. GetShopifyToken automates the entire process — just paste your credentials and get your token instantly.
Generate Token Now →