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

List customers

Cursor-paginated list of the organisation's customers. A cursor that is not a customer of this workspace is a 400 "Invalid cursor.", never an empty last page.

Base URL https://payments.clocknext.com/api/v1

GET
/customers

Authorization

apiKey
headerAuthorizationBearer <cnk_…>

Organisation-scoped key from Settings → API Keys.

Query Parameters

limit?integer

Maximum rows to return. Must be a positive number; clamped to 1–200.

Range1 <= value <= 200
Default50
q?string

Case-insensitive contains-match on name OR email.

cursor?string

Id to page after — the last id of the previous page.

Response Body

A page of customers.

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*

One page of customers, and the cursor for the next page.

Example Request
curl -X GET 'https://payments.clocknext.com/api/v1/customers?limit=25&q=acme&cursor=cus_zzz789'
Example Response
{  "statusCode": 200,  "statusDetail": {    "status": "SUCCESS",    "message": "Request processed successfully."  },  "result": {    "customers": [      {        "id": "cmvgvkmf8002g08l2fzig1thk",        "externalId": "proseware",        "slug": "proseware",        "name": "Proseware",        "description": null,        "email": "accounts@proseware.com",        "website": null,        "phone": null,        "legalName": null,        "addressLine1": null,        "city": null,        "state": null,        "country": "Canada",        "pincode": null,        "taxId": null,        "currencyCode": "USD",        "createdAt": "2026-10-20T16:05:51.620Z",        "updatedAt": "2026-10-20T16:05:51.620Z"      },      {        "id": "cmvgvklx5002f08l2875y93k8",        "externalId": "litware",        "slug": "litware-inc",        "name": "Litware Inc",        "description": null,        "email": "billing@litware.com",        "website": null,        "phone": null,        "legalName": null,        "addressLine1": null,        "city": null,        "state": null,        "country": "United States",        "pincode": null,        "taxId": null,        "currencyCode": "USD",        "createdAt": "2026-10-20T16:05:50.969Z",        "updatedAt": "2026-10-20T16:06:38.088Z"      },      {        "id": "cmvgva5po000c07iir1vtn8vl",        "externalId": "northwind",        "slug": "northwind-traders",        "name": "Northwind Traders",        "description": "Logistics customer — Pro plan",        "email": "billing@northwindtraders.com",        "website": "https://northwindtraders.com",        "phone": "+1 415 555 0142",        "legalName": "Northwind Traders Inc.",        "addressLine1": "500 Market Street",        "city": "San Francisco",        "state": "CA",        "country": "United States",        "pincode": "94105",        "taxId": "US-EIN 94-1234567",        "currencyCode": "USD",        "createdAt": "2026-10-20T15:57:43.404Z",        "updatedAt": "2026-10-20T16:19:32.517Z"      }    ],    "nextCursor": null  }}

Types

Every object type on this page, with its fields.

Customer

FieldTypeRequiredDescription
idstringyesThe customer's ClockNext id. Use it in /customers/{id} paths and as customerId in other calls.
externalIdstring | nullnoYour own id for the customer: 1–64 letters, numbers or "-". Case-sensitive.
slugstringyesA short, unique name made from name at creation (lower case, - between words). It never changes.
namestringyesThe customer's name.
descriptionstring | nullnoYour own note about the customer. null when not set.
emailstringnoThe customer's billing email.
websitestring | nullnoThe customer's website. ClockNext uses it to find the customer's logo. null when not set.
phonestring | nullnoThe customer's phone number. null when not set.
legalNamestring | nullnoThe customer's registered company name. Invoices show it in place of name. null when not set.
addressLine1string | nullnoThe first line of the billing address. null when not set.
citystring | nullnoThe city of the billing address. null when not set.
statestring | nullnoThe state or region of the billing address. null when not set.
countrystring | nullnoBilling country. It decides which taxes apply; no country means no tax.
pincodestring | nullnoThe postal code of the billing address. null when not set.
taxIdstring | nullnoThe customer's tax id. Invoices show it as "Tax ID". null when not set.
currencyCodestringyesThe customer's currency (ISO 4217), as a label. Clocknext converts no money: every invoice and charge is USD, and Stripe, Paddle or the customer's bank converts.
createdAtstringyesWhen the customer was created.
updatedAtstringyesWhen the customer was last changed.

Retry signals POST

Deprecated. Use [Retry signals](/docs/api-reference/signals/eventsRetrySignals) on `events.clocknext.com`; `@clocknext/sdk` 0.20 and later already do. Sends 1 to 50 `PENDING` signals again. A signal gets 11 attempts, then becomes `REJECTED`.

Create a customer POST

Creates a customer in the organisation the API key belongs to.