Invoices
Turn a quote into an invoice, send it, and record payments as they come in.
An invoice is draft, issued, sent, partially_paid, paid, overdue or void.
From a quote
The usual way in. It copies the quote's lines, fees, addresses and terms, and the invoice starts as issued:
curl -s "$FLITO_URL/api/cap/invoice.convert_from_quote" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"quoteId": "qte_…", "billingType": "net_terms", "netDays": 30}}'- A quote has one invoice: converting it again answers
409while that invoice is not void. - The deal moves to its invoice stage where the pipeline has one, and the company becomes a customer.
How it is billed
billingType sets the schedule:
full: all due at once.net_terms: duenetDaysafter issue.deposit_balance:depositPercentnow, the balance onbalanceTerm.installments: a list of parts, each with alabel, apercentoramount, anddueInDays.
earlyPaymentDiscountPercent with earlyPaymentDiscountDays offers a discount for paying early. Taxes, fees and discounts on the invoice are adjustments: {"kind": "tax" | "fee" | "discount", "name", "amount" | "percent"}.
Without a quote
invoice.create makes a draft from your own lines and adjustments. invoice.update changes a draft, or an issued invoice's lines, adjustments and due dates. A paid or void invoice can no longer change.
Send it
curl -s "$FLITO_URL/api/cap/invoice.send" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"invoiceId": "inv_…", "recipientEmails": ["ap@acme.com"], "message": "Thanks for your order."}, "approved": true}'- It needs
"approved": true. - It emails a link to the invoice's own page, with Download PDF, to up to 10 people, with up to 10 more in
ccEmails. - The first send marks the invoice
sentand moves the deal to its invoice-sent stage where the pipeline has one. - A
paidorvoidinvoice cannot be sent.
Record a payment
curl -s "$FLITO_URL/api/cap/invoice.record_payment" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"invoiceId": "inv_…", "payment": {"amount": 1500, "date": "2026-11-10", "method": "wire", "reference": "INV-0042"}}}'The invoice becomes partially_paid, or paid once the payments cover it. Send each payment with an idempotency key so a retry never records it twice.
Void it
invoice.void cancels an invoice and turns off its share links. The quote can then be converted again.
Capabilities
| Capability | What it does | Kind |
|---|---|---|
| invoice.convert_from_quote | Convert quote to invoice | write |
| invoice.create | Create invoice | write |
| invoice.get | Get invoice | read |
| invoice.issue | Issue invoice | write |
| invoice.list | List invoices | read |
| invoice.pdf_generate | Generate invoice PDF | write |
| invoice.record_payment | Record payment | write |
| invoice.send | Send invoice | write, needs approval |
| invoice.update | Update invoice | write |
| invoice.void | Void invoice | write |
Was this page useful?