Run my Accounts API: Liste aller Rechnungen

Die Liste aller Rechnungen können Sie über das API wie folgt erzeugen:

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

Über Parameter kann gefiltert werden:

ParameterBeschreibungDefault
statusRechnungsstatus (OPEN,PAID,OVERDUE)
fromNur Rech­nung ab die­sem Datum (For­mat YYYY-MM-DD)Bücherkontrolle
toNur Rech­nung bis zu die­sem Datum (For­mat YYYY-MM-DD)Abfragedatum
cutomer_numberNur Rechungen eines Kunden

Beispiele

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

XML:

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

JSON:

{
  "invoice": [
    {
      "invnumber": "R-002",
      "ordnumber": "",
      "status": "OVERDUE",
      "currency": "CHF",
      "ar_accno": "1100",
      "transdate": "2012-08-06T00:00:00+02:00",
      "duedate": "2012-08-06T00:00:00+02:00",
      "description": "",
      "notes": "",
      "intnotes": "",
      "taxincluded": "false",
      "dcn": "",
      "customer": {
        "id": "10199",
        "customernumber": "K-001",
        "name": "Muster AG",
        "created": "2012-02-21T00:00:00+01:00",
        "contactId": "0",
        "salutation": "Herr",
        "firstname": "Hans",
        "lastname": "Muster",
        "addressId": "0",
        "address1": "Rössliweg 1",
        "address2": "",
        "zipcode": "",
        "city": "Tenna",
        "state": "",
        "country": "",
        "phone": "",
        "fax": "",
        "mobile": "",
        "email": "hmuster@muster.ch",
        "taxnumber": "",
        "taxfree": "false",
        "bank_name": "CREDIT SUISSE",
        "bank_address1": "",
        "bank_address2": "",
        "bank_zipcode": "8070",
        "bank_city": "ZÜRICH",
        "bank_country": "SCHWEIZ",
        "bank_iban": "CH3304835172037151000",
        "bank_bic": "CRESCHZZ80L"
      },
      "parts": {
        "part": {
          "income_accno": "0",
          "expense_accno": "0",
          "partnumber": "ART-1",
          "description": "Beispiel Artikel 1",
          "unit": "",
          "quantity": "5.0",
          "sellprice": "99.0",
          "discount": "0.0",
          "itemnote": "",
          "price_update": "2012-08-06T08:52:08.171+02:00"
        }
      }
    },
    {
      "invnumber": "R-001",
      "ordnumber": "",
      "status": "OVERDUE",
      "currency": "CHF",
      "ar_accno": "1100",
      "transdate": "2012-08-06T00:00:00+02:00",
      "duedate": "2012-08-06T00:00:00+02:00",
      "description": "",
      "notes": "",
      "intnotes": "",
      "taxincluded": "false",
      "dcn": "",
      "customer": {
        "id": "10199",
        "customernumber": "K-001",
        "name": "Muster AG",
        "created": "2012-02-21T00:00:00+01:00",
        "contactId": "0",
        "salutation": "Herr",
        "firstname": "Hans",
        "lastname": "Muster",
        "addressId": "0",
        "address1": "Rössliweg 1",
        "address2": "",
        "zipcode": "",
        "city": "Tenna",
        "state": "",
        "country": "",
        "phone": "",
        "fax": "",
        "mobile": "",
        "email": "hmuster@muster.ch",
        "taxnumber": "",
        "taxfree": "false",
        "bank_name": "CREDIT SUISSE",
        "bank_address1": "",
        "bank_address2": "",
        "bank_zipcode": "8070",
        "bank_city": "ZÜRICH",
        "bank_country": "SCHWEIZ",
        "bank_iban": "CH3304835172037151000",
        "bank_bic": "CRESCHZZ80L"
      },
      "parts": {
        "part": [
          {
            "income_accno": "0",
            "expense_accno": "0",
            "partnumber": "ART-2",
            "description": "Beispiel Artikel 2",
            "unit": "",
            "quantity": "1.0",
            "sellprice": "49.9",
            "discount": "0.0",
            "itemnote": "",
            "price_update": "2012-08-06T08:52:08.174+02:00"
          },
          {
            "income_accno": "0",
            "expense_accno": "0",
            "partnumber": "ART-1",
            "description": "Beispiel Artikel 1",
            "unit": "",
            "quantity": "4.0",
            "sellprice": "99.0",
            "discount": "0.0",
            "itemnote": "",
            "price_update": "2012-08-06T08:52:08.174+02:00"
          }
        ]
      }
    }
  ]
}