An Invoice is a statement of amounts owed by a customer. Fluveo supports two collection flows:Documentation Index
Fetch the complete documentation index at: https://docs.fluveo.com/llms.txt
Use this file to discover all available pages before exploring further.
charge_automatically(default): Fluveo charges the customer’s default payment method as soon as you call/pay(or on subscription renewal).send_invoice: You call/sendto email a hosted link to the customer, who pays via the hosted page.
MVP scope
- Card-only payment via Stripe. PIX invoices are a future feature; sending
payment_method_types=["pix"]returns422 unsupported_payment_method_type. - PSP-agnostic routing: the invoice stores
payment_method_types(defaults to["card"])./payresolves the PSP adapter from this list; MVP always lands on Stripe. - Hosted link: tokens are persisted in the
invoice_hosted_tokensstore with a 30-day expiry. Re-calling/sendrevokes older tokens so the newest email is always the active link.
Create
Add items
Finalize
draft → open and assigns a sequential number
(per merchant, via pg_advisory_xact_lock).
Pay
paid and emits
invoice.paid on your events stream.
Send hosted link
https://checkout.leanrails.com/invoice/{token} URL. The hosted page
resolves the token via GET /internal/invoice-hosted/{token} and renders the
invoice summary plus accepted payment methods. Direct hosted invoice payment is
a follow-up; for MVP, collect card payment through /v1/invoices/{id}/pay or
the recurring billing flow.
Events emitted
invoice.createdinvoice.finalizedinvoice.paidinvoice.payment_failedinvoice.voidedinvoice.marked_uncollectible