02029 – Register User to an Online Course via API

If you are using a Payment System that does not have deep integration with 10XPRO.io (Stripe, PayPal or Infusionsoft), then simply follow these steps to register users to your Online Course via API.

In your 10XPRO site, go to Settings in the left-sidebar menu > then select Integrations.

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 > Webhooks Secret Key, 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 simply 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 10XPRO site when someone purchases access to your Online Course.
  • In Post URL field: Paste the Custom API Url you copied from your 10XPRO site
  • Then you want to add the following parameter name/value pairs
    i.e. parameter name -> parameter value:

type -> purchase
(note: the literal word “purchase” must be used as the value)

course_id -> Insert the ID number of your Online Course
(note: to locate your course ID # go to Online Courses in your 10XPRO site, the ID will be displayed in the bottom-left corner of each course.)

full_access -> Insert “yes” to give full access to Online Course
(note: If you are drip feeding content on your course on autopilot but want to give one of your members access to everything straight away simply add this parameter.)

email -> Insert the client email

first_name -> Insert the client’s first name

last_name -> Insert the client’s last name
(note: if you want to automate this process you can add your system’s merge fields for the client’s email, firstname and lastname).

send_mail -> This is optional, but if you do not want the user to receive the email with his login details then use the value “no”

Setup a HTTP Get
  • Follow the steps provided by your Payment System to send a HTTP Get to your 10XPRO site when someone purchases access to your Forum.
  • In ‘Get’ URL field: Paste the Custom API URL you copied from your 10XPRO site
  • Then you want to 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.

 

type-> purchase
(note: the literal word “purchase” must be used as the value)

course_id -> Insert the ID number of your Online Course
(note: to locate your course ID number go to Online Courses in your 10XPRO site, the ID will be displayed in the bottom-left corner of each course.)

full_access -> Insert “yes” to give full access to Online Course
(note: If you are drip feeding content on your course on autopilot but want to give one of your members access to everything straight away simply add this parameter.)

email -> Insert the client email

first_name -> Insert the client’s first name

last_name -> Insert the client’s last name
(note: if you want to automate this process you can add your system’s merge fields for the client’s email, firtname and lastname).

send_mail -> This is optional, but if you do not want the user to receive the email with his login details then use the value “no”

An example HTTP Get would look something like this:
https://yourdomainname.com/customapi.php?secret=67e2c0&type=purchase&course_id=3&full_access=yes&email=ADDEMAILMERGE&first_name=ADDFIRSTNAMEMERGE&last_name=ADDLASTNAMEMERGE

 

NB! Whether you are using HTTP Post or HTTP Get, the above steps should be repeated for each 10XPRO Online Course that you setup.

Related Articles

Register User to Forum via API
Register User to a Bundle via API