Run my Accounts API: Liste der Lieferanten

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

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

Antwort

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

<vendor> Element:

XML/JSON ElementBeschreibungDefault WertFeldtypPflicht Wert
vendornumber <PK>Lieferantennummer TEXT(32)ja
nameLieferantenname TEXT(64)ja
createdErstelldatumjetztZEITSTEMPEL
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)
phoneTelefon TEXT(20)
faxFax TEXT(20)
mobile TEXT(20)
emailE-mail TEXT
taxnumberMWSt. Nummer TEXT(32)
termsZahlungsfrist in Tagen INT
arap_accnoDefault Kreditoren Konto Nummer2000INT
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)

Beispiele

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

XML Beispiel Content:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vendors>
  <vendor>
    <id>10880</id>
    <vendornumber>L-66</vendornumber>
    <name>ABC Lieferant</name>
    <created>2013-01-01T00:00:00+01:00</created>
    <salutation>Herr</salutation>
    <firstname>Hans</firstname>
    <lastname>Muster</lastname>
    <terms>14</terms>
    <address1>Seestrasse 63</address1>
    <address2></address2>
    <zipcode>8000</zipcode>
    <city>Zürich</city>
    <state>Zürich</state>
    <country>Schweiz</country>
    <phone>044 000 00 01</phone>
    <fax></fax>
    <mobile></mobile>
    <email>hans.muster@abc.ch</email>
    <taxnumber></taxnumber>
    <arap_accno>2000</arap_accno>
    <payment_accno>1020</payment_accno>
    <bank_name>CREDIT SUISSE</bank_name>
    <bank_address1>PARADEPLATZ</bank_address1>
    <bank_address2></bank_address2>
    <bank_zipcode>8000</bank_zipcode>
    <bank_city>ZüRICH</bank_city>
    <bank_country></bank_country>
    <bank_iban>CH57 0483 5053 9150 6000 1</bank_iban>
    <bank_bic>CRESCHZZ81Z</bank_bic>
  </vendor>
</vendors>

JSON Beispiel Content:

{
  "vendor": [
    {
      "id": "10880",
      "vendornumber": "L-66",
      "name": "ABC Lieferant",
      "created": "2013-01-01T00:00:00+01:00",
      "salutation": "Herr",
      "firstname": "Hans",
      "lastname": "Muster",
      "terms": "14",
      "address1": "Seestrasse 63",
      "address2": "",
      "zipcode": "8000",
      "city": "Zürich",
      "state": "Zürich",
      "country": "Schweiz",
      "phone": "044 000 00 01",
      "fax": "",
      "mobile": "",
      "email": "hans.muster@abc.ch",
      "taxnumber": "",
      "arap_accno": "2000",
      "payment_accno": "1020",
      "bank_name": "CREDIT SUISSE",
      "bank_address1": "PARADEPLATZ",
      "bank_address2": "",
      "bank_zipcode": "8000",
      "bank_city": "ZüRICH",
      "bank_country": "",
      "bank_iban": "CH57 0483 5053 9150 6000 1",
      "bank_bic": "CRESCHZZ81Z"
    },
    {
      "id": "10909",
      "vendornumber": "XYZ",
      "name": "L-90",
      "created": "2013-07-30T00:00:00+02:00",
      "salutation": "",
      "firstname": "",
      "lastname": "",
      "terms": "0",
      "address1": "",
      "address2": "",
      "zipcode": "",
      "city": "",
      "state": "",
      "country": "",
      "phone": "",
      "fax": "",
      "mobile": "",
      "email": "",
      "taxnumber": "",
      "bank_iban": "",
      "bank_bic": ""
    }
  ]
}