ClocknextClocknextHelp
DocumentationAPI ReferenceMCP Tools
Dashboard

Get started

OverviewQuickstart

Good to know

Response formatHandling errorsPaginating resultsSending data reliablyYour own customer idsWebhooks

API reference

Signals

Record credit POSTRecord outcome POSTComplete outcome POSTRecord wallet POSTRecord unit POSTComplete composite POSTList raw signals GETRetry signals POSTList Customer Usage Log GETLook Up Usage Logs by ID GET

Deprecated

Record credit POSTRecord outcome POSTComplete outcome POSTRecord wallet POSTRecord unit POSTComplete composite POSTList raw signals GETRetry signals POST

Customers

List customers GETCreate a customer POSTGet a customer GETUpdate a customer PATCHDelete a customer DELETEGet a customer's balances GETGet a customer's wallet ledger GETSet a customer's low-balance alert for wallet PUTGet a customer's current plan GETChange a recurring grant PUTUpdate a customer's card POSTGet a customer's invoice balance GETAdjust a customer's invoice balance POST

Deprecated

List Customer Usage Log GETLook Up Usage Logs by ID GET

Manage

Manage a customer's credit balance POSTManage a customer's outcome balance POSTManage a customer's unit balance POSTManage a customer's composite balance POSTManage a customer's wallet balance POST

Members

List a customer's members GETAdd a member POSTUpdate a member PATCHRemove a member DELETE

Plans and Entitlements

PlansPackagesCreditsOutcomesUnitsComposites

Taxes

List taxes GETCreate a tax POSTGet a tax GETUpdate a tax PATCH

Purchases

List purchases GETCreate a purchase POSTGet a purchase GETUpdate a purchase's auto-payment setting PATCHCancel a purchase POST

Checkout

Create a checkout POST

Subscriptions

List subscriptions GETGet a subscription GETCancel a subscription POSTAdd packages to a subscription POSTRemove a package from a subscription POST

Plan changes

List plan changes GETPreview a plan change POSTChange a customer's plan POSTGet a plan change GET

Invoices

List invoices GETGet an invoice GETMint a hosted pay link GETRecord a payment POST

Credit notes

List credit notes GETCreate a credit note POSTGet a credit note GETVoid a credit note POST

Refunds

List refunds GETRefund to the card POSTGet a refund GET

Payments

List payments GETGet a payment GET

Webhooks

Customer Portal

Mint a customer-portal access token POST

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

PATCH
/taxes/{id}

Authorization

apiKey
headerAuthorizationBearer <cnk_…>

Organisation-scoped key from Settings → API Keys.

Path Parameters

id*string

Tax id.

Request Body

application/json
  1. body
  1. body
  2. …

Send only the fields to change.

name?string

Shown on invoices. Unique among active taxes in the same country, ignoring case.

Length1 <= length <= 100
description?|

Optional note for your team. Not shown to customers.

Lengthlength <= 500
percentage?number

The tax rate in percent, from 0 to 100. Only invoices issued after the change use the new rate.

Range0 <= value <= 100
countryCode?string

ISO 3166-1 alpha-2 country code. Lower case is accepted and stored upper case; a country name is refused.

behavior?string

inclusive — already inside the price. exclusive — added on top.

Value in"inclusive""exclusive"

Response Body

Tax updated.

application/json
  1. response
  1. response
  2. …
statusCode*integer

The 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"}'
Example Response
{  "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.

FieldTypeRequiredDescription
namestringnoShown on invoices. Unique among active taxes in the same country, ignoring case.
descriptionstring | nullnoOptional note for your team. Not shown to customers.
percentagenumbernoThe tax rate in percent, from 0 to 100. Only invoices issued after the change use the new rate.
countryCodestringnoISO 3166-1 alpha-2 country code. Lower case is accepted and stored upper case; a country name is refused.
behavior"inclusive" | "exclusive"noinclusive — already inside the price. exclusive — added on top.

Tax

FieldTypeRequiredDescription
idstringyesThe tax's id.
namestringyesShown on invoices. Unique among active taxes in the same country, ignoring case.
descriptionstring | nullyesOptional note for your team. Not shown to customers.
percentagenumberyesThe tax rate in percent, from 0 to 100. 18 means 18%.
countryCodestringyesISO 3166-1 alpha-2 country code. Lower case is accepted and stored upper case; a country name is refused.
behavior"inclusive" | "exclusive"yesinclusive — already inside the price. exclusive — added on top.
isActivebooleanyesfalse once archived in Settings → Taxes. An archived tax no longer applies to new invoices. Read-only.
createdAtstringyesWhen the tax was created.
updatedAtstringyesWhen 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`.