Update a tax
Updates only the fields you send. Archived taxes can be edited and stay archived. Invoices already issued keep the tax they were issued with. Renaming onto another active tax in the same country is a 409.
Base URL https://payments.clocknext.com/api/v1
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
id*stringTax id.
application/json- body
Send only the fields to change.
name?stringShown on invoices. Unique among active taxes in the same country, ignoring case.
1 <= length <= 100description?|Optional note for your team. Not shown to customers.
length <= 500percentage?numberThe tax rate in percent, from 0 to 100. Only invoices issued after the change use the new rate.
0 <= value <= 100countryCode?stringISO 3166-1 alpha-2 country code. Lower case is accepted and stored upper case; a country name is refused.
behavior?stringinclusive — already inside the price. exclusive — added on top.
"inclusive""exclusive"Tax updated.
application/json- response
statusCode*integerThe HTTP status code of the response, repeated in the body.
statusDetail*The status of the request. status is SUCCESS, and message says what happened.
result*The updated tax rate.
curl -X PATCH 'https://payments.clocknext.com/api/v1/taxes/tax_7k2m9' \ -H 'Content-Type: application/json' \ -d '{ "percentage": 7.25, "description": "California base state sales tax rate"}'{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "Tax updated." }, "result": { "updated": true, "tax": { "id": "cmvgv90dv000j08l5sbtoaa70", "name": "California Sales Tax", "description": "California base state sales tax rate", "percentage": 7.25, "countryCode": "US", "behavior": "exclusive", "isActive": true, "createdAt": "2026-10-20T15:56:49.843Z", "updatedAt": "2026-10-20T16:05:16.151Z" } }}Types
Every object type on this page, with its fields.
UpdateTaxInput
Send only the fields to change.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | no | Shown on invoices. Unique among active taxes in the same country, ignoring case. |
description | string | null | no | Optional note for your team. Not shown to customers. |
percentage | number | no | The tax rate in percent, from 0 to 100. Only invoices issued after the change use the new rate. |
countryCode | string | no | ISO 3166-1 alpha-2 country code. Lower case is accepted and stored upper case; a country name is refused. |
behavior | "inclusive" | "exclusive" | no | inclusive — already inside the price. exclusive — added on top. |
Tax
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | The tax's id. |
name | string | yes | Shown on invoices. Unique among active taxes in the same country, ignoring case. |
description | string | null | yes | Optional note for your team. Not shown to customers. |
percentage | number | yes | The tax rate in percent, from 0 to 100. 18 means 18%. |
countryCode | string | yes | ISO 3166-1 alpha-2 country code. Lower case is accepted and stored upper case; a country name is refused. |
behavior | "inclusive" | "exclusive" | yes | inclusive — already inside the price. exclusive — added on top. |
isActive | boolean | yes | false once archived in Settings → Taxes. An archived tax no longer applies to new invoices. Read-only. |
createdAt | string | yes | When the tax was created. |
updatedAt | string | yes | When the tax was last changed. |
Get a tax GET
Gets one tax — the same row the list returns.
List purchases GET
The workspace's purchases, newest first. Filter by `customerId` or `status` (`COMPLETED`, `PENDING` or `CANCELLED`). Paged with `limit` (at most 50) and `cursor`; see [Paginating results](/docs/api-reference/pagination). Any other parameter is a `400`.