Is there a way to update a Customer's `multipassIdentifier`?

Hello, I’m now developing our Headless store with StorefrontAPI and AdminAPI of Shopify Plus.

I read the document about Multipass and implemented the multipass login.

It’s almost working correctly, but I found that Shopify Admin API’s customerUpdate mutation doesn’t support updating Customer’s multipassIdentifier.

Then if the customer’s identifier (such as username) was changed, how should I modify it?

Thank you.

Hello NaotoKoshimizu!

Did you solve this problem?

I need to update the multipass_identifier of some of my clients but I can’t find how to do it.

Thanks you!

If you are using node and TS library shopify-api-node you can use request like:

updateCustomer(customerId, { id: customerId, multipass_identifier: multipassIdentifier })

I think this library internally makes REST request to this endpoint:
https://shopify.dev/docs/api/admin-rest/2024-01/resources/customer#put-customers-customer-id