02052 – Register User to Forum 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 Forum via API.

  • In your 10XPRO 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.

 

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 Forum.
        • 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)

      first_name -> Insert the client’s first name

      last_name -> Insert the client’s last name

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

      forum_category_id -> Insert the forum category ID

      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”

      forum_full_access-> Insert “yes” to register the user to the forum

       

       

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)

first_name -> Insert the client’s first name

last_name -> Insert the client’s last name

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

forum_category_id -> Insert the forum category ID

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”

forum_full_access-> Insert “yes” to register the user to the forum

 

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

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. 

Related Articles

Register User to an Online Course via API
Register User to a Bundle via API