Run my Accounts API: Liste der Kunden

Die Liste der Kunden können Sie im Run my Accounts API wie folgt beziehen:

GET https://service.runmyaccounts.com/api/latest/clients/{mandantenname}/customers

Antwort

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customers>
  <customer>
    ...
  </customer>
  <customer>
    ...
  </customer>
</customers>

<customer> Element:

XML/JSON ElementBeschreibungDefault WertFeldtypPflicht Wert
customernumber <PK>Kundennummer TEXT(32)ja
nameKundenname TEXT(64)ja
createdErstelldatumjetztZEITSTEMPEL
endedAustrittsdatum ZEITSTEMPEL
salutationAnrede TEXT(32)
firstnameVorname TEXT(32)
lastnameNachname TEXT(32)
address1Straße TEXT(32)
address2Adress Zusatz TEXT(32)
zipcodePLZ TEXT(10)
cityOrt TEXT(32)
stateKanton,Bundesland TEXT(32)
countryLand TEXT(32)
termsDefault Zahlungsfrist in Tagen INT
phoneTelefon TEXT(20)
fax FaxTEXT(20)
mobile TEXT(20)
emailE-mail TEXT
ccE-mail TEXT
bccE-mail TEXT
notesBemerkungen TEXT
taxnumberMWSt. Nummer TEXT(32)
remittancevoucherEinzahlungsschein BOOLEAN
arap_accnoDefault Debitoren Konto Nummer1100INT
payment_accnoDefault Zahlungskonto Nummer1020INT
bank_nameBan­k­name TEXT(64)
bank_address1Bankadresse TEXT(32)
bank_address2Bankadresse Zusatz TEXT(32)
bank_zipcodeBank PLZ TEXT(10)
bank_cityBank Ort TEXT(32)
bank_stateBank Kanton, Bundesland,etc. TEXT(32)
bank_countryBank Land TEXT(32)
bank_ibanIBAN TEXT(34)
bank_bicSWIFT/BIC TEXT(11)
language_codeSprachcode, muss mit den im Mandanten konfigurierten Srpachen übereinstimmen TEXT(6)
tax_accnosListe von MWST Konten (Leerschlaggetrennt). Fehlt dieses Element, so werden alle Konten freigeschaltet.
typeofcontactTyp des Kunden person oder company
genderGeschlecht des Kontakts M oder F

Beispiele

https://service.runmyaccounts.com/api/latest/clients/apitest/customers?api_key=d1bvbxkI8f1bnMBJ4sZiC-xupl4fOEzf

XML Beispiel Content:

<?xml version="1.0" encoding="UTF-8"?>
<customers>
<customer>
<customernumber>K-001</customernumber>
<name>Muster AG</name>
<created>2012-02-21T00:00:00+01:00</created>
<salutation>Herr</salutation>
<firstname>Hans</firstname>
<lastname>Muster</lastname>
<address1>Rössliweg 1</address1>
<address2></address2>
<zipcode></zipcode>
<city>Tenna</city>
<state></state>
<country></country>
<phone></phone>
<fax></fax>
<mobile></mobile>
<email>hmuster@muster.ch</email>
<taxnumber></taxnumber>
<bank_name>CREDIT SUISSE</bank_name>
<bank_address1></bank_address1>
<bank_address2></bank_address2>
<bank_zipcode>8070</bank_zipcode>
<bank_city>ZÜRICH</bank_city>
<bank_country>SCHWEIZ</bank_country>
<bank_iban>CH3304835172037151000</bank_iban>
<bank_bic>CRESCHZZ80L</bank_bic>
</customer>
</customers>

JSON Beispiel Content:

{ "customer" : [ { "address1" : "",
        "address2" : "",
        "bank_bic" : "",
        "bank_iban" : "",
        "city" : "",
        "country" : "",
        "created" : "2012-02-28T00:00:00+01:00",
        "customernumber" : "K-001",
        "email" : "",
        "fax" : "",
        "firstname" : "",
        "lastname" : "",
        "mobile" : "",
        "name" : "Muster AG",
        "phone" : "",
        "salutation" : "",
        "state" : "",
        "taxnumber" : "",
        "zipcode" : ""
      },
      { "address1" : "",
        "address2" : "",
        "bank_bic" : "",
        "bank_iban" : "",
        "city" : "",
        "country" : "",
        "created" : "2012-02-28T00:00:00+01:00",
        "customernumber" : "K-002",
        "email" : "",
        "fax" : "",
        "firstname" : "",
        "lastname" : "",
        "mobile" : "",
        "name" : "Muster GmbH",
        "phone" : "",
        "salutation" : "",
        "state" : "",
        "taxnumber" : "",
        "zipcode" : ""
      }
    ] 
}