Webhook is basically user-defined HTTP callbacks which are triggered by specific events. When a trigger event occurs in the source site, the webhook sees the events, collect the data and sends it to the URL in the form of an HTTP request.
ActiveCampaign is a professional email marketing software which supports online stores in business management, such as online meetings, customers.
Owners can track events of the store from Magento on ActiveCampaign by integrating Magento and ActiveCampaign with Webhook extension made by Mageplaza.
Webhook Extension for Magento 2
Unlock the power of Magento 2 Webhook today and enhance the flexibility and interactivity of your website!
Check it out!Entities of Magento which Webhook support:
Entities of ActiveCampaign:
Access to here, Click the Try it free button > Fill your registered email > Click the Create Account button:
Fill your name > Click the Next Step button
Next, Fill your phone number > Click the Next Step button :
Complete your company information > Click the Next Step button:
Then, choose your favor object by clicking to the checkbox:
After that, fill tools which you are using to the box:
Finally, fill in your password > Click the Take Me To Account button to complete the registration:
After registering successfully, you can take the following steps to get the ActiveCampaign API URL and Key:
From the menu which is on the left, select Settings
Next, choose Developer, you will see API URL and Key
To view the latest fields of ActiveCampaign, you can click here
How to create a new contact in ActiveCampaign via Magento 2
Required fields
Optional fields:
In this section, we will instruct you how to configure Webhook integrating with ActiveCampaign:
From the Admin Pane go to System > Webhook > Manage Hooks, on the right corner, select Add New with choices: New Order, New Customer, Update Customer, Delete Customer, New Order, etc.
Step 1: Fill all information in the General Information tab
Step 2: Enter the data on the Action tab
Note:
with https://:account.api-us1.com is the API URL from your ActiveCampaign
Headers: Click the Add button to add values of headers such as Name and Value as the request of the server to call that API. Name =Api-Token, Value is the API from ActiveCampaign.
Body: With the POST or PUT method, you need to fill the body
{
"contact": {
"email": "layla@example.com",
"firstName": "Layla",
"lastName": "Harris",
"phone": "9223224241"
}
}
Note: When you need to get any field, replace that field with the variable from Insert Variable.
The results of creating a hook:
When some events are performed on Store such as adding a new customer, data information will be saved at Hook Logs:
Click Select > View, this will redirect you to the view log page to view data information
Required fields:
Optional fields:
Payload URL:
Headers: Click the Add button to add values of headers such as Name vĂ Value as the request of the server to call that API. Name =Api-Token, Value is the API key from ActiveCampaign
Body Template:
{
"deal": {
"contact": "59",
"description": "This deal is an important deal",
"currency": "usd",
"group": "1",
"owner": "1",
"percent": null,
"stage": "1",
"status": 0,
"title": "AC Deal",
"value": 45600
}
}
Note: When you need to get any data field, replace that field with the variable form Insert Variable.
We have instructed how to register ActiveCampaign and create Hook when using Webhook Extension of Mageplaza as well as how to integrate Webhook with ActiveCampaign. You can view more functions for your store here.
Magento API Integration Service by Mageplaza
Connect your store with any 3rd-party software and boost customer experience quickly and efficiently.
Learn more