API module for Unit Recurring Repayments.
Automates scheduled repayments towards a credit account on a configurable interval.
Types
recurringBookRepayment— from a deposit account at the same bankrecurringAchRepayment— from an external ACH counterpartyrecurringCapitalPartnerAchRepaymentrecurringCapitalPartnerBookRepayment
Summary
Functions
Create a recurring ACH repayment.
Create a recurring book repayment.
Disable a recurring repayment.
Enable a disabled recurring repayment.
Get a recurring repayment by ID.
List recurring repayments.
Functions
@spec create_ach( map(), keyword() ) :: {:ok, Unit.Resource.RecurringPayment.t()} | {:error, term()}
Create a recurring ACH repayment.
Required params
:credit_account_id:amount,:description,:schedule:counterparty_idor:counterparty
Optional
:same_day,:idempotency_key
@spec create_book( map(), keyword() ) :: {:ok, Unit.Resource.RecurringPayment.t()} | {:error, term()}
Create a recurring book repayment.
Required params
:credit_account_id:account_id— source deposit account:amount— in cents:description:schedule— schedule map (seeUnit.API.RecurringPaymentsfor schedule format)
@spec disable( String.t(), keyword() ) :: {:ok, Unit.Resource.RecurringPayment.t()} | {:error, term()}
Disable a recurring repayment.
@spec enable( String.t(), keyword() ) :: {:ok, Unit.Resource.RecurringPayment.t()} | {:error, term()}
Enable a disabled recurring repayment.
@spec get( String.t(), keyword() ) :: {:ok, Unit.Resource.RecurringPayment.t()} | {:error, term()}
Get a recurring repayment by ID.
@spec list(keyword()) :: {:ok, [Unit.Resource.RecurringPayment.t()], map()} | {:error, term()}
List recurring repayments.