GET /api/taxes
<?xml version="1.0" encoding="UTF-8"?> <taxes type="array"> <tax> ... </tax> <tax> ... </tax> </taxes>
GET /api/taxes/{id}
<?xml version="1.0" encoding="UTF-8"?> <tax> <id type="integer">7</id> <account_id type="integer">1</account_id> <name>VAT</name> <rate type="float">19</rate> <is_default type="integer">1</is_default> </tax>
POST /api/taxes
XML element | Description | Type | Default value | Mandatory |
---|---|---|---|---|
name | Name of the tax rate | ALNUM | yes | |
rate | Tax rate in percent | FLOAT | yes | |
is_default | Specifies whether this is the standard tax rate (1=yes, 0=no) | BOOL | 0 | yes |
<tax> <name>VAT</name> <rate>19</rate> <is_default>1</is_default> </tax>
<?xml version="1.0" encoding="UTF-8"?> <tax> <id type="integer">11</id> <account_id type="integer">1</account_id> <name>VAT</name> <rate type"float">19</rate> <is_default type="integer">1</is_default> </tax>
PUT /api/taxes/{id}
<tax> <name>VAT</name> <rate>19</rate> <is_default>1</is_default> </tax>
DELETE /api/taxes/{id}