Collecting Taxes
By default, Tilia does not collect taxes or pay taxes on your behalf. However, you can include additional line items in your invoices to charge your customers the requisite taxes.
Important
It is your responsibility to calculate tax amounts, charge your customers the appropriate tax rates, keep track of all taxes charged, and report your taxes correctly.
To add tax to a transaction
The exact steps for calculating and collecting taxes depends on your environment. In general, the process is as follows:
- Determine if the tax applies to a specific line item or items, or to the invoice as a whole.
- Decide if the tax should be presented as a single line item or multiple line items.
- Calculate the tax amount to be collected.
- Create a line item for each tax item you wish to include. The
transaction_type
for these line items should beuser_to_integrator
.
For example, to collect 10% tax on two line items, one for $7.00 and another for $3.00, you could add a tax line item for $1.00 (($7.00 + $3.00) * .1) = $1.00) to the invoice.
Example line item
"line_items": [
{
"amount": 100,
"currency": "USD",
"transaction_type": "user_to_integrator",
"reference_type": "your_reference_type",
"reference_id": "your_reference_id",
"product_sku": "your_tax_sku",
"description": "%% tax for <item>",
"metadata": "<any json object>"
}