If accessing this API remotely with XML-RPC or JSON-RPC, be careful to block
the port by default, only allow access from back-office servers with the same
security precations as the Freeside server, and encrypt the communication
-channel (for exampple, with an SSH tunnel or VPN) rather than accessing it
+channel (for example, with an SSH tunnel or VPN) rather than accessing it
in plaintext.
=head1 METHODS
=item referral_custnum
-referring customer number
+Referring customer number
+
+=item salesnum
+
+Sales person number
=item agentnum
#same for refnum like signup_server-default_refnum
my $cust_main = new FS::cust_main ( {
- 'agentnum' => $agentnum,
- 'refnum' => $opt{refnum}
- || $conf->config('signup_server-default_refnum'),
- 'payby' => 'BILL',
+ 'agentnum' => $agentnum,
+ 'refnum' => $opt{refnum}
+ || $conf->config('signup_server-default_refnum'),
+ 'payby' => 'BILL',
+ 'tagnum' => [ FS::part_tag->default_tags ],
map { $_ => $opt{$_} } qw(
- agentnum refnum agent_custid referral_custnum
+ agentnum salesnum refnum agent_custid referral_custnum
last first company
daytime night fax mobile
payby payinfo paydate paycvv payname