Magento CRM

This guide explains what you, as the customer, need to provide to enable the integration between your Magento CRM and our platform.


1. Prerequisites

Before proceeding, ensure you have the following:

  • Admin access to your Magento store.

  • Access to the Magento CLI (Command Line Interface).


2. Install Mageplaza Webhook Extension

To enable webhooks in Magento, you need to install the Mageplaza Webhook extension. Follow these steps:

Recommended: For a production store on a recent Magento version, use the paid version the free version has not been maintained since February 2023 and may have compatibility gaps.

Install Paid Version of Mageplaza Extension

  1. Log in to your Magento Admin Dashboard.

Screenshot 2024-07-04 at 12.29.23 PM.png
  1. Then Proceed to the Visit to Magento Marketplaces option there you will see the featured categories click on the Extensions from the navbar and search:

  2. Click on Visit Magento Marketplace and search for mageplaza-module-webhook.

  3. Purchase and install the extension.

    mageplaza-module-webhook
    
Screenshot 2024-07-04 at 3.32.18 PM.png
  1. Refresh your Magento dashboard, log out, and log back in. You will now see the Webhooks option under System > Webhooks > Manage Hooks.


Install Free Version of Mageplaza Extension

The free version is available via Composer. Note it is unmaintained since February 2023 suitable for testing/evaluation, but the paid version is recommended for production.


Refer to the GitHub Repo for brief explanation: Magento2Webhook

  1. Open Your Terminal go to your root application folder there install the extension through following commands

  2. To install mageplaza webhook extension use the command:

    Ruby
    composer require mageplaza/module-webhook
    
  3. This will ask you for username and password

  4. Go to Access Keys page and Create a New Access Key.

  5. It should look something like this:

     Public Key: c7afxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     Private Key: 1bfbxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    

    a) Public Key is the username
    b) Private Key is the password

  6. Once Installation is done, Do the upgrade

     php bin/magento setup:upgrade
    
  7. Compile the latest

    php bin/magento setup:di:compile
    
  8. Lastly deploy the latest

    php bin/magento setup:static-content:deploy
    

3. Configure Mageplaza Webhook → CDP (direct)

Steps to Configure Webhooks

  1. Navigate to System > Webhook > Manage Hooks in your Magento Admin Dashboard.

  2. Click Add New and pick a trigger (for example, New Customer). Give it a suitable name, set Status to Enabled, Store Views to All Store Views, and Priority to 0 (highest).

Screenshot 2024-07-04 at 3.34.04 PM.png
  1. Go to the Actions tab and configure the following:

    • Payload URL — the CDP events endpoint, using the Tenant ID and Event Type ID supplied by delivery:

      https://api.cdp.cm.com/events/v1.0/tenants/{tenant_id}/events/{event_type_id}
      
    • Method: POST

    • Header — pass the CDP product token for authentication:

      X-CM-PRODUCTTOKEN: <product token>
      
    • Content Type: application/json; charset=UTF-8

    • Body — a JSON array whose fields match your Event Type definition. Map the values using Mageplaza's variable picker; field names must match the Event Type exactly. Example:

      JSON
      [{
        "Email Address": "{{customer.email}}",
        "First Name": "{{customer.firstname}}",
        "Last Name": "{{customer.lastname}}",
        "Mobile Phone": "{{customer.phone}}"
      }]
      
  • Press Save to store the webhook configuration.

  1. Go to Customers, create a new customer, fill in the details, and click Save Customer. This triggers the webhook, and the event will appear under the matching Source in your CDP.

  2. Check Logs: To confirm delivery, go to System > Webhook > Logs. A 2xx status means CDP accepted the event.

image-20251127-190913.png

That's it. In the direct-to-CDP flow there is no OAuth integration, no Consumer Key/Secret or Access Token, and no Marketplace configuration.