Tax Categories

Tax Categories define how products are to be taxed in different countries.

Also see the tax categories HTTP API documentation.

Example Usage

resource "commercetools_tax_category" "standard" {
  name = "Standard tax category"
  rate {
    name = "19% MwSt"
    amount = 0.19
    included_in_price = false
    country = "DE"
  }
  rate {
    name = "21% BTW"
    amount = 0.21
    country = "NL"
    included_in_price = false
  }
  rate {
    name = "5% US"
    amount = 0.05
    country = "US"
    included_in_price = true
  }
}

Argument Reference

The following arguments are supported:

  • name - Name of the tax category
  • key - (Optional) User-specific unique identifier for the category
  • description - (Optional) Description of the tax category
  • rate - Can be 1 or more rates

Rates

Tax Rates defines specific rates.

These can have the following arguments:

  • name - Tax rate name
  • amount - Number Percentage in the range of [0..1]. The sum of the amounts of all sub rates, if there are any
  • include_in_price
  • country - A two-digit country code as per ISO 3166-1 alpha-2
  • state - (Optional) The state in the country
  • sub_rate - Can be 1 or more subrates

Sub rates

A SubRate is used to calculate the taxPortions field in a cart or order. It is useful if the total tax of a country is a combination of multiple taxes (e.g. state and local taxes).

These can have the following arguments:

  • name
  • amount - Number Percentage in the range of [0..1]