put
https://api.duodeal.app/api/taxes/
Updates an existing tax rate by its ID.
Note: Changing a tax rate will not affect existing quotation lines. Only new lines or updated lines will use the new rate.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Tax unique identifier |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Tax name |
rate | float | No | Tax rate as decimal between 0 and 1 |
byDefault | boolean | No | Set as default tax rate |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Tax unique identifier |
name | string | Tax name |
rate | float | Tax rate as decimal |
byDefault | boolean | Whether this is the default tax rate |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
200 OK: Tax successfully updated400 Bad Request: Invalid request body or validation error401 Unauthorized: Invalid or missing API key404 Not Found: Tax not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Resource updated
400Bad request
401Unauthorized
404Resource not found
