An invoice/virtual account number — an additional account number that
routes deposits into an existing TreasuryPrime.Account, without being a
separate ledger account itself. Useful for giving each customer/invoice
its own receiving account number so incoming ACH/wire credits can be
automatically reconciled to the right invoice or sub-customer, while all
the money ultimately lands in one underlying account.
The parent account's additional_account_numbers field lists every
invoice account number associated with it.
Creating one
{:ok, invoice_number} =
TreasuryPrime.InvoiceAccountNumber.create(client, %{account_id: "acct_1234567890"})
Summary
Functions
Creates an invoice account number tied to an existing account. Required: account_id.
Fetches a single invoice account number by id.
Lists invoice account numbers.
Updates an invoice account number (e.g. its status).
Types
Functions
@spec create(TreasuryPrime.Client.t(), map(), keyword()) :: {:ok, t()} | {:error, TreasuryPrime.Error.t()}
Creates an invoice account number tied to an existing account. Required: account_id.
@spec create!(TreasuryPrime.Client.t(), map(), keyword()) :: t()
@spec get(TreasuryPrime.Client.t(), String.t()) :: {:ok, t()} | {:error, TreasuryPrime.Error.t()}
Fetches a single invoice account number by id.
@spec get!(TreasuryPrime.Client.t(), String.t()) :: t()
@spec list(TreasuryPrime.Client.t(), map()) :: {:ok, TreasuryPrime.Page.t()} | {:error, TreasuryPrime.Error.t()}
Lists invoice account numbers.
Filterable params
account_id, account_number, status.
@spec list!(TreasuryPrime.Client.t(), map()) :: TreasuryPrime.Page.t()
@spec update(TreasuryPrime.Client.t(), String.t(), map()) :: {:ok, t()} | {:error, TreasuryPrime.Error.t()}
Updates an invoice account number (e.g. its status).
@spec update!(TreasuryPrime.Client.t(), String.t(), map()) :: t()