Create a tax
Creates a tax for one country. Two active taxes can't share a name (ignoring case) in the same country — that's a 409. isActive can't be sent.
Base URL https://payments.clocknext.com/api/v1
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
application/json- body
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. 18 means 18%.
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 created.
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 new tax rate.
curl -X POST 'https://payments.clocknext.com/api/v1/taxes' \ -H 'Content-Type: application/json' \ -d '{ "name": "California Sales Tax", "percentage": 7.25, "countryCode": "US", "behavior": "exclusive", "description": "State sales tax for California customers"}'{ "statusCode": 201, "statusDetail": { "status": "SUCCESS", "message": "Tax created." }, "result": { "created": true, "tax": { "id": "cmvgv90dv000j08l5sbtoaa70", "name": "California Sales Tax", "description": "State sales tax for California customers", "percentage": 7.25, "countryCode": "US", "behavior": "exclusive", "isActive": true, "createdAt": "2026-10-20T15:56:49.843Z", "updatedAt": "2026-10-20T15:56:49.843Z" } }}Types
Every object type on this page, with its fields.
CreateTaxInput
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | 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 | 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. |
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. |