List all comments of an invoice
GET /api/invoice-comments?invoice_id={invoice_id}
Comments can only be returned for a particular invoice.
Therefore invoice_id is a mandatory parameter.
<?xml version="1.0" encoding="UTF-8"?>
<invoice-comments type="array">
<invoice-comment>
...
</invoice-comment>
<invoice-comment>
...
</invoice-comment>
</invoice-comments>
Get single comment
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>Invoice created.</comment>
</invoice-comment>
Create comment
POST /api/invoice-comments
| XML element | Description | Type | Default value | Mandatory |
|---|---|---|---|---|
| invoice_id | ID of the invoice | INT | yes | |
| comment | Comment text | ALNUM | yes |
<invoice-comment>
<invoice_id>1</invoice_id>
<comment>Client will pay next week.</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>Client will pay next week.</comment>
</invoice-comment>
Delete comment
DELETE /api/invoice-comments/{id}
English »
Deutsch