Overview
No one likes taxes! But we have to deal with them… Lunar provides manual tax rules to implement the correct sales tax for each order. For complex taxation (e.g. US States) we suggest integrating with a service such as TaxJar.Tax Classes
Tax Classes are assigned to Products and allow us to classify products to certain taxable groups that may have differing tax rates.| Field | Description | 
|---|---|
| id | |
| name | e.g. Clothing | 
| created_at | |
| updated_at | 
Tax Zones
These specify a geographic zone for tax rates to be applied. Tax Zones can be based upon countries, states or zip/post codes.| Field | Description | 
|---|---|
| id | |
| name | e.g. UK | 
| zone_type | country, states, or postcodes | 
| price_display | tax_inclusive or tax_exclusive | 
| active | true/false | 
| default | true/false | 
| created_at | |
| updated_at | 
| Field | Description | 
|---|---|
| id | |
| tax_zone_id | |
| country_id | |
| created_at | |
| updated_at | 
| Field | Description | 
|---|---|
| id | |
| tax_zone_id | |
| state_id | |
| created_at | |
| updated_at | 
| Field | Description | 
|---|---|
| id | |
| tax_zone_id | |
| country_id | |
| postcode | wildcard, e.g. 9021* | 
| created_at | |
| updated_at | 
| Field | Description | 
|---|---|
| id | |
| tax_zone_id | |
| customer_group_id | |
| created_at | |
| updated_at | 
Tax Rates
Tax Zones have one or many tax rates. E.g. you might have a tax rate for the State and also the City, which would collectively make up the total tax amount.| Field | Description | 
|---|---|
| id | |
| tax_zone_id | |
| name | e.g. UK | 
| created_at | |
| updated_at | 
| Field | Description | 
|---|---|
| id | |
| tax_rate_id | |
| tax_class_id | |
| percentage | e.g. 6 for 6% | 
| created_at | |
| updated_at | 
Settings
- Shipping and other specific costs are assigned to tax classes in the settings.
 - Calculate tax based upon Shipping or Billing address?
 - Default Tax Zone