Base URL https://payments.clocknext.com/api/v1
Both wallet balances in USD and the ledger, newest first. source says what moved the money; a usage charge is a USAGE_LOG row with usageLogId, the signal id. Changed on 2026-11-25: package money has its own sources (Packages). Paged with limit and cursor; narrow it with from and to.
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
id*stringCustomer id.
limit?integerMaximum rows to return. Must be a positive number; clamped to 1–200.
1 <= value <= 20050cursor?stringOpaque token from a previous response's nextCursor. Omit for the first page.
from?stringFirst day to include, YYYY-MM-DD (UTC). The whole day is included. Omit for no lower bound. Keep sending the same value while paging with cursor.
dateto?stringLast day to include, YYYY-MM-DD (UTC). The whole day is included. Omit for no upper bound. Must not be before from.
dateThe wallet balances and one page of the ledger, most recent first.
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's Wallet balances and one page of Wallet transactions.
curl -X GET 'https://payments.clocknext.com/api/v1/customers/cus_abc123/wallet?limit=25&cursor=eyJ0cyI6IjIwMjYtMTAtMDlUMDU6Mjc6MjEuNjM3WiIsImlkIjoiY212MGl4NHgxMDAwMjA2andjZncyM2J2ZCJ9&from=2026-10-01&to=2026-10-07'{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "Request processed successfully." }, "result": { "balanceUsd": 129.381975, "reservedBalanceUsd": 60, "lowBalanceThresholdUsd": 15, "lowBalanceThresholdPercent": null, "transactions": [ { "id": "cmvgvxovp000c07jsvvosbnxv", "createdAt": "2026-10-20T16:16:01.333Z", "type": "CREDIT", "pool": "reserved", "source": "API", "amount": 60, "amountUsd": 60, "currencyCode": "USD", "currencyRateUsd": 1, "notes": "Reserved overage pool for Q4", "entitlementType": null, "entitlementId": null, "entitlementName": null, "usageLogId": null, "purchaseId": null, "purchaseNumber": null, "purchasePackageId": null, "packageId": null, "invoiceId": null }, { "id": "cmvgvxokd000a07js6y39h4km", "createdAt": "2026-10-20T16:16:00.925Z", "type": "DEBIT", "pool": "reserved", "source": "API", "amount": 25, "amountUsd": 25, "currencyCode": "USD", "currencyRateUsd": 1, "notes": null, "entitlementType": null, "entitlementId": null, "entitlementName": null, "usageLogId": null, "purchaseId": null, "purchaseNumber": null, "purchasePackageId": null, "packageId": null, "invoiceId": null }, { "id": "cmvgvxo09000807js16lx564n", "createdAt": "2026-10-20T16:16:00.201Z", "type": "DEBIT", "pool": "reserved", "source": "API", "amount": 15, "amountUsd": 15, "currencyCode": "USD", "currencyRateUsd": 1, "notes": "Release part of reserve", "entitlementType": null, "entitlementId": null, "entitlementName": null, "usageLogId": null, "purchaseId": null, "purchaseNumber": null, "purchasePackageId": null, "packageId": null, "invoiceId": null } ], "nextCursor": null }}Base URL https://payments.clocknext.com/api/v1
The same call, addressed by the customer's externalId. Same query parameters and response.
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 <= 64limit?integerMaximum rows to return. Must be a positive number; clamped to 1–200.
1 <= value <= 20050cursor?stringOpaque token from a previous response's nextCursor. Omit for the first page.
from?stringFirst day to include, YYYY-MM-DD (UTC). The whole day is included. Omit for no lower bound. Keep sending the same value while paging with cursor.
dateto?stringLast day to include, YYYY-MM-DD (UTC). The whole day is included. Omit for no upper bound. Must not be before from.
dateThe wallet balances and one page of the ledger, most recent first.
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's Wallet balances and one page of Wallet transactions.
curl -X GET 'https://payments.clocknext.com/api/v1/customers/ext/string/wallet?limit=25&cursor=eyJ0cyI6IjIwMjYtMTAtMDlUMDU6Mjc6MjEuNjM3WiIsImlkIjoiY212MGl4NHgxMDAwMjA2andjZncyM2J2ZCJ9&from=2026-10-01&to=2026-10-07'{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "Request processed successfully." }, "result": { "balanceUsd": 1000, "reservedBalanceUsd": null, "lowBalanceThresholdUsd": null, "lowBalanceThresholdPercent": null, "transactions": [ { "id": "cmvgvllc1006h08l2me5wc1w0", "createdAt": "2026-10-20T16:06:36.865Z", "type": "CREDIT", "pool": "main", "source": "SUBSCRIPTION", "amount": 1000, "amountUsd": 1000, "currencyCode": "USD", "currencyRateUsd": 1, "notes": null, "entitlementType": null, "entitlementId": null, "entitlementName": null, "usageLogId": null, "purchaseId": "cmvgvko9x003n08l2m19o4vgs", "purchaseNumber": "PUR-003", "purchasePackageId": null, "packageId": null, "invoiceId": null } ], "nextCursor": null }}Types
Every object type on this page, with its fields.
WalletLedger
| Field | Type | Required | Description |
|---|---|---|---|
balanceUsd | number | yes | The ordinary Wallet balance, in USD. May be negative. |
reservedBalanceUsd | number | null | yes | The Reserved Wallet balance, in USD. null when the workspace hasn't enabled it. |
lowBalanceThresholdUsd | number | null | yes | The customer's own low-balance threshold in USD; null when none is set or when it is a percentage. |
lowBalanceThresholdPercent | number | null | yes | The customer's own low-balance threshold as a percentage (0 to 100) of the plan's Wallet amount per cycle; null when none is set or when it is in USD. At most one of this and lowBalanceThresholdUsd is set. |
transactions | WalletTransaction[] | yes | Every movement of money in both wallets, newest first. One page of at most limit rows. |
nextCursor | string | null | yes | Pass back as cursor for the next page. null on the last page. |
WalletTransaction
One movement of wallet money.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | The row's id. On a USAGE_LOG row: the signal's id, with :reserved on the Reserved Wallet row. |
createdAt | string | yes | When the money moved. On a USAGE_LOG row, when the signal was received. |
type | "CREDIT" | "DEBIT" | yes | CREDIT adds money to the wallet. DEBIT takes money out. |
pool | "main" | "reserved" | yes | Which balance moved — the ordinary Wallet or the Reserved Wallet. |
source | "SUBSCRIPTION" | "RENEWAL" | "MANUAL" | "API" | "CUSTOMER_PORTAL" | "USAGE_LOG" | "INVOICE_SETTLEMENT" | "INVOICE_VOID" | "ONE_TIME_PACKAGE" | "RECURRING_PACKAGE" | "RECURRING_PACKAGE_RENEWAL" | "PACKAGE_CARRY_OVER" | "PACKAGE_REMOVED" | "PACKAGE_ENDED_BY_PLAN_CHANGE" | yes | What moved the money. Since 2026-11-25, the money of a package has its own 6 sources. |
amount | number | yes | Always positive — type gives the direction. In USD, the same as amountUsd. |
amountUsd | number | yes | The amount, in USD. |
currencyCode | string | yes | Always USD. |
currencyRateUsd | number | yes | Always 1. |
notes | string | null | yes | A person's note: yours on an API row, the admin's on a MANUAL row. null on system rows. |
entitlementType | "CREDIT" | "OUTCOME" | "UNIT" | "COMPOSITE" | null | yes | On a USAGE_LOG row for an entitlement: the kind charged. null on every other row. |
entitlementId | string | null | yes | Id of that credit, outcome, unit or composite. |
entitlementName | string | null | yes | Its name when the row was written. |
usageLogId | string | null | yes | On a USAGE_LOG row: the signal's id, as in the usage log. null on every other row. |
purchaseId | string | null | yes | On a SUBSCRIPTION or RENEWAL grant and on a package line, the purchase it belongs to. On a PACKAGE_CARRY_OVER line, the old purchase on the DEBIT and the new purchase on the CREDIT. |
purchaseNumber | string | null | yes | That purchase's readable number. |
purchasePackageId | string | null | yes | On a package row: the package's id on the subscription. null on every other row. |
packageId | string | null | yes | On a package row: the package in the catalog. null on every other row. |
invoiceId | string | null | yes | On a package row: the package's own invoice, or the renewal invoice. null on every other row. |