When our shop use Multipass, can we synchronize EC site (shopify) and original web site?

Solved

When our shop use Multipass, can we synchronize EC site (shopify) and original web site?

Yuno-7
Visitor
2 0 0

Is it possible to receive the customer_id as a callback from the EC side when the new registration on Shopify's Multipass?

Accepted Solution (1)

Liam
Community Manager
3106 339 870

This is an accepted solution.

Hi Yuno-7,

 

Shopify does not directly provide a callback with the `customer_id` when a new registration is made via Multipass. When you create a Multipass login for a customer, you're essentially creating a new customer record in Shopify. The `customer_id` is generated by Shopify and is not directly accessible during the Multipass login process.

 

If you need to keep track of the `customer_id` for new customers registered via Multipass, you would need to use Shopify's Admin API. You could create a process on your server that periodically polls Shopify for new customers (using the /admin/api/2023-07/customers.json endpoint, for example) and then updates your original website with the new `customer_id` values.

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)

Liam
Community Manager
3106 339 870

This is an accepted solution.

Hi Yuno-7,

 

Shopify does not directly provide a callback with the `customer_id` when a new registration is made via Multipass. When you create a Multipass login for a customer, you're essentially creating a new customer record in Shopify. The `customer_id` is generated by Shopify and is not directly accessible during the Multipass login process.

 

If you need to keep track of the `customer_id` for new customers registered via Multipass, you would need to use Shopify's Admin API. You could create a process on your server that periodically polls Shopify for new customers (using the /admin/api/2023-07/customers.json endpoint, for example) and then updates your original website with the new `customer_id` values.

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

WhosfanStore
Shopify Partner
2 0 0

Hi, Liam

I am trying to set up our shop with multipass login. 

I have the same issue with this question. Thanks your reply on this question.

 

But, I got one problem.
I tried to login with Multipass login process after creating a customer process on my server with Customer Create API . But it returns error which is email duplicated. Do you know what the reason is? I used email and multipass_identifier with creating a customer, email and identifier variables with multipass login.