---
title: "tax.class.info"
method: GET
path: "/tax.class.info.json"
tags: ["tax"]
---

# tax.class.info

`GET /tax.class.info.json`

## Request

- Base URL: `https://api.api2cart.com/v1.1`
- URL: `https://api.api2cart.com/v1.1/tax.class.info.json`
- Auth: API key in header `x-api-key` and API key in header `x-store-key`

Use this method to get information about a tax class and its rates. It allows you to calculate the tax percentage for a specific customer's address. This information contains relatively static data that rarely changes, so API2Cart may cache certain data to reduce the load on the store and speed up request execution. We also recommend that you cache the response of this method on your side to save requests. If you need to clear the cache for a specific store, use the cart.validate method.

## Query parameters

- `tax_class_id` string, required
- `store_id` string
- `lang_id` string
- `response_fields` string
- `params` string
- `exclude` string

## Response `200`

successful operation

- ModelResponseTaxClassInfo
  - `return_code` integer, nullable
  - `return_message` string, nullable
  - `result` ResponseTaxClassInfoResult
    - `id` string
    - `name` string
    - `avail` boolean, nullable
    - `tax` number, nullable
    - `tax_type` integer, nullable
    - `created_at` A2CDateTime
      - `value` string, nullable
      - `format` string
      - `additional_fields` object, nullable
      - `custom_fields` object, nullable
    - `modified_at` A2CDateTime
      - `value` string, nullable
      - `format` string
      - `additional_fields` object, nullable
      - `custom_fields` object, nullable
    - `tax_rates` TaxClassRate[]
      - `id` string
      - `name` string
      - `tax` number
      - `tax_type` integer
      - `tax_based_on` string
      - `countries` TaxClassCountries[]
        - `id` string, nullable
        - `name` string
        - `code` string
        - `tax` number
        - `tax_type` integer
        - `states` TaxClassStates[]
          - `id` string, nullable
          - `tax` number
          - `tax_type` integer
          - `name` string
          - `code` string
          - `zip_codes` TaxClassZipCodes[]
            - `is_range` boolean
            - `range` string[]
            - `fields` TaxClassZipCodesRange[]
              - …
            - `additional_fields` object, nullable
            - `custom_fields` object, nullable
          - `additional_fields` object, nullable
          - `custom_fields` object, nullable
        - `additional_fields` object, nullable
        - `custom_fields` object, nullable
      - `cities` string[]
      - `address` string[]
      - `zip_codes` TaxClassZipCodes[]
        - `is_range` boolean
        - `range` string[]
        - `fields` TaxClassZipCodesRange[]
          - `from` string, nullable
          - `to` string, nullable
          - `additional_fields` object, nullable
          - `custom_fields` object, nullable
        - `additional_fields` object, nullable
        - `custom_fields` object, nullable
      - `additional_fields` object, nullable
      - `custom_fields` object, nullable
    - `additional_fields` object, nullable
    - `custom_fields` object, nullable
  - `additional_fields` object, nullable
  - `custom_fields` object, nullable

---

[API](https://skmtc.dev/api2cart/apis/api2cart-openapi.md) · [All operations](https://skmtc.dev/api2cart/apis/api2cart-openapi/llms.txt) · [OpenAPI document](https://skmtc.dev/api2cart/apis/api2cart-openapi/revisions/c34440741693?raw)
