# Update Tax Updates an existing tax rate. Endpoint: PUT /api/v3/taxes/{id} Version: 3.1.0 Security: apiKeyAuth ## Query parameters: - `api_key` (string, required) Your API Key. Example: "YOUR_API_KEY" ## Path parameters: - `id` (string, required) Tax id ## Request fields (application/json): - `tax` (object, required) - `tax.name` (string) Must be unique among the account's taxes. Example: "IVA23" - `tax.value` (number) Percentage, from 0 to 100. Example: 23 - `tax.code` (string,null) Tax code. Not validated server-side and stored as sent; null when not set. Example: "NOR" - `tax.region` (string) Tax region. An ISO-3166 alpha-2 country code, plus the Portuguese autonomous regions PT-AC (Azores) and PT-MA (Madeira). Required, and checked against that list, unless name is Isento. Example: "PT" - `tax.default_tax` (integer) 1 makes this tax the account's default tax. Any other value (including 0) changes nothing: it does not unset the current default. Example: 1 ## Response 200 fields (application/json): - `tax` (object) - `tax.id` (integer) Example: 1 - `tax.name` (string) Example: "IVA23" - `tax.value` (number) Example: 23 - `tax.code` (string,null) Tax code. Not validated server-side and stored as sent; null when not set. Example: "NOR" - `tax.region` (string,null) Tax region. An ISO-3166 alpha-2 country code, plus the Portuguese autonomous regions PT-AC (Azores) and PT-MA (Madeira). May be null (the tax named Isento does not require a region). Example: "PT" - `tax.default_tax` (integer) Example: 1 ## Response 401 fields (application/json): - `errors` (array) Example: [{"error":"Authentication Error"}] - `errors.error` (string) ## Response 404 fields (application/json): - `errors` (array) Example: [{"error":"Resource not found"}] - `errors.error` (string) ## Response 422 fields (application/json): - `errors` (array) Example: [{"error":"An unexpected error occurred"}] - `errors.error` (string) ## Response 500 fields (application/json): - `errors` (array) Example: [{"error":"An unexpected error occurred"}] - `errors.error` (string)