# Resolve tax addresses

Validate address precision before calculating tax.

Stripe Tax calculates tax rates based on customer addresses, but some addresses don’t contain enough detail to determine an exact rate. For example, a US postal code can span multiple tax jurisdictions, so Stripe Tax could approximate the rate rather than calculate the exact rate for that address.

Use the Address Resolution API to check how precisely Stripe Tax can determine the tax rate for a given address before using it in a tax calculation. The API returns:

- The precision level at which Stripe Tax can determine the tax rate for the address
- The address fields to collect or update so Stripe Tax can determine a more precise tax rate

### Request to join the preview for the Address Resolution API.

Enter your email to request access.

```bash
curl https://docs.stripe.com/preview/register \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Referer: https://docs.stripe.com/tax/address-resolution" \
  -d '{"email": "EMAIL", "preview": "address_resolution_waitlist_preview"}'
```

## Resolve an address

[Set up Stripe Tax](https://docs.stripe.com/tax/set-up.md), then resolve the address using the Address Resolution API. The following example resolves a complete US address.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "US",
        "state": "CA",
        "city": "South San Francisco",
        "postal_code": "94080",
        "line1": "354 Oyster Point Blvd"
    }
  }'
```

The response includes the precision level, any issues that prevent a more precise rate, and the resolved address.

```json
{
  "precision": "address",
  "precision_details": {
    "issues": []
  },
  "address": {
    "country": "US",
    "state": "CA",
    "city": "South San Francisco",
    "postal_code": "94080",
    "line1": "354 Oyster Point Blvd"
  }
}
```

## Understand precision levels

The `precision` field tells you at what level of detail Stripe Tax can determine the tax rate when calculating tax for the given address. Precision levels from the highest to lowest level of detail are:

| Precision | Description |
| --- | --- |
| `address` | We can determine the tax rate for a specific address. This is the highest level of detail, and it’s only available in the US. |
| `street` | We can determine the tax rate for a street. For some addresses, this is the highest level of detail. |
| `postal_code` | We can determine the tax rate for a postal code area. In the US, this level usually leads to an approximated tax rate. |
| `city` | We can determine the tax rate for a city-level area. |
| `state` | We can determine the tax rate for a state or province. For countries such as Canada and India, this is the highest level of detail available. |
| `country` | We can determine the tax rate for a country. For most countries outside North America, a single tax rate applies nationwide. |
| `none` | The address doesn’t contain enough information to determine any tax rate. |

If `precision` isn’t `none`, we can use the address in tax calculations. However, a lower level of detail (less precision) might result in an approximated tax rate when a more precise rate exists for that location.

### How precision relates to tax accuracy

The key signal is the combination of `precision` and `precision_details.issues`:

- **Empty `issues` array**: Stripe Tax determines the most accurate tax rate possible for this address. There’s no additional information you can collect from the customer to get a more precise rate. For example, a US address at `street` precision with no issues means every address on that street has the same tax rate.
- **Non-empty `issues` array**: A more precise tax rate might exist for this location, but the input address doesn’t have enough detail to determine it. Collect or update the fields listed in `issues` to improve the precision.

### Best precision by country

The number of details available to determine tax rates varies by country. After the address reaches the best precision for its country, the `issues` array is empty:

| Country | Best precision | Required fields |
| --- | --- | --- |
| United States | `address` | `country`, `state`, `city`, `postal_code`, `line1` |
| Canada | `state` | `country`, and `state` or `postal_code` |
| India | `state` | `country`, and `state` or `postal_code` |
| Spain | `state` in the Canary Islands and Ceuta, `country` elsewhere | `country`, and `state` or `postal_code` |
| Other countries | `country` | `country` |

## Collect missing fields with issues

When a more precise tax rate exists but the address doesn’t have enough detail to determine it, the `precision_details.issues` array tells you which fields to collect from the customer. Each issue has:

- `field`: The address field to collect or update (`line1`, `city`, `postal_code`, `state`, or `country`).
- `code`: The type of issue. Currently, the only value is `required_for_improved_precision`, indicating that providing this field might allow Stripe Tax to determine a more precise tax rate.

The following example resolves a US address that doesn’t include a city or street address.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "US",
        "state": "CA",
        "postal_code": "94080"
    }
  }'
```

The response returns `postal_code` precision with issues for the missing fields.

```json
{
  "precision": "postal_code",
  "precision_details": {
    "issues": [
      {"field": "city", "code": "required_for_improved_precision"},
      {"field": "line1", "code": "required_for_improved_precision"}
    ]
  },
  "address": {
    "country": "US",
    "state": "CA",
    "postal_code": "94080"
  }
}
```

When `precision_details.issues` is empty, the address yields the most accurate tax rate that Stripe Tax can determine for that location. You don’t need to collect any additional information from the customer.

## Validate addresses in your integration

The typical flow for using address resolution in your integration is:

1. Collect an address from your customer.
2. Call the Address Resolution API to check precision.
3. If `precision_details.issues` contains entries, prompt the customer to provide or update the listed fields. This means a more accurate tax rate is available if the customer provides more address detail.
4. When `precision_details.issues` is empty, the address yields the most accurate tax rate possible.

### Validate before creating a customer

Resolve the address before you create the customer. If `precision` is `none`, Stripe Tax can’t calculate tax for that address.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "US",
        "state": "CA",
        "city": "South San Francisco",
        "postal_code": "94080",
        "line1": "354 Oyster Point Blvd"
    }
  }'
```

The `precision_details.issues` array in the response is empty, so the tax rate is as accurate as possible and you can create the customer.

```json
{
  "precision": "address",
  "precision_details": {
    "issues": []
  },
  "address": {
    "country": "US",
    "state": "CA",
    "city": "South San Francisco",
    "postal_code": "94080",
    "line1": "354 Oyster Point Blvd"
  }
}
```

If the response contains issues, a more precise tax rate is available. Prompt the customer to provide the listed fields before you create the customer. For example, the following response lists the missing `city` and `line1` fields.

```json
{
  "precision": "postal_code",
  "precision_details": {
    "issues": [
      {"field": "city", "code": "required_for_improved_precision"},
      {"field": "line1", "code": "required_for_improved_precision"}
    ]
  },
  "address": {
    "country": "US",
    "state": "CA",
    "postal_code": "94080"
  }
}
```

### Validate your origin address 

Resolve your business’s origin address before you configure your [tax settings](https://docs.stripe.com/tax/settings-api.md).

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "US",
        "state": "FL",
        "city": "Fort Lauderdale",
        "postal_code": "33301",
        "line1": "433 NE 8th Ave"
    }
  }'
```

The response has no issues, so you can use the address as your origin address.

```json
{
  "precision": "address",
  "precision_details": {
    "issues": []
  },
  "address": {
    "country": "US",
    "state": "FL",
    "city": "Fort Lauderdale",
    "postal_code": "33301",
    "line1": "433 NE 8th Ave"
  }
}
```

## Country-specific examples

Use these examples to compare precision levels and missing fields by country.

### United States

For US addresses, the best available precision is `address`. Tax rates in the US can vary down to the street address level, so providing all fields produces the most accurate tax rate.

A partial address returns lower precision with issues, indicating that a more precise tax rate might exist.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "US",
        "state": "FL",
        "postal_code": "32789"
    }
  }'
```

```json
{
  "precision": "postal_code",
  "precision_details": {
    "issues": [
      {"field": "city", "code": "required_for_improved_precision"},
      {"field": "line1", "code": "required_for_improved_precision"}
    ]
  },
  "address": {
    "country": "US",
    "state": "FL",
    "postal_code": "32789"
  }
}
```

A US address with only a state returns `none` precision because it doesn’t include the minimum required fields for a US address.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "US",
        "state": "FL"
    }
  }'
```

```json
{
  "precision": "none",
  "precision_details": {
    "issues": [
      {"field": "city", "code": "required_for_improved_precision"},
      {"field": "postal_code", "code": "required_for_improved_precision"},
      {"field": "line1", "code": "required_for_improved_precision"}
    ]
  },
  "address": {
    "country": "US",
    "state": "FL"
  }
}
```

### Canada

We determine tax rates for Canadian addresses at the province level. The best available precision is `state`. When you provide the state or postal code, the `issues` array is empty because the tax rate is as accurate as it can be.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "CA",
        "postal_code": "T2P 2P2"
    }
  }'
```

```json
{
  "precision": "state",
  "precision_details": {
    "issues": []
  },
  "address": {
    "country": "CA",
    "postal_code": "T2P 2P2"
  }
}
```

Providing only the country returns `country` precision with issues. Canada has different tax rates by province, so the `issues` array tells you to collect a state or postal code to determine the correct provincial rate.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "CA"
    }
  }'
```

```json
{
  "precision": "country",
  "precision_details": {
    "issues": [
      {"field": "state", "code": "required_for_improved_precision"},
      {"field": "postal_code", "code": "required_for_improved_precision"}
    ]
  },
  "address": {
    "country": "CA"
  }
}
```

### Spain

Spain has autonomous regions (Canary Islands and Ceuta) with different tax rates than mainland Spain. When the address resolves to one of these regions, the precision is `state` with an empty `issues` array, meaning the tax rate is as accurate as possible.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "ES",
        "postal_code": "38003"
    }
  }'
```

```json
{
  "precision": "state",
  "precision_details": {
    "issues": []
  },
  "address": {
    "country": "ES",
    "postal_code": "38003"
  }
}
```

When the address is in a state outside these regions (for example, Málaga), the precision is `country` and the `issues` array is empty. The national tax rate applies, and more address detail doesn’t produce a different rate.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "ES",
        "state": "MA"
    }
  }'
```

```json
{
  "precision": "country",
  "precision_details": {
    "issues": []
  },
  "address": {
    "country": "ES",
    "state": "MA"
  }
}
```

When you provide only the country, the `issues` array suggests collecting the `state` or `postal_code`. The API requires more detail to determine whether the customer is in an autonomous region with a different tax rate.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "ES"
    }
  }'
```

```json
{
  "precision": "country",
  "precision_details": {
    "issues": [
      {"field": "state", "code": "required_for_improved_precision"},
      {"field": "postal_code", "code": "required_for_improved_precision"}
    ]
  },
  "address": {
    "country": "ES"
  }
}
```

When you provide a postal code outside these regions without a state, the `issues` array suggests collecting the `state` field to confirm whether the customer is in an autonomous region.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "ES",
        "postal_code": "29001"
    }
  }'
```

```json
{
  "precision": "country",
  "precision_details": {
    "issues": [
      {"field": "state", "code": "required_for_improved_precision"}
    ]
  },
  "address": {
    "country": "ES",
    "postal_code": "29001"
  }
}
```

### Other countries

Most countries apply a single tax rate across their entire territory. For these countries, providing only the country code produces the most accurate tax rate. The empty `issues` array confirms there’s no more precise rate to determine.

```curl
curl -X POST https://api.stripe.com/v2/tax/operations/resolve_address \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  --json '{
    "address": {
        "country": "DE"
    }
  }'
```

```json
{
  "precision": "country",
  "precision_details": {
    "issues": []
  },
  "address": {
    "country": "DE"
  }
}
```

## Limitations

- The API doesn’t support `line2` because it doesn’t affect tax rates.
- Precision levels apply only to the Stripe Tax engine. If you use a third-party tax calculation engine, the same precision isn’t guaranteed.
- The API has a daily usage limit in both live mode and sandboxes. If you exceed it, the API returns a `resolve_address_usage_limit_exceeded` error with a `422` status code. To request a higher limit, contact [Stripe support](https://support.stripe.com/).

## Next steps

- [Collect customer addresses](https://docs.stripe.com/tax/customer-locations.md) to understand how Stripe Tax uses addresses for calculations.
- [Calculate tax with the Tax API](https://docs.stripe.com/tax/standalone-tax-api.md) to use validated addresses in tax calculations.
