Flito docs

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 409 while 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: due netDays after issue.
  • deposit_balance: depositPercent now, the balance on balanceTerm.
  • installments: a list of parts, each with a label, a percent or amount, and dueInDays.

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 sent and moves the deal to its invoice-sent stage where the pipeline has one.
  • A paid or void invoice 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

CapabilityWhat it doesKind
invoice.convert_from_quoteConvert quote to invoicewrite
invoice.createCreate invoicewrite
invoice.getGet invoiceread
invoice.issueIssue invoicewrite
invoice.listList invoicesread
invoice.pdf_generateGenerate invoice PDFwrite
invoice.record_paymentRecord paymentwrite
invoice.sendSend invoicewrite, needs approval
invoice.updateUpdate invoicewrite
invoice.voidVoid invoicewrite

Was this page useful?

On this page