> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QueryTaxZones

> Query for tax zones with nested country assignments, tax rates, and rate key assignments.



**query** `QueryTaxZones(first: Int, after: String, last: Int, before: String, where: TaxZoneFilterInput, order: [TaxZoneSortInput!]): QueryTaxZonesConnection`

## Arguments

**`first`**: `Int`

Returns the first _n_ elements from the list.

---

**`after`**: `String`

Returns the elements in the list that come after the specified cursor.

---

**`last`**: `Int`

Returns the last _n_ elements from the list.

---

**`before`**: `String`

Returns the elements in the list that come before the specified cursor.

---

**`where`**: `TaxZoneFilterInput`

---

**`order`**: `[TaxZoneSortInput!]`

## Returns

`QueryTaxZonesConnection`

**`pageInfo`**: `PageInfo!`

Information to aid in pagination.

---

**`edges`**: `[QueryTaxZonesEdge!]`

A list of edges.

---

**`nodes`**: `[TaxZone!]`

A flattened list of the nodes.

---

**`totalCount`**: `Int!`

Identifies the total count of items in the connection.

## Examples

```graphql Query
query QueryTaxZones {
  QueryTaxZones {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        id
        companyId
        name
        departureCountryIso
        vatIdB2B
        vatIdB2C
      }
    }
    nodes {
      id
      companyId
      name
      departureCountryIso
      vatIdB2B
      vatIdB2C
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "QueryTaxZones": {
      "pageInfo": {
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string",
        "endCursor": "string"
      },
      "edges": [
        {
          "cursor": "string",
          "node": {
            "id": "id",
            "companyId": "id",
            "name": "string",
            "departureCountryIso": "string",
            "vatIdB2B": "FROM_DETERMINATION",
            "vatIdB2C": "FROM_DETERMINATION"
          }
        }
      ],
      "nodes": [
        {
          "id": "id",
          "companyId": "id",
          "name": "string",
          "departureCountryIso": "string",
          "vatIdB2B": "FROM_DETERMINATION",
          "vatIdB2C": "FROM_DETERMINATION"
        }
      ],
      "totalCount": 1
    }
  }
}
```
