List all tags (tagcloud)

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

List all tags for an invoice

GET /api/offer-tags?offer_id={offer_id}

Tags can only be returned for a particular estimate.
Therefore offer_id is a mandatory parameter.

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

Get single tag

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

Create tag

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

Delete tag

DELETE /api/offer-tags/{id}