cartTransformCreate mutation - access denied on plus store

Getting the error: Access denied for cartTransformCreate field. Required access: write_cart_transforms access scope. Also: The user must have products and preferences permission to create a cart transform function.

I have confirmed that the app scopes in the TOML and in the partner dashboard are correct and that is indeed listed. When running a query from the app itself, it lists that as a scope.

Other extensions in the app are running in both development store as well as the live store but the cartTransform extension does not run in the live store and I get that error when trying to enable it via the graphQL mutation in the GraphiQL app.

Please advise

1 Like

Hi,

We recently shipped a fix for what sounds like something similar - are you still seeing this issue?

Hi Liam,

Unfortunately yes we are still experiencing this issue. It is not resolved. It actually happens even on the Shopify Bundles Reference app as well as our custom app


.

https://shopify-bundles-reference.shopifysvc.com/auth

I am experiencing the same issue that on Shopify Plus production store, App cannot create the cartTransform and fails with exact same error. All scopes are present and user has products and preferences permission. I also have upgraded the store to Checkout Extensibility and unpublished all Script Tag functions. Didn’t help.
When checking Store eligibility using this query:

{
  shop {
    features {
      bundles {
        eligibleForBundles
        sellsBundles
        ineligibilityReason
      }
    }
  }
}

I get

{
    shop: {
        features: {
            bundles: {
                 eligibleForBundles: false,
                 sellsBundles: false,
                 ineligibilityReason: "Shopify Bundles isn't available yet for this store."
             }
        }
    }
}

What can be the reason?

Updated:
I found this article which says that some apps can block creation, because they enforce old checkout.
What should we do, if stores don’t want to remove those apps?

Solved! Shopify Support replied and suggested we try to run the mutation from within the custom app with the correct scopes. Indicating that the issue might be with the Shopify GraphiQL app. This worked for us and out app is now working again.

I was able to create, but now sure what helped. I added Content permissions to store user and deleted Script Editor App.

Updated: The real issue was in GraphiQL app, I had reinstalled the app at that moment. That’s why it started working. So you will need to remove the app to make it work.
@Liam Could you please let developers of the app know, that it has such issues

Hi again Anthony,

Thanks for coming back to report that the issue was due to the GraphiQL app being installed - I’ve connected with the team who owns that app to get that bug fixed.

Hi Anthony,
Can you please share where you placed the graphQL mutation in your custom app? We are using an extension only app and ran into the same issue.

Hi Liam,
Is there any documentation on running querys/mutations in the admin API with graphql using an extensions only app?
I found this resource for potentially grabbing an access token but am not seeing any related documentation which would help.

Hi Philip

Did you find out how to do this?

I did not select the permissions correctly when downloading the graphQL App so all good now with me