Update tax rule

Updates a tax rule.

Path Params
string
required
length between 1 and 100
[a-zA-Z0-9_.~-]{1,100}

Must have size between 1 and 100 and match with the regular expression '[a-zA-Z0-9_.~-]{1,100}'.

Body Params
applicableCustomerTypes
array of strings, unique
Defaults to []

Set of customer types for which rule applies. If nothing is specified, the rule will be apply to all options. Currently the following are supported: 'AFFILIATED', 'B2B', 'B2C', and 'OTHER'.

applicableCustomerTypes
applicableInvoiceAddressCountries
array of strings, unique
Defaults to []

Set of countries the invoice address to which the rule should apply.

applicableInvoiceAddressCountries
applicablePurchaseItemTypes
array of strings, unique
Defaults to []

Set of purchase item types for which rule applies. If nothing is specified, the rule will be apply to all options.
Currently the following are supported: 'DIGITAL_PRODUCT', 'DIGITAL_PRODUCT_RENTAL', 'ELECTRICITY', 'ELECTRICITY_RESALE',
'LABOR_COST', 'LOGISTIC_COST', 'PHYSICAL_PRODUCT', 'PHYSICAL_PRODUCT_RENTAL', 'SERVICE', 'VOUCHER'.

applicablePurchaseItemTypes
applicableRegions
array of strings, unique
Defaults to []

Set of regions for which rule applies. If nothing is specified, the rule will be apply to all options.

applicableRegions
applicableTaxClassifications
array of strings, unique
Defaults to []

This is the set of tax classification codes to which the rule applies. If nothing is specified, the rule will be apply to all options.

applicableTaxClassifications
string | null

Country of the operating site to which the rule should apply. Must be a valid alpha-2 ('DE') code. If it is set to null, then all countries will be applied.

boolean | null

Include/Exclude customers having a VAT ID for this rule. true=customer must have a VAT ID, false=customer must not have a VAT ID, null=customer can have or not have a VAT ID.

string
required

Must be the country for which rule should be applied. Must be a valid alpha-2 ('DE') code.
Must not be null.

taxRuleVariants
array of objects, unique
Defaults to []
deprecated

Tax rule variants can not be updated, when updating the tax rule. Please use the dedicated tax rule variant endpoint.

taxRuleVariants
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json