List all comments of an incoming invoice

GET /api/incoming-comments?incoming_id={incoming_id}

Comments can only be returned for a particular incoming.
Therefore incoming_id is a mandatory parameter.

<?xml version="1.0" encoding="UTF-8"?>
<incoming-comments type="array" page="1" per_page="100" total="2">
    <incoming-comment>
        ...
    </incoming-comment>
    <incoming-comment>
        ...
    </incoming-comment>
</incoming-comments>

Get single comment

GET /api/incoming-comments/{id}
<?xml version="1.0" encoding="UTF-8"?>
<incoming-comment>
    <id type="integer">1</id>
    <created type="datetime">2007-12-13T12:12:00+01:00</created>
    <incoming_id type="integer">1</incoming_id>
    <user_id type="integer">1</user_id>
    <comment>Invoice is audited by the accounting</comment>
    <actionkey>CREATED</actionkey>
</incoming-comment>

actionkey

The value for actionkey indicates by what kind of comment it is. It is set for all actions that were triggered by the system.
With the actionkey a filtering is possible. In this case, multiple values ​​can be specified. They are separated by a comma.

GET /api/incoming-comments?incoming_id={incoming_id}&actionkey=CREATE,COPY
actionkey Description
COMMENT a comment that was entered by the user
CREATE created
COPY copied
STATUS status changed
PAYMENT payment received
DELETE_PAYMENT payment deleted

Create comment

POST /api/incoming-comments
XML element Description Type Default value Mandatory
incoming_id ID of the incoming INT yes
comment Comment text ALNUM yes
<incoming-comment>
    <incoming_id>1</incoming_id>
    <comment>Invoice is audited by the accounting</comment>
</incoming-comment>
<?xml version="1.0" encoding="UTF-8"?>
<incoming-comment>
    <id type="integer">1</id>
    <created type="datetime">2007-12-13T12:12:00+01:00</created>
    <incoming_id type="integer">1</incoming_id>
    <user_id type="integer">1</user_id>
    <comment>Invoice is audited by the accounting</comment>
    <actionkey>COMMENT</actionkey>
</incoming-comment>

Delete comment

DELETE /api/incoming-comments/{id}