How I can get the location under the webhook trigger on user registration?

Hello Team!

I am working on a project where I have created the webhooks to register the user. But I need to register the user based on the location. And each location should register the user based on that location.
Note: The Shopify Store is a global store where each location has different functionality.

Could any one please help me resolve this task?

Thanks!
acintegrations@annexcloud.com | jsinha@annexcloud.com

Hey @Annex_Cloud

Can you share the specific webhook you are currently using to register the user?

Assuming you may be using the CUSTOMERS_CREATE webhook you could use the address in the response to determine the location to register them in.

Alternatively, you could create customer segments for the locations and then use the CUSTOMER_JOINED_SEGMENT webhook for the registration.

Thanks @KyleG-Shopify,

Yes, I am using CUSTOMER_CREATE webhook for my user registration.
But my client store is a global store and having more than 20 marketplaces (Country Wise)
And on change of location, I am having different Loyalty Program where the user get register based on their location and per location loyalty template id.

Thanks!
JITESH
acintegrations@annexcloud.com

Hi Jitesh,

Another approach could be to utilize metafields. You can update a customer metafield based on the location and then use that to ensure they get the proper template id.

Hi @Annex_Cloud - just wanted to check if the metafields approach will work for you?