---
title: "Update tax association"
method: PUT
path: "/taxes/associations/{id}"
tags: ["Tax Associations"]
---

# Update tax association

`PUT /taxes/associations/{id}`

Use when changing a tax association (e.g. switch rate or entity). Request body contains the fields to update.

## Path parameters

- `id` string, required

## Request body

- TaxAssociationUpdateRequest
  - `auto_apply` boolean
  - `metadata` object
  - `priority` integer

## Response `200`

OK

- TaxAssociationResponse
  - `auto_apply` boolean — Whether this tax should be automatically applied
  - `created_at` string, date-time
  - `created_by` string
  - `currency` string — Currency
  - `end_date` string, date-time — EndDate is the optional date until which this association is active
  - `entity_id` string — ID of the entity this tax rate applies to
  - `entity_type` 'customer' | 'subscription' | 'invoice' | 'tenant'
  - `environment_id` string — EnvironmentID is the ID of the environment this tax rate config belongs to
  - `id` string — ID of the ent.
  - `metadata` object — Metadata holds the value of the "metadata" field.
  - `priority` integer — Priority for tax resolution (lower number = higher priority)
  - `start_date` string, date-time — StartDate is the date from which this association is active
  - `status` 'published' | 'deleted' | 'archived'
  - `tax_rate` TaxRateResponse
    - `code` string
    - `created_at` string, date-time
    - `created_by` string
    - `description` string
    - `environment_id` string
    - `fixed_value` string
    - `id` string
    - `metadata` object
    - `name` string
    - `percentage_value` string
    - `scope` 'INTERNAL' | 'EXTERNAL' | 'ONETIME'
    - `status` 'published' | 'deleted' | 'archived'
    - `tax_rate_status` 'ACTIVE' | 'INACTIVE'
    - `tax_rate_type` 'percentage' | 'fixed'
    - `tenant_id` string
    - `updated_at` string, date-time
    - `updated_by` string
  - `tax_rate_id` string — Reference to the TaxRate entity
  - `tenant_id` string
  - `updated_at` string, date-time
  - `updated_by` string

## Other responses

- `400` — Invalid request
- `500` — Server error

---

[API](https://skmtc.net/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.net/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/562f13cf61dd/schema)
