This example topic describes cloning a repository that handles the incoming webhook to send emails and messages through Zapier and configuring the repository to run it locally. In this example, we use Zapier to send our emails and to host the email template.
- Ensure that you have a premium account in Zapier.
Create a Zap Custom Webhook URL by doing the following:
In Zapier, click Create Zap.
In the Choose app & event > Trigger Event field, select Catch Hook as Trigger.
A Custom Webhook URL is displayed. Make a note of URL to use it for integration.
In Set up trigger > Test Trigger window, click Test Trigger.
You can now send requests to the Custom Webhook URL.
Open Elastic Path Commerce Manager and create a new integration by doing the following:
Log in to Elastic Path Commerce Manager.
Go to Settings > Integrations and click New Integration.
In the Integration Details section, enter a name and description.
We recommend using the prefix DEVELOPMENT:.Next with the name of the integration.
In the Configuration section, enter the Zapier Custom Webhook URL.
In the Observes section, select the Orders > Paid/Captured checkbox.
Pay for a new or existing order to trigger the integration.
Create a Send Outbound email action in Zapier by doing the following:
In Zapier, select Request as a Test Trigger.
You can now use the payload data for the orders to populate the action fields.
In the App Event field, search and select one of the following as required:
- Email by Zapier
- SMS by Zapier
The Action > Send Outbound Email window is displayed.
In the Action Event field, select Send Outbound Email and click Continue.
The Set up action window is displayed.
Enter the required data.
Click Test and Continue.
An email is sent to the email address specified in the To field in the Set up action window.
Click Ready to turn on your Zap and turn on the zap.
A message with shareable link is displayed.
Pay for any new or existing orders to trigger the integration again.