actindo ->dk__create
actindo -> dk__create: Create customer
Signaturstring dk__create( string $sid, string $issue, dk_params $params )
 
Parameter
  • string $sid
    Session identier you got from auth__login or auth__token_login
     
  • string $issue
    Type of customer you want to create. (deb = Debitoren=Kunden, kred=
     
  • dk_params $params
    array( deb_kred_id, anrede, firma, kurzname, name, vorname, land )
     
Returnsstring
array( 'ok'=>TRUE/FALSE, 'deb_kred_id'=>int id of new customer, 'error'=>string error text )
 
DescriptionCreate customer

the parameter array $params has to be used to specify common attributes for customer:
deb_kred_id:int
the id for the new customer => in case you specify an id, please make sure that it is in the range of
possible valid ids - or just set it to null and the next free id will be chosen automatically

anrede:string
customer title

firma:string
name of the company

kurzname:string
customer short name

name:string
customer surname

vorname:string
customer name

land:string
customer country code (for example D for Germany)

adresse:string
customer address

adresse2:string
customer address 2

plz:string
customer postal code

ort:string
customer residence

tel:string
customer phone number

mobiltel:string
customer mobile phone number

fax:string
customer fax number

email:string
customer email

comments:string
customer related comments

blz:string
customer bank code

kto:string
customer bank account number

kto_inhaber:string
customer account holder

iban:string
customer iban

swift:string
customer swift/bic

langcode:string
customer language code (2digit)

verf: string
type of payment (Zahlverfahren) - can be one of the values returned by the function bill__get_verf_opts

ustid: string
customer vat no. (Umsatzsteuer-ID)

delivery_id: int
address id (Adress-ID)

print_brutto: int
print brutto (Brutto-Druck)

zahl_bed: int
payment target id (Zahlungsbedingungs-ID).
The following fields (zahl_ziel#,zahl_skonto#) can be ignored if zahl_bed is set

zahl_ziel1: int
payment target 1 in days (Zahlungsziel 1 in Tagen)

zahl_skonto1: int
payment skonto 1 in % (Zahlungs-Skonto 1 in Prozent)

zahl_ziel2: int
payment target 2 in days (Zahlungsziel 2 in Tagen)

zahl_skonto2: int
payment skonto 2 in % (Zahlungs-Skonto 2 in Prozent)

zahl_ziel3: int
payment target 3 in days (Zahlungsziel 3 in Tagen)

zahl_skonto3: int
payment skonto 3 in % (Zahlungs-Skonto 3 in Prozent)

currency: string
customer currency (Währung des Kunden, z.B. EUR)

ebay_name: string
customer ebay name (eBay-Name des Kunden)

keep in mind to specify every single parameter.
for parameters you don't want to use, strings should be given an empty value ('') and integers should be set to
null