Shopify external Integration via RESTful API

Shopify external Integration via RESTful API

KiranSripathi
Tourist
5 0 2

This is regarding the Shopify e-commerce website and using this to purchase products for online customers.

 

We do have the use case if the customer opt-in for the newsletter by clicking the consent then we would like to collect the information and send it to the external system (CRM) as a webhook. The CRM will use this information to create the consent and send the eDMs to the customer.

 

My question is can Shopify invoke/trigger the external Restful API with the required fields (First name, Last name, email address, etc.) once the purchase is completed?

 

If yes could you please guide how this can be implemented?

Replies 6 (6)
KiranSripathi
Tourist
5 0 2

Thanks a lot, Stella. I will let you know when my team is available for a quick discussion. 

SymmetryMike
Shopify Partner
32 6 3

Hey Kiran!

 

Yep totally possible, but there could be a faster/cheaper option that building middleware to handle webhooks. Shopify Flow actually supports making http requests based on criteria. Those links take you to the Shopify documentation on how to use it.

 

Here's what you'd need to do:

 

1. Install Shopify Flow

2. Create a workflow

3. Set the trigger to customer created

4. Set the condition to read the email marketing level in the customer object

5. Create the http request according to your CRMs documentation and use variables in the body like "{{customer.firstName}}" to pick up the customer information and send it to your CRM.

 

Here's an example flow I created in my test store:

SymmetryMike_0-1713910901179.png

 

 

I hope this helps.

 

Cheers,

Mike

Mike Kiss

@ symmetrycommerce.com we build integrations, websites and Shopify solutions.

KiranSripathi
Tourist
5 0 2

Thanks that helps a lot. We will try and let you know how that went.

SymmetryMike
Shopify Partner
32 6 3

Amazing, mark that as a solution if it works! If you have any other questions feel free to reach out 🙂

Mike Kiss

@ symmetrycommerce.com we build integrations, websites and Shopify solutions.

KiranSripathi
Tourist
5 0 2

Hi Mike, I hope you are doing well.

 

Is the Shopify flow you suggested only available on the Shopify/Advanced plan or can it be done in the Basic plan as well 

SymmetryMike
Shopify Partner
32 6 3

Hi Kiran!

 

Shopify Flow requires you to be on the advanced or plus plan. However there is an app called Mechanic where I believe you could achieve similar functionality if you're on the basic plan. If you need help building a mechanic task that's something we at Symmetry Commerce do! 

 

Cheers,

Mike

Mike Kiss

@ symmetrycommerce.com we build integrations, websites and Shopify solutions.