Shopify external Integration via RESTful API

KiranSripathi
Tourist
4 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 4 (4)
KiranSripathi
Tourist
4 0 2

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

SymmetryMike
Shopify Partner
30 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
4 0 2

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

SymmetryMike
Shopify Partner
30 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.