Note |
---|
Line item type is a synonym for product type. Product type is the internal name as the data resides in the product table while line item type is the term often used when when talking about its use cases. For example, when referring to an invoice you usually think of line items and line type types like parts, labor, and travel. Saying a travel product type does not always make sense. |
TaxRate Object Formats
Include Page | ||||
---|---|---|---|---|
|
TaxRate Object Properties
Required properties are in bold.
Property | Type | Description | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
OrderTypes | collection | A collection of tax definitions grouped by work order type.
|
Example
In this example the TaxRate object JSON has defined tax rates for two different work order types.
The first tax rate definition is for work orders of type 1001 (Install). This definition includes a tax rate of 6% for products of type 1001 (parts).
The second tax rate definition is for work orders of type 1005 (repair). This definition includes a tax rate of 6% for products of type 1001 (parts), a tax rate of 4% for products of type 1002 (labor), and finally a tax rate of 6% for products of type 1005 (travel).
This TaxRate object definition would then be associated with a specific zip code through the Tax REST API. When a technician visits an customer with the same zip code this table would be used to calculate the taxes.
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
{ "OrderTypes": [ { "OrderType": "1001", "ProdTypes": { "1001": 6 } }, { "OrderType": "1005", "ProdTypes": { "1001": 6, "1002": 4, "1005": 6 } } ] } |