# Calculate Taxes Endpoints related to calculating and retrieving tax information. ## Tax codes - [GET /taxes/codes](https://docs.vyafac.com/openapi/calculate-taxes/gettaxcodes.md): Retrieve a list of available tax codes, including their names and descriptions. These tax codes can be used to classify products or services for automated tax calculation. ## Calculate tax - [POST /taxes/calculate](https://docs.vyafac.com/openapi/calculate-taxes/calculatetax.md): Calculate tax based on the provided location, product details, and amount. Note: - The to_state field is required for validating the postal code. - The tax is calculated using the provided to_country, to_postal_code, to_state, to_city, tax_code, product_type, and amount fields. - The response returns tax details such as rate, subtotal, tax amount, total amount, and applicable region information.