List all free texts

GET /api/free-texts
<?xml version="1.0" encoding="UTF-8"?>
<free-texts type="array" page="1" per_page="100" total="2">
    <free-text>
        ...
    </free-text>
    <free-text>
        ...
    </free-text>
</free-texts>

Get a single free text

GET /api/free-texts/{id}
<?xml version="1.0" encoding="UTF-8"?>
<free-text>
    <id type="integer">7</id>
    <name>Template 1</name>
    <type>INVOICE</type>
    <title>Invoice [Invoice.invoice_number]</title>
    <label></label>
	<intro>We hereby provide you with the following items into account.</intro>
	<note>Please transfer the invoice amount to [Invoice.due_date] to our account.</note>
    <is_default type="integer">1</is_default>
</free-text>

Create free text

POST /api/free-texts
XML elementDescriptionTypeDefault valueMandatory
nameName of the free textALNUMyes
typeDocument typeALNUM (“INVOICE”, “CORRECTION”, “OFFER”, “CONFIRMATION”, “CREDIT_NOTE”, “DELIVERY_NOTE”, “LETTER”)yes
titleTitle / subjectALNUM
labelNameALNUM
introIntroductory text / letter textALNUM
noteExplanatory notesALNUM
is_defaultSpecifies whether this is the default free text (1=yes, 0=no)BOOLno
<free-text>
    <name>Template 1</name>
    <type>INVOICE</type>
    <title>Invoice [Invoice.invoice_number]</title>
    <label></label>
	<intro>We hereby provide you with the following items into account.</intro>
	<note>Please transfer the invoice amount to [Invoice.due_date] to our account.</note>
    <is_default>1</is_default>
</free-text>
<?xml version="1.0" encoding="UTF-8"?>
<free-text>
    <id type="integer">7</id>
    <name>Template 1</name>
    <type>INVOICE</type>
    <title>Invoice [Invoice.invoice_number]</title>
    <label></label>
	<intro>We hereby provide you with the following items into account.</intro>
	<note>Please transfer the invoice amount to [Invoice.due_date] to our account.</note>
    <is_default type="integer">1</is_default>
</free-text>

Edit free text

PUT /api/free-texts/{id}
<free-text>
    <name>Template 2</name>
    <type>INVOICE</type>
    <label>My invoice</label>
    <is_default>0</is_default>
</free-text>

Delete free text

DELETE /api/free-texts/{id}