Payment reminders

List all payment reminders

GET /api/reminder-texts
<?xml version="1.0" encoding="UTF-8"?>
<reminder-texts type="array">
    <reminder-text>
        ...
    </reminder-text>
    <reminder-text>
        ...
    </reminder-text>
</reminder-texts>

Show a specific payment reminder

GET /api/reminder-texts/{id}
<?xml version="1.0" encoding="UTF-8"?>
<reminder-text>
    <id type="integer">7</id>
    <sorting type="integer">1</sorting>
    <name>First friendly reminder</name>
    <subject>Payment reminder</subject>
    <header>Unfortunately there is no payment for our invoice [Invoice.invoice_number] from [Invoice.date] yet.</header>
    <footer>Best regards</footer>
    <charge_name>Dunning charge</charge_name>
    <charge_description>Postal charge</charge_description>
    <charge_amount type="float">0.55</charge_amount>
</reminder-text>

Create a payment reminder

POST /api/reminder-texts
XML elementDescriptionTypeDefault valueMandatory
sortingThe sorting of this reminder textINTWithout a sorting the reminder text it placed at the end of all reminder texts.no
nameA name for internal use onlyALNUMno
subjectA subject.ALNUMno
headerIntroductory textALNUMno
footerExplanatory notesALNUMno
charge_nameName of charge (if present)ALNUMno
charge_descriptionDescription of charge (if present)ALNUMno
charge_amountAmount of charge (if present)FLOATno
<reminder-text>
     <name>Hire a lawyer</name>
     <subject>Last reminder</subject>
</reminder-text>
<?xml version="1.0" encoding="UTF-8"?>
<reminder-text>
    <id type="integer">42</id>
    <sorting type="integer">2</sorting>
    <name>Hire a lawyer</name>
    <subject>Last reminder</name>
    <header></header>
    <footer></footer>
    <charge_name></charge_name>
    <charge_description></charge_description>
    <charge_amount type="float"></charge_amount>
</reminder-text>

Edit a payment reminder

PUT /api/reminder-texts/{id}
<reminder-text>
    <charge_amount>100.00</charge_amount>
</reminder-text>

Delete a payment reminder

DELETE /api/reminder-texts/{id}