Log in
Interface

TaxRateInterface

Magento\Tax\Api\Data\TaxRateInterface

What it does

This interface defines the structure for tax rate data objects in Magento 2's tax system.

Developers use it to create, read, and manipulate tax rate entities that define tax percentages for specific geographic locations (country, region, postcode).

It's commonly used when implementing custom tax calculations, importing/exporting tax rates, or integrating with tax service APIs.

Public Methods

  • getId()
  • setId()
  • getTaxCountryId()
  • setTaxCountryId()
  • getTaxRegionId()
  • setTaxRegionId()
  • getRegionName()
  • setRegionName()
  • getTaxPostcode()
  • setTaxPostcode()
  • getZipIsRange()
  • setZipIsRange()
  • getZipFrom()
  • setZipFrom()
  • getZipTo()
  • setZipTo()
  • getRate()
  • setRate()
  • getCode()
  • setCode()
  • getTitles()
  • setTitles()
  • getExtensionAttributes()
  • setExtensionAttributes()