How do I link services and users to WHMCS?

Austin B.
Published: 20 August 2019Last updated: 25 August 2024
Share:

Linking Services

Under some circumstances, you may want to set up a service as if it had been purchased via 20i on your WHMCS install. This may include cases where you've migrated your Reseller Hosting from another WHMCS provider and want to continue to provide the same services to your existing customer. Linking the existing service that you have set up in WHMCS with 20i means that your customers can log in and manage the hosting through their own WHMCS login. 

Manual method:

  • Log in to My20i.
  • Go to Manage Hosting
  • Click Options -> Edit on the package you're looking for
  • Copy the ID number from the header
  • Go to the Product/Service in WHMCS Admin
  • Paste the ID number into the "packageId" field near the bottom

 

Autodetect method:

  • Go to the Product/Service in WHMCS Admin
  • In the "packageId" field near the bottom, type an asterisk ' * '

Autodetect only works when you have a package with a name which exactly matches the domain name in WHMCS. The behaviour is undefined if you delete and recreate a package, or move a domain name between packages.

 

Linking Stack Users

If you've set up Stack Users, you may want to link them to an existing client set up on WHMCS so that your customer can access all their services from within WHMCS without having to go back to your StackCP site. This is only applicable to existing unlinked Stack Users, as new Stack Users are set up automatically whenever a new order is placed in WHMCS.

Note: Imported users will not have their access changed, so you may also want to review which services they have access to.

Manual method:

  • Log in to My20i.
  • Go to StackCP Users
  • Click Options -> Edit on the User you're looking for
  • Copy the User reference from the header (something like "stack-user:42")
  • Go to the appropriate Client in WHMCS admin
  • Select Profile
  • Paste the user reference into your Stack User field near the bottom

 

Autodetect method:

  • Go to the appropriate Client in WHMCS admin
  • Select Profile
  • In your Stack User field (towards the bottom of the page), type an asterisk "*"

If you use autodetect, you should be aware that this may connect a Stack user which you didn't intend to allow access to. Autodetect only works when the WHMCS user email address exactly matches one of your stack user email addresses.

Note: WHMCS is still a very much liked billing and automation option for resellers. But there are more options on the market. You should read about WHMCS alternatives.