Create and manage invoices. Added in API version v2026.04.00.
Invoice status values: "draft", "unpaid", "payment-pending",
"paid", "overdue", "canceled".
Summary
Functions
Creates an invoice.
Creates a payment resource against an invoice (records a payment toward it).
Deletes a draft invoice.
Retrieves a single invoice.
Lists invoices for an account.
Lists payments recorded against an invoice.
Updates an invoice (e.g. its due date, line items, or status while still a draft).
Functions
@spec create(Moov.Client.t(), String.t(), map()) :: {:ok, map()} | {:error, Moov.Error.t()}
Creates an invoice.
params: :line_items, :due_date, :customer_account_id (or
recipient contact info for a non-Moov customer), :memo, :metadata.
@spec create_payment(Moov.Client.t(), String.t(), String.t(), map()) :: {:ok, map()} | {:error, Moov.Error.t()}
Creates a payment resource against an invoice (records a payment toward it).
@spec delete(Moov.Client.t(), String.t(), String.t()) :: {:ok, term()} | {:error, Moov.Error.t()}
Deletes a draft invoice.
@spec get(Moov.Client.t(), String.t(), String.t()) :: {:ok, map()} | {:error, Moov.Error.t()}
Retrieves a single invoice.
@spec list(Moov.Client.t(), String.t(), keyword()) :: {:ok, [map()]} | {:error, Moov.Error.t()}
Lists invoices for an account.
@spec list_payments(Moov.Client.t(), String.t(), String.t(), keyword()) :: {:ok, [map()]} | {:error, Moov.Error.t()}
Lists payments recorded against an invoice.
@spec update(Moov.Client.t(), String.t(), String.t(), map()) :: {:ok, map()} | {:error, Moov.Error.t()}
Updates an invoice (e.g. its due date, line items, or status while still a draft).