API resource list of invoices

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

Parameters/filters:

Parameter Description Default
status Invoice status. One of OPEN, PAID, OVERDUE

(Status OPEN does not distinguish between DUE and OVERDUE)

from Filters invoices newer or on same date (yyyy-MM-dd) Account close date
to Filters invoices older date (yyyy-MM-dd) Today
customer_number Filters invoices by customer number

(Please note that drafts of the new mask can not be queried)

See invoice entity.

Example

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",
      "department": "Department 2"
      "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": "[email protected]",
        "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",
      "department": "Department 1"
      "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": "[email protected]",
        "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"
          }
        ]
      }
    }
  ]
}

 

War dieser Artikel hilfreich?
Dislike 0
Ansichten: 687
Nach oben scrollen