X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=bin%2Fxmlrpc-new_customer;h=aea8053ce324e48f488e00ef30afb637b9ad89e2;hp=248d9e95b8fce09d557e70bb088ccf196f9a8225;hb=4b616a57791fd6fb324194a0eb96a8f95826c533;hpb=3efcba99c536f94d0e988dbdf980ba7a088631cb diff --git a/bin/xmlrpc-new_customer b/bin/xmlrpc-new_customer index 248d9e95b..aea8053ce 100755 --- a/bin/xmlrpc-new_customer +++ b/bin/xmlrpc-new_customer @@ -15,43 +15,44 @@ my $result = $server->call('FS.API.new_customer', 'secret' => 'sharingiscaring', #customer informaiton - 'agentnum' => 1, - 'refnum' => 1, #advertising source - 'agent_custid' => '323', + 'agentnum' => 1, + 'refnum' => 1, #advertising source + 'agent_custid' => '', #'323', + 'referral_custnum' => 1, - 'first' => 'Tofu', - 'last' => 'Beast', - 'company' => 'Bank of Soymerica', + 'first' => 'Tofu', + 'last' => 'Beast', + 'company' => 'Bank of Soymerica', #address - 'address1' => '1234 Soybean Ln.', - 'city' => 'Tofutown', - 'county' => '', - 'state' => 'CA', - 'zip' => '54321', - 'country' => 'US', - 'latitude' => '', - 'longitude' => '', - 'geocode' => '', - 'censustract' => '', - 'censusyear' => '', + 'address1' => '1234 Soybean Ln.', + 'city' => 'Tofutown', + 'county' => '', + 'state' => 'CA', + 'zip' => '54321', + 'country' => 'US', + 'latitude' => '', + 'longitude' => '', + 'geocode' => '', + 'censustract' => '', + 'censusyear' => '', #phones - 'daytime' => '555 444 3211', - 'night' => '', - 'fax' => '', - 'mobile' => '123 466 3332', + 'daytime' => '555 444 3211', + 'night' => '', + 'fax' => '', + 'mobile' => '123 466 3332', #invoicing info 'invoicing_list' => 'tofu@example.com', #comma-separated email addresses 'postal_invoicing' => 1, #billing information - 'payby' => 'CARD', # DCRD, CHEK, DCHK, BILL, etc. - 'payinfo' => '4111111111111111', #card number / acctno@routing / PO# - 'paydate' => '11/2019', #card expiration - 'paycvv' => '123', #card CVV/security code - 'payname' => 'Thomas Beast', #"Exact name on card" if different + 'payby' => 'CARD', # DCRD, CHEK, DCHK, BILL, etc. + 'payinfo' => '4111111111111111',#card number / acctno@routing / PO# + 'paydate' => '11/2019', #card expiration + 'paycvv' => '123', #card CVV/security code + 'payname' => 'Thomas Beast', #"Exact name on card" if different ); die $result->{'error'} if $result->{'error'};