Freeside:3:Documentation:Developer/FS/cust main/API

From Freeside
Jump to: navigation, search
API_getinfo FIELD => VALUE, ...; API_insert
Class method (constructor).
Example:

 use FS::cust_main;
 FS::cust_main->API_insert(
   'agentnum' => 1,
   'refnum'   => 1,
   'first'    => 'Harvey',
   'last'     => 'Black',
   'address1' => '5354 Pink Rabbit Lane',
   'city'     => 'Farscape',
   'state'    => 'CA',
   'zip'      => '54144',

   'invoicing_list' => 'harvey2@example.com',
 );

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 8:
'=item' outside of any '=over'