Manually settle an open invoice, moving it to paid and queueing the receipt document. Use this when payment was collected outside Root; an invoice collected by a Root payment moves to paid on its own when that payment succeeds.
Marking an already-paid invoice as paid is a no-op success, so the call is safe to retry. The line items are left in place, unlike void and mark uncollectible.
Invoicing is opt-in per organization: unless the invoicing feature flag is enabled for your organization this endpoint returns 403.
400The invoice cannot move to paid from its current status. Only an open invoice can be marked paid.
403Invoicing is not enabled for the organization, or the caller is missing the invoices:mark_paid permission.
404No such invoice, or the caller's user group does not grant access to its policy.
409The invoice was modified by a concurrent writer before the transition could be applied.