Kommentare und Historie

Alle Kom­men­tare einer Auf­trags­be­stä­ti­gung auflisten

GET /api/confirmation-comments?confirmation_id={confirmation_id}

Kom­men­tare kön­nen immer nur für ein bestimmte Auf­trags­be­stä­ti­gung zurück­ge­ge­ben wer­den.
Des­halb ist confirmation_id ein Pflichtparameter.

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

Ein­zel­nen Kom­men­tar aufrufen

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

Kom­men­tar erstellen

POST /api/confirmation-comments
XML-Element Beschrei­bung Typ Default-Wert Pflicht­feld
confirmation_id ID der Auf­trags­be­stä­ti­gung INT ja
com­ment Kom­men­tar ALNUM ja
<confirmation-comment>
    <confirmation_id>1</confirmation_id>
    <comment>Es kann los gehen</comment>
</confirmation-comment>
<?xml version="1.0" encoding="UTF-8"?>
<confirmation-comment>
    <id type="integer">1</id>
    <created type="datetime">2007-12-13T12:12:00+01:00</created>
    <confirmation_id type="integer">1</confirmation_id>
    <user_id type="integer">1</user_id>
    <comment>Es kann los gehen</comment>
</confirmation-comment>

Kom­men­tar löschen

DELETE /api/confirmation-comments/{id}