This GET method allows you to retrieve a list of tax codes as configured in the user’s administration.
- Request
- Response
Parameters
CURL Example
1 |
curl -X GET -H "Content-Type: application/json" -H "ApiKey: b7d343Bnhd436f3ec3bd3504582" -H "Username: john@doe.nl" "https://rest-api.silvasoft.nl/rest/listtaxcodes/" |
Parameters
TaxExempt
Boolean (true|false)
More info
Whether the tax booked on this tax code is exempt or not
TaxPc
Float
More info
The tax percentages as a number (example: 9.00 or 21.00)
TaxCode
String
More info
The tax code which is a combination of the tax name and the tax percentages. The tax code is used in other API endpoints as well to idenitfy a tax item.
Name
String
More info
A user-given name for this tax code
TaxType
String
More info
Either 'Purchase' or 'Sales'. Please note tax codes of type 'Purchase' can only be used for purchase endpoints (purchasetransactions). Tax codes of type 'Sales' can only be used with sales endpoints (salesinvoice, salestransaction, orders)
Response JSON Example
The response order can vary from the parameter order above
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
[ { "TaxExempt": false, "TaxType": "Purchase", "TaxPc": "21.0", "TaxCode": "21.0% - high", "Name": "high" }, { "TaxExempt": false, "TaxType": "Purchase", "TaxPc": "9.0", "TaxCode": "9.0% - low", "Name": "low" }, { "TaxExempt": false, "TaxType": "Sales", "TaxPc": "20.0", "TaxCode": "20.0% - high", "Name": "high" }, { "TaxExempt": false, "TaxType": "Sales", "TaxPc": "27.0", "TaxCode": "27.0% - high", "Name": "high" } ] |