Finalize an invoice now
Invoices finalize on their own at finalizes_at (period end plus the plan’s grace period). Call this to finalize a draft early. A finalized invoice never changes: charges confirmed later, and events dated inside a closed period, go on the next invoice.
Authentication
A secret key (rl_sk_test_..., rl_sk_live_...) or a restricted key with limited scopes (rl_rk_test_..., rl_rk_live_...). A restricted key can carry agent: true and an expires_at, and is what a coding agent should hold. Keys end in a checksum so secret scanners can recognize them. People create, roll and revoke keys in the dashboard; GET /v1/api_keys lists them, masked.
Path parameters
The invoice ID (inv_...).
Response
draft fills during the period. open is finalized and awaiting payment. paid is settled at the provider.
charge_automatically charges the saved payment method. send_invoice emails a payment link from the provider.