Mechanic has native awareness of Shopify's API rate limit, and will accordingly manage the execution of operations that require access to the Shopify API. Mechanic users do not need to manage the API rate limit themselves.
If the rate limit has been reached, any due task runs or Shopify action runs will wait to be enqueued until the rate limit has recovered.
If the rate limit is reached during a run's performance, Mechanic will automatically wait and retry any affected API queries until they succeed, up to a certain number of retries. If the API rate limit does not recover in a reasonable amount of time, Mechanic will raise a permanent error for the run.
When working with large volumes of data, use a bulk operation. This way, Shopify bears the burden of collecting all relevant data, without in any way playing against the Shopify API rate limit for Mechanic.
Keep an eye on tasks that are running at the same time, competing for resources. The Shopify API rate limit is shared across each store's entire Mechanic account, which means that simultaneously-running tasks may be in competition for Shopify API usage. Adjustments to task timing (possibly using subscription offsets) can be useful, when making sure that tasks aren't competing. And, in some cases, it may be useful to decrease the overall concurrency limit for a Mechanic account, by emailing [email protected].
In high-volume scenarios for Shopify Plus accounts, Mechanic's performance can be improved by creating a private Shopify app, having the same permissions that you've granted to Mechanic. Because this private app represents your explicit control and intent, it usually comes with a higher API rate limit. (And, in some cases, Shopify can grant this private app a higher API usage limit, upon request.) By providing Mechanic with this private app's API password (also known as the API secret key, or token), you can extend this higher limit to Mechanic.
This feature is also useful for accessing Plus-only APIs, which are only available to private Shopify apps. Notably, this includes gift cards (using the gift card object).
This setting can be found in the Mechanic account settings. (This setting is only available, and is only shown, for Shopify Plus accounts.) Before adding your API password, you must ensure that the private app has every access scope that Mechanic requires. A list of current required access scopes is provided just below the password field.
Once configured, this custom API password will be used for all user-configured Shopify operations, wherever supported. (It will not be used when querying for publications, since this resource is not accessible to private apps.)