This figure depicts the main models and their relationships.
Some of the fields in the diagram are not up-to-date. Please refer to bellow specifications.
Tax)Represents the tax rates to be applied to product items through tax rules and calculated with at the cart item level.
id identifier, required: string<UUIDv4>) Autogenerated identifier for the tax.code identifier, required: string<[a-zA-Z0-9-_]+>, max length 50) Human friendly code to identify the tax.description: string) Description of the tax. Defaults to undefined interpreted as "".rate, required: float<range[0.0, 100.0]>) Rate in percentage from 0.0 to 100.0.TaxRule)Represets the coditions to apply each specific tax depending on customers, products and addresses.
id identifier, required: string<UUIDv4>) Autogenerated identifier for the tax rule.title: string) Title of the rule to be easily identified by humans. Defaults to undefined interpreted as "".description: string) Description for the rule. Defaults to undefined interpreted as "".enabled: boolean) Yes/no value to enable/disable the rule. Defaults to undefined interpreted as true.taxId, required, ref<Tax>: string) Reference to the tax to be applied whe the rule condition are met.customerTaxClassId, required, ref<CustomerTaxClass>: string) Tax class code to identify the class of customers which the tax applies to.productTaxClassId, required, ref<ProductTaxClass>: string) Tax class code to identify the class of products which the tax applies to.zoneId, required, ref<TaxZone>: string) Identifier of the geographic zone where the tax applies.TaxZone)Represents the geographic zones where taxes are applied.
id identifier, required: string<UUIDv4>) Autogenerated identifier for the tax zone.name: string) Name of the tax zone to be easily identified by humans. Defaults to undefined interpreted as "".description: string) Description for the tax zone. Defaults to undefined interpreted as "".countryCode, required: string<ISO_3166-1_alpha-2>) Country code in ISO_3166-1_alpha-2 format.regionCode: string) Region identifier. It can refer to a state, province, or other possible political division in a country. Defaults to undefined interpreted as "All the regions in the country".postalCodeFrom: string) The starting postal code of the range. If the other limit of the range is not specified, this one refers to a specific postal code. If no postal codes specified in all the range, it is interpreted as "All the postal codes". Defaults to undefined.postalCodeTo: string) The ending postal code of the range. If the other limit of the range is not specified, this one refers to a specific postal code. Defaults to undefined.CustomerTaxClass)Represents the identifiers to classify customers according to their applied taxes.
id identifier, required: string<UUIDv4>) Autogenerated identifier for the customer tax class.code identifier, required: string<[a-zA-Z0-9-_]+>, max length 50) Human friendly code to identify the customer tax class.description: string) Description for the customer tax class. Defaults to undefined interpreted as "".ProductTaxClass)Represents the identifiers to classify products according to their applied taxes.
id identifier, required: string<UUIDv4>) Autogenerated identifier for the product tax class.code identifier, required: string<[a-zA-Z0-9-_]+>, max length 50) Human friendly code to identify the product tax class.description: string) Description for the product tax class. Defaults to undefined interpreted as "".