Create account without a plan via WHM API
Hi.
I see this question a lot, but no a definitive answer. I want to create accounts without a plan, defining everything via the API call parameters.
But if I omit the 'plan' parameter in the 'createacct' function call, it fails with "Sorry, you must choose a package.". If specify a plan, the "quota" (and other parameters) are ignored, and instead it uses the plan values, which is the thing I want to avoid.
Am I missing something? Thanks for your help! BTW I'm using WHM v70.0.48
-
Are you omitting it meaning completely leaving plan out of the function or are you just leaving it blank like plan= I just tested using the command line: whmapi1 createacct username=example domain=example.com
reason: Account Creation Ok Package: default0 -
Thanks @Jcats ! :) Actually, "whmapi1" uses the "default" package (opposite to no package). But I thought perhaps it was a privilege issue ("whmapi1" uses "root" user), and that was it :-D It turns out the reseller user I was using to create the accounts didn't have the 'quota' privilege (among others) enabled. Thanks again! ;) 0 -
Glad to hear you were able to find a resolution to your issue @Oliver Etchebarne I should point out that by default the "default" package has everything unlimited so it's really not imposing any restrictions unless the default has been modified. It's there to ensure uniformity of accounts that aren't assigned a package. Thanks! 0
Please sign in to leave a comment.
Comments
3 comments