Tax model keeps track of tax types, such as VAT type, Sales Tax type etc. It can have from one to many tax rate records.

GET
Retrieve tax types

_cnd[limit]
array 
Sets the offset (first item) and the limit (second item)
_cnd[orderBy]
array 
Sets sorting order field
default Success <XLite\Module\CDev\SalesTax\Model\Tax>[] array
Sample response
[{"id":"integer","enabled":"boolean","rates":"<XLite\\Module\\CDev\\SalesTax\\Model\\Tax\\Rate>[] array"}]

GET
Retrieve tax type by id

id
integer Required
Id value of the Tax object
default Success <XLite\Module\CDev\SalesTax\Model\Tax>
Sample response
{"id":"integer","enabled":"boolean","rates":"<XLite\\Module\\CDev\\SalesTax\\Model\\Tax\\Rate>[] array"}
id
integer
Tax unique ID
enabled
boolean
Enabled
rates
[] array
Tax rates (relation)

PUT
Update tax type by id

id
integer Required
Id value of the Tax object
<XLite\Module\CDev\SalesTax\Model\Tax>
id
integer
Tax unique ID
enabled
boolean
Enabled
rates
[] array
Tax rates (relation)
default Success <XLite\Module\CDev\SalesTax\Model\Tax>
Sample response
{"id":"integer","enabled":"boolean","rates":"<XLite\\Module\\CDev\\SalesTax\\Model\\Tax\\Rate>[] array"}
id
integer
Tax unique ID
enabled
boolean
Enabled
rates
[] array
Tax rates (relation)