Getting a Field 'customerAccessTokenCreateWithMultipass' doesn't exist on type 'Mutation'

cansin
Excursionist
27 0 23

Hi,

 

Although I have enabled my Multipass login support at https://{my-shop}.myshopify.com/admin/settings/checkout I am getting an Error: GraphQL error: Field 'customerAccessTokenCreateWithMultipass' doesn't exist on type 'Mutation' error when I try to call the mutation as described at https://shopify.dev/docs/storefront-api/reference/mutation/customeraccesstokencreatewithmultipass . I feel like there might be something wrong with the interface provided by the GraphQL API. Can you advise?

Thanks.

Replies 8 (8)

cansin
Excursionist
27 0 23

Sure enough when I use introspection via:

 

query query {
__schema {
mutationType {
fields {
name
}
}
} 

 and fetch all the available mutations the list returned:

 

"checkoutAttributesUpdateV2"
"checkoutCompleteFree"
"checkoutCompleteWithCreditCardV2"
"checkoutCreate"
"checkoutCustomerAssociateV2"
"checkoutCustomerDisassociateV2"
"checkoutDiscountCodeApplyV2"
"checkoutDiscountCodeRemove"
"checkoutEmailUpdateV2"
"checkoutGiftCardRemoveV2"
"checkoutGiftCardsAppend"
"checkoutLineItemsReplace"
"checkoutShippingAddressUpdateV2"
"checkoutShippingLineUpdate"
"customerAccessTokenCreate"
"customerAccessTokenDelete"
"customerAccessTokenRenew"
"customerActivate"
"customerAddressCreate"
"customerAddressDelete"
"customerAddressUpdate"
"customerCreate"
"customerDefaultAddressUpdate"
"customerRecover"
"customerReset"
"customerResetByUrl"
"customerUpdate"

 

does not contain "customerAccessTokenCreateWithMultipass" mutation.

FactoryAidan
Shopify Partner
10 1 9

☝️ I'm experiencing this exact issue.

{
   "errors":[
      {
         "message":"Field 'customerAccessTokenCreateWithMultipass' doesn't exist on type 'Mutation'",
         "locations":[
            {
               "line":3,
               "column":3
            }
         ],
         "path":[
            "mutation",
            "customerAccessTokenCreateWithMultipass"
         ],
         "extensions":{
            "code":"undefinedField",
            "typeName":"Mutation",
            "fieldName":"customerAccessTokenCreateWithMultipass"
         }
      }
   ]
}

All other non-Multipass mutations are working fine.

FactoryAidan
Shopify Partner
10 1 9

The `customerAccessTokenCreateWithMultipass` field is only available on the newer versions of the GraphQL API endpoint you're hitting.


Works:

  • https://<your_shop_name>.myshopify.com/api/2020-04/graphql

Does not work:

  • https://<your_shop_name>.myshopify.com/api/2019-07/graphql

There's a note about it here:
https://shopify.dev/tutorials/update-customer-data-with-storefront-api#customeraccesstokencreatewith...

 

Good luck 👍 !

cansin
Excursionist
27 0 23
I’ve spoken with the customer support and they told me they would need to enable multipass on their part as well, which would require me to apply to become a plus partner and upgrade my shops to plus.

Then I talked with a salesperson on shopify plus side. According to the salesperson using shopify plus sandbox without a 12-month contract with $2K a month is not possible. Which is extremely surprising. I’d have expected to be able to experiment with the shopify plus capabilities free of charge prior to the launch of the shop, and sign a contract on launch date when it actually goes live. Perhaps someone from Shopify is reading this and suggest a solution?
vix
Shopify Staff
540 103 121

Hi @cansin 

 

As suggested above, Multipass is only available on newer versions of the API. Multipass in general, however, is a Plus only feature. This is explained here: https://shopify.dev/docs/admin-api/rest/reference/plus/multipass 

 

The Storefront API is able to handle user login without the use of Multipass by using https://shopify.dev/docs/storefront-api/reference/mutation/customeraccesstokencreate?api[version]=20...

 

To learn more visit the Shopify Help Center or the Community Blog.

cansin
Excursionist
27 0 23

@vix thanks for your answer. But my problem boils down to the fact that Shopify has no means of sandboxing/development/testing without paying a $2K/month fee for Plus. My current setup is:

 

1. We are working on a deeply integrated standalone web app that utilizes Shopify as an e-commerce backend.

2. We have one shop where our staging environment hits against.

3. We have another shop that will become the production environment eventually.

4. We need to be able to start working on any Plus-enabled integration prior to launching that production environment. We also wouldn't want to pay 2x for Plus, simply because we have a development store for staging.

 

Can you advise whether there was a better setup for staging vs. production that I miss? And can you advise whether it is possible to enable Plus for a development store, free of charge?

FactoryAidan
Shopify Partner
10 1 9

I've given Shopify $0.00 ever. I'm not part of an organization that allows me a greater level of permissions. I am able to use that Multipass method with GraphQL. So I'm not convinced that you need to pay money to develop against this feature. As described in my last post on this thread, I just had to make sure I was using the most current versioned endpoint for the GraphQL query.

cansin
Excursionist
27 0 23

@FactoryAidan I am sorry I don't understand it. Your last post suggests you were *not* able to use `customerAccessTokenCreateWithMultipass` as you were getting the same error as I did. Were you able to overcome that without a Shopify Plus membership? I am under the impression the Plus membership is a must at the moment.