Create a customer
Creates a customer in the organisation the API key belongs to.
Base URL https://payments.clocknext.com/api/v1
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
application/json- body
Only name and email are required; every other field is optional and can be filled in later via update.
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 <= 3Customer 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 customer and its id.
curl -X POST 'https://payments.clocknext.com/api/v1/customers' \ -H 'Content-Type: application/json' \ -d '{ "name": "Northwind Traders", "email": "billing@northwindtraders.com", "externalId": "northwind", "description": "Logistics customer — Pro plan", "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"}'{ "statusCode": 201, "statusDetail": { "status": "SUCCESS", "message": "Request processed successfully." }, "result": { "customerId": "cmvgva5po000c07iir1vtn8vl", "customer": { "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-20T15:57:43.404Z" } }}Types
Every object type on this page, with its fields.
CustomerCreateInput
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 | yes | 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 | yes | 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. |