Base URL https://payments.clocknext.com/api/v1
Partial update. Any field sent as null clears that optional column; omitted fields are left untouched. An externalId already held by another active customer is a 409.
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
id*stringCustomer id.
application/json- body
All fields optional; omitted fields are left untouched.
externalId?|Your own id for the customer: 1–64 letters, numbers or "-". Case-sensitive.
^[A-Za-z0-9-]{1,64}$1 <= length <= 64name?stringThe customer's name: 1–120 characters. Spaces at the start and end are removed.
1 <= length <= 120description?|Your own note about the customer, up to 500 characters. null clears it.
length <= 500email?stringThe customer's billing email. Must be a valid email address. Cannot be null.
emaillength <= 200website?|The customer's website. ClockNext uses it to find the customer's logo. null clears it.
length <= 200phone?|The customer's phone number, with 7 to 15 digits. +, -, (, ) and spaces are allowed. null clears it.
length <= 40legalName?|The customer's registered company name. Invoices show it in place of name. null clears it.
length <= 200addressLine1?|The first line of the billing address. null clears it.
length <= 200city?|The city of the billing address. null clears it.
length <= 100state?|The state or region of the billing address. null clears it.
length <= 100country?|Billing country. Decides which taxes apply to the customer's invoices.
length <= 100pincode?|The postal code of the billing address. null clears it.
length <= 20taxId?|The customer's tax id. Invoices show it as "Tax ID". null clears it.
length <= 60currencyCode?stringISO 4217 code enabled in your workspace. Defaults to the workspace's primary currency.
3 <= length <= 3A single customer.
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 customer, in customer.
curl -X PATCH 'https://payments.clocknext.com/api/v1/customers/cus_abc123' \ -H 'Content-Type: application/json' \ -d '{ "phone": "+91 80 4567 8900", "website": "https://fabrikam.in", "legalName": "Fabrikam Analytics Pvt Ltd", "addressLine1": "12 MG Road"}'{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "Request processed successfully." }, "result": { "customer": { "id": "cmvgv9dyg000607ii9z6oghzf", "externalId": "fabrikam-org", "slug": "fabrikam-analytics", "name": "Fabrikam Analytics", "description": null, "email": "finance@fabrikam.in", "website": "https://fabrikam.in", "phone": "+91 80 4567 8900", "legalName": "Fabrikam Analytics Pvt Ltd", "addressLine1": "12 MG Road", "city": "Bengaluru", "state": "Karnataka", "country": "India", "pincode": "560001", "taxId": "29ABCDE1234F1Z5", "currencyCode": "USD", "createdAt": "2026-10-20T15:57:07.432Z", "updatedAt": "2026-10-20T16:10:36.856Z" } }}Base URL https://payments.clocknext.com/api/v1
The same call, addressed by the customer's externalId. Same body and response. Sending a new externalId in the body changes it (or null clears it) — after that, address the customer by the new value.
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
externalId*stringYour own id for the customer: 1–64 letters, numbers or "-". Case-sensitive.
^[A-Za-z0-9-]{1,64}$1 <= length <= 64application/json- body
All fields optional; omitted fields are left untouched.
externalId?|Your own id for the customer: 1–64 letters, numbers or "-". Case-sensitive.
^[A-Za-z0-9-]{1,64}$1 <= length <= 64name?stringThe customer's name: 1–120 characters. Spaces at the start and end are removed.
1 <= length <= 120description?|Your own note about the customer, up to 500 characters. null clears it.
length <= 500email?stringThe customer's billing email. Must be a valid email address. Cannot be null.
emaillength <= 200website?|The customer's website. ClockNext uses it to find the customer's logo. null clears it.
length <= 200phone?|The customer's phone number, with 7 to 15 digits. +, -, (, ) and spaces are allowed. null clears it.
length <= 40legalName?|The customer's registered company name. Invoices show it in place of name. null clears it.
length <= 200addressLine1?|The first line of the billing address. null clears it.
length <= 200city?|The city of the billing address. null clears it.
length <= 100state?|The state or region of the billing address. null clears it.
length <= 100country?|Billing country. Decides which taxes apply to the customer's invoices.
length <= 100pincode?|The postal code of the billing address. null clears it.
length <= 20taxId?|The customer's tax id. Invoices show it as "Tax ID". null clears it.
length <= 60currencyCode?stringISO 4217 code enabled in your workspace. Defaults to the workspace's primary currency.
3 <= length <= 3A single customer.
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 customer, in customer.
curl -X PATCH 'https://payments.clocknext.com/api/v1/customers/ext/string' \ -H 'Content-Type: application/json' \ -d '{ "legalName": "Tailspin Studios GmbH", "taxId": "DE123456789", "addressLine1": "Friedrichstraße 68", "pincode": "10117"}'{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "Request processed successfully." }, "result": { "customer": { "id": "cmvgv9ebb000707iipffdxzwj", "externalId": "tailspin-org", "slug": "tailspin-studios", "name": "Tailspin Studios", "description": null, "email": "ops@tailspinstudios.de", "website": null, "phone": null, "legalName": "Tailspin Studios GmbH", "addressLine1": "Friedrichstraße 68", "city": "Berlin", "state": null, "country": "Germany", "pincode": "10117", "taxId": "DE123456789", "currencyCode": "USD", "createdAt": "2026-10-20T15:57:07.895Z", "updatedAt": "2026-10-20T16:10:37.361Z" } }}Types
Every object type on this page, with its fields.
CustomerPatchInput
Editable customer profile fields. null clears an optional field; name and email are required and can't be null. recurringTransactionEmail and autoRecurring are ignored: they are organisation settings now.
| Field | Type | Required | Description |
|---|---|---|---|
externalId | string | null | no | Your own id for the customer: 1–64 letters, numbers or "-". Case-sensitive. |
name | string | no | The customer's name: 1–120 characters. Spaces at the start and end are removed. |
description | string | null | no | Your own note about the customer, up to 500 characters. null clears it. |
email | string | no | The customer's billing email. Must be a valid email address. Cannot be null. |
website | string | null | no | The customer's website. ClockNext uses it to find the customer's logo. null clears it. |
phone | string | null | no | The customer's phone number, with 7 to 15 digits. +, -, (, ) and spaces are allowed. null clears it. |
legalName | string | null | no | The customer's registered company name. Invoices show it in place of name. null clears it. |
addressLine1 | string | null | no | The first line of the billing address. null clears it. |
city | string | null | no | The city of the billing address. null clears it. |
state | string | null | no | The state or region of the billing address. null clears it. |
country | string | null | no | Billing country. Decides which taxes apply to the customer's invoices. |
pincode | string | null | no | The postal code of the billing address. null clears it. |
taxId | string | null | no | The customer's tax id. Invoices show it as "Tax ID". null clears it. |
currencyCode | string | no | ISO 4217 code enabled in your workspace. Defaults to the workspace's primary currency. |
Customer
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | The customer's ClockNext id. Use it in /customers/{id} paths and as customerId in other calls. |
externalId | string | null | no | Your own id for the customer: 1–64 letters, numbers or "-". Case-sensitive. |
slug | string | yes | A short, unique name made from name at creation (lower case, - between words). It never changes. |
name | string | yes | The customer's name. |
description | string | null | no | Your own note about the customer. null when not set. |
email | string | no | The customer's billing email. |
website | string | null | no | The customer's website. ClockNext uses it to find the customer's logo. null when not set. |
phone | string | null | no | The customer's phone number. null when not set. |
legalName | string | null | no | The customer's registered company name. Invoices show it in place of name. null when not set. |
addressLine1 | string | null | no | The first line of the billing address. null when not set. |
city | string | null | no | The city of the billing address. null when not set. |
state | string | null | no | The state or region of the billing address. null when not set. |
country | string | null | no | Billing country. It decides which taxes apply; no country means no tax. |
pincode | string | null | no | The postal code of the billing address. null when not set. |
taxId | string | null | no | The customer's tax id. Invoices show it as "Tax ID". null when not set. |
currencyCode | string | yes | The 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. |
createdAt | string | yes | When the customer was created. |
updatedAt | string | yes | When the customer was last changed. |