If you're after a customer database/billing system with optional (i.e. you can turn it on an off if you want) auto-installs on one or more Cpanel servers: I recommend
Autopilot: administration is now a breeze and the only thing we have to bother about concerning new customers is registering their domain names (but the current "task list" for Autopilot has this being available around mid-September).
However, if you want to "hand-code" it (and, to be honest, as a 'hacker' myself I just like doing things like this for the fun of it: note I said 'hacker' and not 'cracker'), then the Cpanel remote access documentation could be your new best friend: if you follow the path of the camel, then
the Perl documentation will happily take your hand and show you the way - otherwise if you prefer the integrated HTML method that PHP offers then the
PHP documentation will probably be best.
(I swear: I've only had a quarter of a glass of wine so far

)