actindo ->dk__change
actindo -> dk__change: Change customer
Signaturstring dk__change( string $sid, int $id, dk_params $params )
 
Parameter
  • string $sid
    Session identier you got from auth__login or auth__token_login
     
  • int $id
    customer id
     
  • dk_params $params
    array( deb_kred_id, anrede, firma, kurzname, name, vorname, land )
     
Returnsstring
array( 'ok'=>TRUE/FALSE, 'error'=>string error text )
 
DescriptionChange customer

the parameter array $params has to be used to specify common attributes for customer:
deb_kred_id:int
the new id for the customer => in case you specify an id, please make sure that it is in the range of
possible valid ids - in case you don't want to change the customers id, set this to null or the current id

anrede:string
new customer title

firma:string
new name of the company

kurzname:string
new customer short name

name:string
new customer surname

vorname:string
new customer name

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

adresse:string
new customer address

adresse2:string
new customer address 2

plz:string
new customer postal code

ort:string
new customer residence

tel:string
new customer phone number

mobiltel:string
new customer mobile phone number

fax:string
new customer fax number

email:string
new customer email

comments:string
new 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