Invoicing your client
Record client charges, issue numbered invoices and track payment.
Use client billing to invoice your customers. Record individual charges in the billable ledger, then assemble and issue invoices from those charges.
Your Hlix subscription is billed separately from customer invoices.
Prerequisites
Section titled “Prerequisites”- A customer record for the company you are billing, with the project assigned to it.
- Your own billing identity — the supplier details that appear on the document you issue. A Workspace owner or admin sets it under Settings → Billing identity.
- An agency role to record charges, draft, issue or void invoices, and record settlement. Portal clients can open payment links for invoices shared with them.
Record what you may bill
Section titled “Record what you may bill”A billable is one charge you record for your customer. You can use an agreed price for a delivered outcome or enter a manual charge, such as a retainer or fixed fee. The price is frozen when the charge is created, so later changes do not alter an issued invoice.
For example, record a manual USD charge:
curl -sS -X POST "$HLIX_BASE_URL/v1/api/client-billing/billables" \ -H "x-api-key: $HLIX_API_KEY" \ -H "X-Organization-Id: $HLIX_WORKSPACE_ID" \ -H 'content-type: application/json' \ -d '{"source":"manual","clientAccountId":"…","projectId":"…","currency":"USD","description":"Checkout redesign","unit":"task","quantity":1,"unitPriceMicros":150000000}'Amounts use integer micros: one million micros is one dollar. Rounding to a payable amount happens on the invoice.
Correct a charge
Section titled “Correct a charge”Record a correction as a new entry linked to the original charge:
POST …/billables/{id}/adjust— a correcting entry naming the charge it corrects.POST …/billables/{id}/void— a reversal. A charge can be voided at most once.
Assemble and issue an invoice
Section titled “Assemble and issue an invoice”An invoice captures its charges’ descriptions, quantities, units, prices, amounts and tax information when the draft is built. Issued invoices retain those details when charges or supplier information change later.
| Status | Meaning |
|---|---|
draft |
Being assembled. The only state in which anything may change. |
final |
Issued. Numbered, dated, immutable, owed. |
paid |
Issued and settled. Still immutable. |
void |
Withdrawn — a discarded draft, or a withdrawn document that keeps its number. |
Sending and overdue dates do not add separate invoice statuses.
Assemble a draft from selected charges. Their customer and currency are used for the invoice.
curl -sS -X POST "$HLIX_BASE_URL/v1/api/client-billing/invoices" \ -H "x-api-key: $HLIX_API_KEY" \ -H "X-Organization-Id: $HLIX_WORKSPACE_ID" \ -H 'content-type: application/json' \ -d '{ "billableIds": ["…", "…"], "buyerAddress": "Acme B.V.\nKeizersgracht 1\n1015 Amsterdam", "dueAt": "2026-09-27T00:00:00.000Z", "taxRatesBps": {"standard": 2100} }'billableIds, buyerAddress and dueAt are required. taxRatesBps supplies the rate for each rated tax class in basis points, so 2100 is 21%.
Expected output — a draft with no number yet:
{ "id": "…", "status": "draft", "invoiceNumber": null, "invoiceSequence": null, "currency": "USD", "subtotalMicros": 4820000, "taxMicros": 916000, "totalMicros": 5736000}totalMicros is always subtotal + tax.
Issue it. hlix assigns the number.
curl -sS -X POST "$HLIX_BASE_URL/v1/api/client-billing/invoices/$INVOICE_ID/issue" \ -H "x-api-key: $HLIX_API_KEY" \ -H "X-Organization-Id: $HLIX_WORKSPACE_ID" \ -H 'content-type: application/json' \ -d '{}'Expected output:
{"id": "…", "status": "final", "invoiceNumber": "2026-0007", "invoiceSequence": 7, "issuedAt": "2026-08-28T08:02:11.000Z"}Issued invoices use a per-Workspace sequence. A failed issue does not consume a number, and a voided invoice keeps the number it was issued. This preserves the document trail for your accounting records.
Hand it over, then record how it was paid.
curl -sS "$HLIX_BASE_URL/v1/api/client-billing/invoices/$INVOICE_ID/pdf" \ -H "x-api-key: $HLIX_API_KEY" \ -H "X-Organization-Id: $HLIX_WORKSPACE_ID" \ -o invoice.pdfExpected result: a PDF written to invoice.pdf, rendered from the invoice’s lines.
For a card payment, open a hosted checkout for the issued invoice with POST …/payment-link; for a bank transfer or cheque, record the settlement out of band with POST …/pay. Either way the invoice moves to paid and stays immutable.
Correcting an issued invoice
Section titled “Correcting an issued invoice”An issued invoice cannot be edited. Only its status can change.
To correct one, void it with a reason, then issue a replacement that names the original. This keeps the original document and its correction in your accounting history.
Each line carries a tax class, recorded on the document:
standardandreducedare real rates that differ by jurisdiction, so you state the rate per invoice.zero,exemptandreverse_chargeadd no tax amount in hlix and do not take a rate. Choose the class that matches your transaction; these labels have different accounting meanings.
The total is rounded to the currency’s minor units exactly once, and the rounding rule is recorded on the invoice.
Your identity on the document
Section titled “Your identity on the document”The supplier details you set under Settings → Billing identity appear on every invoice you issue. Your logo and identity are placed on the document when your Workspace has an active subscription; without one the invoice is unbranded, and retains its supplier and invoice details.
The invoice’s branding is fixed when it is issued.
If a billing action fails
Section titled “If a billing action fails”- Permission error: use an agency account to manage customer records and invoices.
- Customer or invoice not found: confirm the ID and selected Workspace.
- Project has no customer: assign it to a customer before recording charges.
- Portal slug already taken: choose a unique handle for this customer.
- Customer still has projects or charges: archive it to retain its delivery and billing history.
- Invalid billing identity: check the request fields and supplier address against the API reference.