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 payments

A payment is a PAID invoice. Newest first, paged with limit (at most 50) and cursor → nextCursor — see Paginating results. There is no status parameter: Any other query parameter is a 400 ("Unknown parameter offset.").

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

GET
/payments

Authorization

apiKey
headerAuthorizationBearer <cnk_…>

Organisation-scoped key from Settings → API Keys.

Query Parameters

customerId?string

Restrict results to this customer.

limit?integer

Rows on one page: default 50, maximum 50 (a bigger value is cut to 50). Zero, a negative number or a non-number is a 400.

Range1 <= value <= 50
Default50
cursor?string

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

Response Body

Payments.

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 payments.

Example Request
curl -X GET 'https://payments.clocknext.com/api/v1/payments?customerId=cus_abc123&limit=50&cursor=cus_zzz789'
Example Response
{  "statusCode": 200,  "statusDetail": {    "status": "SUCCESS",    "message": "Request processed successfully."  },  "result": {    "payments": [      {        "id": "cmvgvkqb2004w08l208oh6j1e",        "paymentNumber": "PAY-005",        "invoiceNumber": "INV-0006",        "purchaseNumber": "PUR-007",        "noteType": "NEW_PURCHASE",        "note": "New Purchase",        "customerId": "cmvgvklx5002f08l2875y93k8",        "customerName": "Litware Inc",        "planName": "Starter",        "amount": 31.1,        "currencyCode": "USD",        "paymentMode": "CARD",        "paidWith": [          "CARD"        ],        "paymentReference": "Terminal txn 0091-7732",        "paidAt": "2026-10-20T16:06:37.930Z",        "paidByName": "Josewin D D"      },      {        "id": "cmvgvkort004308l2namjqdqp",        "paymentNumber": "PAY-004",        "invoiceNumber": "INV-0004",        "purchaseNumber": "PUR-004",        "noteType": "NEW_PURCHASE",        "note": "New Purchase",        "customerId": "cmvgv9ebb000707iipffdxzwj",        "customerName": "Tailspin Studios",        "planName": "Starter",        "amount": 34.51,        "currencyCode": "USD",        "paymentMode": "SEPA",        "paidWith": [          "SEPA"        ],        "paymentReference": "SEPA-DE89370400440532013000",        "paidAt": "2026-10-20T16:06:37.317Z",        "paidByName": "Josewin D D"      },      {        "id": "cmvgvkob7003v08l21w1in072",        "paymentNumber": "PAY-003",        "invoiceNumber": "INV-0003",        "purchaseNumber": "PUR-003",        "noteType": "NEW_PURCHASE",        "note": "New Purchase",        "customerId": "cmvgv9dyg000607ii9z6oghzf",        "customerName": "Fabrikam Analytics",        "planName": "Scale (pay as you go)",        "amount": 1180,        "currencyCode": "USD",        "paymentMode": "UPI",        "paidWith": [          "UPI"        ],        "paymentReference": "UPI/629413557812/fabrikam@hdfc",        "paidAt": "2026-10-20T16:06:36.779Z",        "paidByName": "Josewin D D"      },      {        "id": "cmvgvknob003d08l2sc3jhm55",        "paymentNumber": "PAY-002",        "invoiceNumber": "INV-0002",        "purchaseNumber": "PUR-002",        "noteType": "NEW_PURCHASE",        "note": "New Purchase",        "customerId": "cmvgv9th0000a07iisl2s8u6q",        "customerName": "Contoso Pharmaceuticals",        "planName": "Enterprise",        "amount": 60000,        "currencyCode": "USD",        "paymentMode": "WIRE_TRANSFER",        "paidWith": [          "WIRE_TRANSFER"        ],        "paymentReference": "SWIFT MT103 BARCGB22-88213",        "paidAt": "2026-10-20T16:06:36.125Z",        "paidByName": "Josewin D D"      },      {        "id": "cmvgvkn14002u08l2ct47s2a7",        "paymentNumber": "PAY-001",        "invoiceNumber": "INV-0001",        "purchaseNumber": "PUR-001",        "noteType": "NEW_PURCHASE",        "note": "New Purchase",        "customerId": "cmvgva5po000c07iir1vtn8vl",        "customerName": "Northwind Traders",        "planName": "Pro",        "amount": 535.18,        "currencyCode": "USD",        "paymentMode": "ACH",        "paidWith": [          "ACH"        ],        "paymentReference": "ACH-20261020-4471",        "paidAt": "2026-10-20T16:06:35.286Z",        "paidByName": "Josewin D D"      }    ],    "nextCursor": null  }}

Types

Every object type on this page, with its fields.

PaymentRow

FieldTypeRequiredDescription
idstringyesThe paid invoice's id. It works with Get a payment and Get an invoice.
paymentNumberstringyesThe workspace's payment reference, such as PAY-0031, given when the invoice was paid.
invoiceNumberstringyesThe reference of the invoice this payment paid.
purchaseNumberstring | nullnoThe reference of the purchase that raised it. null without one, or when it was deleted.
customerIdstringyesThe id of the customer who paid.
customerNamestringyesThe customer's name.
planNamestringyesThe plan's name, saved on the invoice when it was issued.
packageInvoicePackageInvoiceInfo | nullnoSet only on a package attach invoice: the packages it bills. Else null.
noteType"NEW_PURCHASE" | "RENEWAL" | "MANUAL"noNEW_PURCHASE: a purchase's first invoice. RENEWAL: a later one, or a package attach. MANUAL: none.
note"New Purchase" | "Subscription Renewal" | "Manual Invoice"noThe label of noteType, as the app shows it.
amountnumberyesAmount paid in USD, tax included.
currencyCodestringyesUSD for every invoice issued since Clocknext stopped converting money (every invoice and charge is USD). An older invoice keeps the customer's currency it was issued with.
paymentModestring | nullnoHow it was paid: STRIPE, PADDLE, or an offline mode such as BANK_TRANSFER.
paidWithstring[]noWhat paid the invoice, balance first, such as [INVOICE_BALANCE, GATEWAY_CARD].
paymentReferencestring | nullnoThe Stripe or Paddle payment id, or the reference sent to POST /invoices/{id}/pay. null when none.
paidAtstringyesWhen the invoice was paid.
paidByNamestring | nullnoWho paid: the payer's email for STRIPE or PADDLE when known, else the member who recorded it.

PackageInvoiceInfo

What a package attach invoice bills: one row per package of the attach, in the order of the attach.

FieldTypeRequiredDescription
packagesobject[]yesThe packages the invoice bills.

PackageInvoiceInfo.packages

FieldTypeRequiredDescription
purchasePackageIdstringyesThe package's id on the subscription.
packageIdstring | nullyesThe package in the catalog. null when it no longer exists.
namestringyesThe package's name.
term"RECURRING" | "ONE_TIME"yesRECURRING or ONE_TIME, as attached.
subtotalUsdnumberyesIts price on the invoice, before tax, in USD.

Get a refund GET

One refund: its status, the gateway's own id, the amount, and what went back to the card in the currency charged.

Get a payment GET

Resolves only PAID invoices; anything else is a 404.