Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
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.
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.
☝️ 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.
The `customerAccessTokenCreateWithMultipass` field is only available on the newer versions of the GraphQL API endpoint you're hitting.
Works:
Does not work:
There's a note about it here:
https://shopify.dev/tutorials/update-customer-data-with-storefront-api#customeraccesstokencreatewith...
Good luck 👍 !
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.
@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?
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.
@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.