Kommentare und Historie

Alle Kom­men­tare einer Rech­nung auflisten

GET /api/invoice-comments?invoice_id={invoice_id}

Kom­men­tare kön­nen immer nur für eine bestimmte Rech­nung zurück­ge­ge­ben wer­den.
Des­halb ist invoice_id ein Pflichtparameter.

<?xml version="1.0" encoding="UTF-8"?>
<invoice-comments type="array">
    <invoice-comment>
        ...
    </invoice-comment>
    <invoice-comment>
        ...
    </invoice-comment>
</invoice-comments>

Ein­zel­nen Kom­men­tar aufrufen

GET /api/invoice-comments/{id}
<?xml version="1.0" encoding="UTF-8"?>
<invoice-comment>
    <id type="integer">1</id>
    <created type="datetime">2007-12-13T12:12:00+01:00</created>
    <invoice_id type="integer">1</invoice_id>
    <user_id type="integer">1</user_id>
    <comment>Rechnung erstellt.</comment>
</invoice-comment>

Kom­men­tar erstellen

POST /api/invoice-comments
XML-Element Beschrei­bung Typ Default-Wert Pflicht­feld
invoice_id ID der Rech­nung INT ja
com­ment Kom­men­tar ALNUM ja
<invoice-comment>
    <invoice_id>1</invoice_id>
    <comment>Kunde will nächste Woche bezahlen</comment>
</invoice-comment>
<?xml version="1.0" encoding="UTF-8"?>
<invoice-comment>
    <id type="integer">1</id>
    <created type="datetime">2007-12-13T12:12:00+01:00</created>
    <invoice_id type="integer">1</invoice_id>
    <user_id type="integer">1</user_id>
    <comment>Kunde will nächste Woche bezahlen</comment>
</invoice-comment>

Kom­men­tar löschen

DELETE /api/invoice-comments/{id}