02096 – Register User to an Online Course, Bundle, Forum, Forum Category and Full Access using Active Campaign

Registration IPN URL

To ensure that your site knows when registration have been made in your Active Campaign account, you need to setup the Registration IPN URL.

To Do This
  • In your site, go to Settings in the left-sidebar menu and then select Integrations.
  • Scroll down to Other Systems and then select Custom API.
  • Copy the API URL provided.

 

To do this:

  • Go to your Active Campaign account.
  • Create or click the Campaigns on the left sidebar or go directly to Automations menu and select the one that you’re working with.
  • Depending on your settings, you may select the trigger first like a tag is added.
  • Then, click the + sign to add new action. 
  • In the Add a New Action pop up window, click on Conditions and Workflow and then select Webhook.
  • Lastly, paste the complete Registration API URL here and click on Save.
  • POST URL: Insert the custom API URL you copied from your site
  • Add the following parameters to the URL:
    type
    = purchase
    email = %EMAIL%
    first_name = %FIRSTNAME%
    last_name = %LASTNAME%
  • Optional Parameters:
    course_id = the ID of the Online Course (You can find this by going to “Online Courses” and the course ID is located on the bottom left of each course)
    bundle_id = the ID of the Bundle
    forum_full_access = `yes` to give full forum access
    forum_category_id = the ID of the Forum category
    send_mail = to prevent email sending add this field with value `no` (Optional, if you don’t want the user to receive the welcome email then add this name/value)
    full_access = to give full access to course add this field with value `yes`
  • NB! The above steps should be repeated for each course product you set up in Active Campaign.
NOTE:
Always add an ampersand if you’re going to add a new parameter to the URL and then an equal sign before the value.

Here are the sample URLs for each product:

Course – https://yourdomainname.com/customapi.php?secret=XYZ&type=purchase&email=%EMAIL%&first_name=%FIRSTNAME%&
last_name=%LASTNAME%&course_id=2

Bundle – https://yourdomainname.com/customapi.php?secret=XYZ&type=purchase&email=%EMAIL%&first_name=%FIRSTNAME%&
last_name=%LASTNAME%&bundle_id=2

Forum Full Access – https://yourdomainname.com/customapi.php?secret=XYZ&type=purchase&email=%EMAIL%&
first_name=%FIRSTNAME%&last_name=%LASTNAME%&
forum_full_access=yes

Forum Category – https://yourdomainname.com/customapi.php?secret=XYZ&type=purchase&email=%EMAIL%&
first_name=%FIRSTNAME%&last_name=%LASTNAME%&
forum_category_id=8

Full Access – https://yourdomainname.com/customapi.php?secret=XYZ&type=purchase&email=%EMAIL%&
first_name=%FIRSTNAME%&last_name=%LASTNAME%&
full_access=yes

 

How this works:
When somebody purchases one of your Course, Bundle, Forum and Forum Category products, the contact will be added to the sequence. Active Campaign will send an HTTP post to your site to notify KLEQ that the product has been purchased. Your site will then register the customer for that particular course.

 

Related Articles:

Integrating Active Campaign with your website
De-Activate User from an Online Course, Bundle, Forum, Forum Category and Full Access using Active Campaign