Kommentare und Historie

Alle Kom­men­tare einer Gut­schrift auflisten

GET /api/credit-note-comments?credit_note_id={credit_note_id}

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

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

Ein­zel­nen Kom­men­tar aufrufen

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

Kom­men­tar erstellen

POST /api/credit-note-comments
XML-Element Beschrei­bung Typ Default-Wert Pflicht­feld
credit_note_id ID der Gut­schrift INT ja
com­ment Kom­men­tar ALNUM ja
<credit-note-comment>
    <credit_note_id>1</credit_note_id>
    <comment>Aus Kulanz</comment>
</credit-note-comment>
<?xml version="1.0" encoding="UTF-8"?>
<credit-note-comment>
    <id type="integer">1</id>
    <created type="datetime">2007-12-13T12:12:00+01:00</created>
    <credit_note_id type="integer">1</credit_note_id>
    <user_id type="integer">1</user_id>
    <comment>Aus Kulanz</comment>
</credit-note-comment>

Kom­men­tar löschen

DELETE /api/credit-note-comments/{id}