Skip to content

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.

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

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:

Terminal window
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.

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.

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.

Terminal window
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.

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:

  • standard and reduced are real rates that differ by jurisdiction, so you state the rate per invoice.
  • zero, exempt and reverse_charge add 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.

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.

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