List all tags (tagcloud)

GET /api/delivery-note-tags
<?xml version="1.0" encoding="UTF-8"?>
<delivery-note-tags type="array" page="1" per_page="100" total="2">
    <delivery-note-tag>
        <id type="integer">1</id>
        <name>foo</name>
        <count type="integer">12</count>
    </delivery-note-tag>
    <delivery-note-tag>
        <id type="integer">1</id>
        <name>bar</name>
        <count type="integer">7</count>
    </delivery-note-tag>
</delivery-note-tags>

List all tags for a delivery note

GET /api/delivery-note-tags?delivery_note_id={delivery_note_id}

Tags can only be returned for a particular delivery note.
Therefore delivery_note_id is a mandatory parameter.

<?xml version="1.0" encoding="UTF-8"?>
<delivery-note-tags type="array" page="1" per_page="100" total="2">
    <delivery-note-tag>
        ...
    <delivery-note-tag>
    <delivery-note-tag>
        ...
    <delivery-note-tag>
</delivery-note-tags>

Get a single tag

GET /api/delivery-note-tags/{id}
<?xml version="1.0" encoding="UTF-8"?>
<delivery-note-tag>
    <id type="integer">1</id>
    <delivery_note_id type="integer">1</delivery_note_id>
    <name>foo</name>
</delivery-note-tag>

Create tag

POST /api/delivery-note-tags
XML element Description Type Default value Mandatory
delivery_note_id ID of the delivery note INT yestd>
name Name of the tag ALNUM yes
<delivery-note-tag>
    <delivery_note_id>1</delivery_note_id>
    <name>foo</name>
</delivery-note-tag>
<?xml version="1.0" encoding="UTF-8"?>
<delivery-note-tag>
    <id type="integer">1</id>
    <delivery_note_id type="integer">1</delivery_note_id>
    <name>foo</name>
</delivery-note-tag>

Delete tag

DELETE /api/delivery-note-tags/{id}