API Resource list vendor invoices

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

Parameters/filters: none

See vendor invoice entity.

Example

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

XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<payables>
  <payable>
    <invnumber>K-001</invnumber>
    <ordnumber></ordnumber>
    <status>OPEN</status>
    <currency>CHF</currency>
    <ap_accno>2000</ap_accno>
    <transdate>2013-07-30T00:00:00+02:00</transdate>
    <duedate>2013-08-13T00:00:00+02:00</duedate>
    <description></description>
    <notes></notes>
    <intnotes></intnotes>
    <taxincluded>true</taxincluded>
    <dcn></dcn>
    <amount>100.0</amount>
    <netamount>100.0</netamount>
    <paid>50.0</paid>
    <paymentAccno>1020</paymentAccno>
    <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>
    <parts>
      <part>
        <income_accno>3400</income_accno>
        <expense_accno>4999</expense_accno>
        <partnumber>ART-1</partnumber>
        <description>ART-1</description>
        <unit></unit>
        <quantity>1.0</quantity>
        <sellprice>200.0</sellprice>
        <discount>0.0</discount>
        <itemnote></itemnote>
        <tax_accnos>2201,2206</tax_accnos>
        <price_update>2012-01-01T00:00:00+01:00</price_update>
      </part>
    </parts>
  </payable>
  <payable>
    <invnumber>K-002</invnumber>
    <ordnumber></ordnumber>
    <status>OVERDUE</status>
    <currency>CHF</currency>
    <ap_accno>2000</ap_accno>
    <transdate>2013-07-30T00:00:00+02:00</transdate>
    <duedate>2013-07-30T00:00:00+02:00</duedate>
    <description></description>
    <notes></notes>
    <intnotes></intnotes>
    <taxincluded>false</taxincluded>
    <dcn></dcn>
    <amount>200.0</amount>
    <netamount>200.0</netamount>
    <paid>0.0</paid>
    <paymentAccno>1020</paymentAccno>
    <vendor>
      <id>10910</id>
      <vendornumber>L-68</vendornumber>
      <name>Lieferant 1</name>
      <created>2013-07-30T00:00:00+02:00</created>
      <salutation></salutation>
      <firstname></firstname>
      <lastname></lastname>
      <terms>0</terms>
      <address1></address1>
      <address2></address2>
      <zipcode></zipcode>
      <city></city>
      <state></state>
      <country></country>
      <phone></phone>
      <fax></fax>
      <mobile></mobile>
      <email></email>
      <taxnumber></taxnumber>
      <arap_accno>2000</arap_accno>
      <payment_accno>1020</payment_accno>
      <bank_iban></bank_iban>
      <bank_bic></bank_bic>
    </vendor>
    <parts>
      <part>
        <income_accno>3400</income_accno>
        <expense_accno>4999</expense_accno>
        <partnumber>ART-1</partnumber>
        <description>ART-1</description>
        <unit></unit>
        <quantity>1.0</quantity>
        <sellprice>200.0</sellprice>
        <discount>0.0</discount>
        <itemnote></itemnote>
        <tax_accnos>2201,2206</tax_accnos>
        <price_update>2012-01-01T00:00:00+01:00</price_update>
      </part>
    </parts>
  </payable>
</payables>

JSON:

{
      "payable":
      [
          {
              "invnumber": "K-001",
              "ordnumber": "",
              "status": "OPEN",
              "currency": "CHF",
              "ap_accno": "2000",
              "transdate": "2013-07-30T00:00:00+02:00",
              "duedate": "2013-08-13T00:00:00+02:00",
              "description": "",
              "notes": "",
              "intnotes": "",
              "taxincluded": "true",
              "dcn": "",
              "amount": "100.0",
              "netamount": "100.0",
              "paid": "50.0",
              "paymentAccno": "1020",
              "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"
              },
              "parts":
              {
                  "part":
                  {
                      "income_accno": "3400",
                      "expense_accno": "4999",
                      "partnumber": "ART-1",
                      "description": "ART-1",
                      "unit": "",
                      "quantity": "1.0",
                      "sellprice": "200.0",
                      "discount": "0.0",
                      "itemnote": "",
                      "tax_accnos": "2201,2206",
                      "price_update": "2012-01-01T00:00:00+01:00"
                  }
              }
          },
          {
              "invnumber": "K-002",
              "ordnumber": "",
              "status": "OVERDUE",
              "currency": "CHF",
              "ap_accno": "2000",
              "transdate": "2013-07-30T00:00:00+02:00",
              "duedate": "2013-07-30T00:00:00+02:00",
              "description": "",
              "notes": "",
              "intnotes": "",
              "taxincluded": "false",
              "dcn": "",
              "amount": "200.0",
              "netamount": "200.0",
              "paid": "0.0",
              "paymentAccno": "1020",
              "vendor":
              {
                  "id": "10910",
                  "vendornumber": "L-68",
                  "name": "Lieferant 1",
                  "created": "2013-07-30T00:00:00+02:00",
                  "salutation": "",
                  "firstname": "",
                  "lastname": "",
                  "terms": "0",
                  "address1": "",
                  "address2": "",
                  "zipcode": "",
                  "city": "",
                  "state": "",
                  "country": "",
                  "phone": "",
                  "fax": "",
                  "mobile": "",
                  "email": "",
                  "taxnumber": "",
                  "arap_accno": "2000",
                  "payment_accno": "1020",
                  "bank_iban": "",
                  "bank_bic": ""
              },
              "parts":
              {
                  "part":
                  {
                      "income_accno": "3400",
                      "expense_accno": "4999",
                      "partnumber": "ART-1",
                      "description": "ART-1",
                      "unit": "",
                      "quantity": "1.0",
                      "sellprice": "200.0",
                      "discount": "0.0",
                      "itemnote": "",
                      "tax_accnos": "2201,2206",
                      "price_update": "2012-01-01T00:00:00+01:00"
                  }
              }
          }
      ]
   }

 

War dieser Artikel hilfreich?
Dislike 0
Ansichten: 22