02052 – Register User to Online Course, Bundle, Forum, Forum Category and Full Access via API

If you are using a Payment System that does not have deep integration with KLEQ (Stripe, PayPal or Infusionsoft), then simply follow these steps to register users to your Online Course, Bundle, Forum, Forum Category and Full Access via API.

  • In your KLEQ site, go to Settings in the left-sidebar menu, then select Integrations.
  • In the Integrations dashboard, scroll down and click on the Custom API toggle.
  • Under Registration, copy the API URL provided.

NB! We now have secret key support to prevent somebody else sending registration webhooks to your site.

To change the secret key for your API URL, simply go to Settings > Global Settings. Then, go to Webhooks Secret Key and click on the Generate New Secret button and a new secret key will be added. 

Go back to your Payment System. Check with their support team if they support HTTP Post or HTTP Get integrations. If they do then setup one of these two options.


 

Setup a HTTP Post:
  • Follow the steps provided by your Payment System to send a HTTP Post to your KLEQ site when someone purchases access to your Forum.
  • In Post URL field: Paste the Custom API URL you copied from your KLEQ site
  • Then, add the following parameter name/value pairs
    i.e. parameter name -> parameter value:

Required Parameters:
type = purchase
first_name = the client’s first name
last_name = the client’s last name
email = the client email to be registered

It is also required to use one of these parameters:
course_id = the ID of the Online 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`
full_access = to give full access to course add this field with value `yes`

 


 

Setup a HTTP Get:
  • Follow the steps provided by your Payment System to send a HTTP Get to your KLEQ site when someone purchases access to your Forum.
  • In ‘Get’ URL field: Paste the Custom API URL you copied from your KLEQ site.
  • Then, add the following parameter name/value pairs to the end of your API URL.
    Note: How this is done, will depend on the Payment System you are using.

Required Parameters:
type = purchase
first_name = the client’s first name
last_name = the client’s last name
email = the client email to be registered

It is also required to use one of these parameters:
course_id = the ID of the Online 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`
full_access = to give full access to course add this field with value `yes`

 

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.

Sample URL:

https://yourdomainname.com/customapi.php?secret=XYZ&type=purchase&first_name=John&
last_name=Smith&[email protected]&course_id=2&bundle_id=2
&forum_full_access=yes&forum_category_id=8&full_access=ye

 


 

Related Articles:

De-Activate User from an Online Course, Bundle, Forum, Forum Category and Full Access via API
Register User to an Online Course, Bundle, Forum, Forum Category and Full Access using InfusionSoft
Register User to an Online Course, Bundle, Forum, Forum Category and Full Access using Active Campaign
Register User to an Online Course, Bundle, Forum, Forum Category and Full Access using Drip
Register User to an Online Course, Bundle, Forum, Forum Category and Full Access using Ontraport
Register user to a Course, Bundle or Forum based on ConvertKit Tag