Message: Customer

Function name Parameter Type Direction Description
SOAP_Customer_Query() type L IN 0
version L IN 1
mode L IN 0
company A8 IN Company ID, leave blank if querying the whole Company group.
query XML IN Query definition <query>. Example.
records L OUT Numbers of records found.
keylist ArrL OUT Array of Customer ids returned
log XML OUT Operations log in XML <log>.
SOAP_Customer_Get() type L IN 0
version L IN 1
mode L IN Field scope: 0 = Standard, 1 = Compact, 2 = Minimal, 5 = E-commerce, 9 = Everything.
company A8 IN Company ID
keylist ArrL IN Array of Customer ids to get
data XML OUT Returned data in XML <customers>. Example.
log XML OUT Operations log in XML <log>.
SOAP_Customer_Set()

(Read & write access required)
type L IN 0
version L IN 1
mode L IN 0
company A8 IN Company ID
data XML IN Returned data in XML <customers>. Example.
log XML OUT Operations log in XML <log>. Example.

XML Message/Tag name Data Table/Field IN OUT Query Default Description
<customers> C [Kund] REQ STD      
 <num_records> L Records in selection([Kund]) REQ STD     Number of records (<customer> tags) in xml
 <customer id=nnn> C [Kund] REQ STD      
  <cust_id> L [Kund]Nr REQ STD X    
  <cust_name> A30 [Kund]Namn REQ STD X    
  <cust_code> A15 [Kund]Kortnamn   STD X    
  <cust_orgnr> A15 [Kund]OrgNr REC STD X    
  <cust_vat> A20 [Kund]VATnr   STD      
  <cust_restricted> B [Kund]Sparrad   STD X    
  <cust_country_cust> A2 [Kund]LandkodPostAdr   STD X    
  <cust_country_suppl> A2 [Kund]LandKodLevAdr   STD X    
  <cust_country_type> A8 [Kund2]Landtyp   STD      
  <cust_currency> A3 [Kund]Valuta   STD   SEK  
  <cust_form_code> A3 [Kund]Blankettkod   STD   SWE  
  <cust_refname> A40 [Kund]Referens   STD      
  <cust_refid> L [Kund]KontaktID   STD      
  <cust_phone> A20 [Kund]Telefon   STD      
  <cust_phone2> A20 [Kund]Telefon2   STD      
  <cust_fax> A20 [Kund]Faxnr   STD      
  <cust_homepage> T [Kund2]Hemsida   STD      
  <cust_email> A40 [Kund]EPost   STD      
  <cust_ext_code> A30 [Kund2]EksystemKundnr   STD      
  <cust_supplier_no> L [Kund]VartLevNr   STD      
  <cust_type_global> I [Kund]GlobalTyp   STD      
  <cust_type_intern> I [Kund]InternTyp   STD      
  <cust_addr_mail> T [Kund]Adress1   STD      
  <cust_addr_billing> T [Kund]Fakturaadress   STD      
  <cust_addr_visit> T [Kund2]Besoksadress   STD      
  <cust_addr_deliv1> T [Kund]Leveransadr1   STD      
               
<cust_addresses> C [KundAdress]   STD     Container for cust addresses
 <cust_address id=nnn> C [KundAdress]   STD     Container for a cust address
  ..<cust_addr_id> L [KundAdress]ID   STD      
  ..<cust_addr_default> B [KundAdress]Default   STD      
  ..<cust_addr_address> T [KundAdress]KundLevadress   STD      
               
  <cust_def1> A15 [Kund]Begrepp1   STD      
  <cust_def2> A15 [Kund]Begrepp2   STD      
  <cust_def3> A15 [Kund]Begrepp3   STD      
  <cust_pay_terms1> A8 [Kund]BetVillk8   STD      
  <cust_pay_terms2> A60 [Kund]Betalvillkor   STD      
  <cust_pay_method1> A8 [Kund2]Betalsatt   STD      
  <cust_del_terms1> A8 [Kund]LevVillk8   STD      
  <cust_del_terms2> A60 [Kund]Leveransvillkor   STD      
  <cust_del_method1> A8 [Kund]LevSatt8   STD      
  <cust_del_method2> A50 [Kund]Leveranssatt   STD      
  <cust_created> D [Kund]Skapad N/A STD    
  <cust_modified> D [Kund]Andrad N/A STD   Current date  
  <cust_ts> DT [Kund]TimeStamp N/A STD X    


Revision Date Notes
9.4.2b23 2015-04-10 <cust_addr_mail>, <cust_addr_billing>, <cust_addr_visit> and <cust_addr_deliv1> added.
9.2.7 2013-06-04 Parameters changes.
Internal changes for 4D 12.5.0.
Doctype HTML5.
7.6.1 2008-04-17 Definition moved here.
Author: Åke Losman ©2008-2015  Info Struct AB