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.

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:
| Card | What it shows |
|---|---|
| Total invoices | Count across the workspace (paid / open / void). |
| Open balance | Amount still awaiting payment. |
| Collected | Total settled, with the last payment date — tax included, so it can be higher than revenue. |
| Voided | Count 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.
| Column | Description |
|---|---|
| Invoice | The Invoice number (links to the detail view). |
| Customer | The billed Customer. |
| Plan | The Plan being billed. |
| Amount | The invoiced amount, tax included. |
| Issued | When the Invoice was issued. |
| Status | Open, Paid, Void or Auto closed. |
| Payment Method | What 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. |
| Note | Why 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 value | Payment Method reads |
|---|---|
INVOICE_BALANCE | Invoice balance |
GATEWAY_CARD | Card: a card the Customer paid with at Stripe or Paddle. Only this one can be refunded to the card. |
ONLINE_PAYMENT | Online Payment: a gateway payment that wasn't a card, or whose method was never saved. |
CREDIT_NOTE | Credit 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:
| Field | What the link downloads | When it is set |
|---|---|---|
invoicePdfUrl | The 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. |
receiptPdfUrl | The 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}/paystays open then, and its answer gives both links asnull. 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.