ClocknextClocknextHelp
DocumentationAPI ReferenceMCP Tools
Dashboard
What is Clocknext?Getting started

Customers

CustomersCustomer detail

Billing

PurchasesSubscriptionsPackagesInvoicesPaymentsCredit NotesRefunds

Tracking

SignalsRevenue dashboardCustomer Portal

Settings

Profile settingsOrganisation settingsTeam MembersModelsTaxesIntegrationsAPI KeysWebhooks

Documentation

Invoices

Review the Invoices raised from Purchases, record payment, share a payment link, or void an Invoice.

Invoices are raised automatically when a Purchase reaches its billing date. This page lists every Invoice in the workspace and lets owners and admins settle open ones — recording a Payment applies the Plan's Wallet, Credit and Outcome grants to the Customer. Invoices — the Invoices table beneath its stat cards, one row per Invoice raised from a Purchase with its amount, cycle and Open/Paid/Void status. (Authenticated screen — sign in at payments.clocknext.com to view.)

What you can do here

  • View or download an Invoice PDF for any Invoice.
  • Record payment on an open Invoice (owners and admins).
  • Charge saved card on an open Invoice with auto-payment on, when the Customer has a saved card (owners and admins).
  • Get a payment link to send the Customer.
  • Void an open Invoice.
  • Issue a credit note on an open or paid Invoice, to lower what is owed or to give money back (owners and admins).
  • Use balance to pay an open Invoice from the Customer's invoice balance.
  • Open an invoice for its preview and payment status.

Invoices are generated by billing — you don't create them by hand here.

On this page

Four stat cards head the page:

CardWhat it shows
Total invoicesCount across the workspace (paid / open / void).
Open balanceAmount still awaiting payment.
CollectedTotal settled, with the last payment date — tax included, so it can be higher than revenue.
VoidedCount of cancelled Invoices.

Below them, a searchable, paginated table. Search matches Invoice or Customer; a Status filter (Open / Paid / Void / Auto closed) narrows the rows.

ColumnDescription
InvoiceThe Invoice number (links to the detail view).
CustomerThe billed Customer.
PlanThe Plan being billed.
AmountThe invoiced amount, tax included.
IssuedWhen the Invoice was issued.
StatusOpen, Paid, Void or Auto closed.
Payment MethodWhat paid a paid Invoice, balance first: Invoice balance, Card, Invoice balance + Card, Cash, Credit note and so on. A dash while the Invoice isn't paid.
NoteWhy the Invoice exists, such as New Purchase or Subscription Renewal.

The Payment Method column is the list the API returns as paidWith, balance first:

paidWith valuePayment Method reads
INVOICE_BALANCEInvoice balance
GATEWAY_CARDCard: a card the Customer paid with at Stripe or Paddle. Only this one can be refunded to the card.
ONLINE_PAYMENTOnline Payment: a gateway payment that wasn't a card, or whose method was never saved.
CREDIT_NOTECredit note: credit notes covered the whole Invoice, so nobody paid.
CASH, BANK_TRANSFER, UPI, …The method you recorded, as the Payments page writes it. One recorded with no method reads Manual (MANUAL). A card payment you recorded by hand is CARD (Card).

Part from the balance and the rest by card at the gateway reads Invoice balance + Card ([INVOICE_BALANCE, GATEWAY_CARD]). A credit note that only lowered the amount isn't a way of paying, so it never shows beside the method of the money that was collected. An Invoice that isn't paid, or was voided or auto-closed, shows a dash (paidWith is empty).

The per-row ⋯ menu offers View invoice and Download invoice on every row. For managers it also offers Record Payment and Get Payment Link on open Invoices, and Issue a credit note on open and paid Invoices. Void, on an open Invoice, is the last item, apart from the rest because it can't be undone.

Charge the saved card

An open Invoice whose Plan has auto-payment on can be charged to the Customer's saved card at once: ⋮ → Charge saved card in the table (right below Record payment), or the Charge saved card button on the Invoice. It is offered only when something is still owed and the Customer has a saved card on your connected gateway (Stripe or Paddle).

A dialog shows the amount due and the card, for example "The amount due on INV-0122, $403.33, will be charged to Crunchyroll's Visa 4242 now." Charge card charges it: the Invoice is paid and the receipt goes to the Customer. If the card is declined you see why, the Invoice stays open, and the Customer is not emailed.

Billing never charges a Purchase's first Invoice by itself: a Purchase made here waits for its payment link, the invoice balance or this button.

Detail view

Opening an Invoice (/invoices/{id}) shows the full document and its payment state.

  • Header — the Invoice number, a subtitle reading "Plan plan for Customer" (both linked), a billing-cycle chip, the issued date and the status. View and Download PDF buttons sit in the header.

  • Stat cards — Amount (with cycle number), Status (with the paid or voided date), Issued and Paid on (with who paid).

  • Invoice preview — a rendered copy of the Invoice document.

  • Taxes on the Invoice — when tax applies, the totals read Subtotal, one row per tax and Total due. An exclusive tax is added on top ("GST (18%)"); an inclusive tax is already inside the price and reads "Includes VAT (15%)", so it doesn't change the total. The PDF shows the same rows. Each Invoice keeps a copy of the taxes it was issued with, so editing or archiving a tax in Settings → Taxes never changes an Invoice that already exists. An untaxed Invoice looks exactly as before.

  • Payment panel — keyed to status:

    • Open — the amount due, a Record payment button, a Use balance button and a Copy payment link action. Recording payment opens a modal to choose the method (Cash, Bank Transfer, UPI and other rails, filtered to the Customer's country), plus an optional reference and note. The Invoice is marked paid immediately and the Plan's grants are applied.
    • Paid — a receipt showing the Payment number, method, reference and payer, with View / Download receipt.
    • Void — the voided amount and the reason it was cancelled.
    • Auto closed — a recurring Invoice of an Organisation with Auto close invoices on recurring on (Settings → Organisation → Billing). It was closed as soon as it was issued: the Plan's grants were applied as if it were paid, but no payment is collected, it can't be paid or voided, and it isn't counted as revenue.
  • Credit notes — under Payment details, the credit notes issued on this Invoice. When a credit note or the invoice balance took something off, the payment panel adds it up: Invoice total, Credit note, Paid from invoice balance and Amount due.

Use balance pays the open Invoice from the Customer's invoice balance: what it still owes, or the whole balance if that is less. It is enabled only when the Customer has balance and the matching box is ticked in Settings → Organisation → Payments; when it is disabled, hover it to see why. Only owners and admins see it.

If the Invoice has a payment page open (a Stripe or Paddle checkout), it is closed first, so the Customer can't pay the old amount on top of what the balance paid. They get a fresh page for the reduced amount the next time they open the link. If the Customer has already paid or is paying right now, or the page can't be closed, nothing is taken. Try again in a few minutes.

Voiding an Invoice

Voiding cancels the Invoice and marks the linked Purchase as cancelled. The Plan's effects are not applied to the Customer. Voiding a package attach Invoice ends its packages instead; the Plan keeps running.

A package attach Invoice says noteType: "RENEWAL" in the API; recognise it by its packageInvoice, which lists the packages it bills (see Packages).

Let your Customers download Invoices and receipts

Each Invoice in the API carries 2 signed links:

FieldWhat the link downloadsWhen it is set
invoicePdfUrlThe Invoice PDF, the same file as the Download invoice link in the Customer's emails.Always, except as below. The PDF shows the status: Open, Paid, Void or Auto closed.
receiptPdfUrlThe payment receipt PDF, the same file as the Download receipt link in the paid email.Only when the Invoice is Paid. Otherwise it is null.

Show them in your own app, so your Customers can download their Invoices and receipts there. For example, a Customer can download an Open Invoice to get it approved before they pay.

  • The links need no sign-in, so share them only with the Customer who owns the Invoice.
  • The links do not expire.
  • While your Clocknext plan locks Invoices, the links answer 403. Only POST /invoices/{id}/pay stays open then, and its answer gives both links as null. Read the Invoice again after the lock ends to get the links.
  • The PDF is built when the link is opened, so it always shows the Invoice as it is now. The link of an Invoice stays the same after it is paid.

GET /invoices (each row), GET /invoices/{id} and POST /invoices/{id}/pay return them.

import { ClockNext } from "@clocknext/sdk";

const cnk = new ClockNext({ apiKey: process.env.CLOCKNEXT_API_KEY! });

// Every Invoice of one Customer, with its download links.
const invoices = await cnk.invoices.list({ customerId: "cus_123" });
const downloads = invoices.map((i) => ({
  number: i.invoiceNumber,
  status: i.status,
  invoice: i.invoicePdfUrl,
  receipt: i.receiptPdfUrl, // null until the Invoice is paid
}));

Related

  • Purchases — what Invoices are billed from.
  • Payments — the settled-invoice history.
  • Credit notes — lower an Invoice or give money back.
  • Customers — who the Invoice is billed to.
  • Invoices API — read Invoices over the API.

Packages

Sell extra entitlements on top of a Customer's Plan — set up a package once, add it to a subscription, and remove it now or at the end of the Plan's billing cycle.

Payments

Browse the settled Payment history across the workspace, including customer-portal Payments, with receipts.

On this page

What you can do hereOn this pageCharge the saved cardDetail viewLet your Customers download Invoices and receiptsRelated