Skip to main content

Repayment Resources

This page provides an overview of the repayment resource types available in the Unit API.

Repayment Types

Unit supports multiple repayment resource types, each designed for different use cases:

Resource TypeDescriptionUse Case
AchRepaymentRepayment via ACH debit from an external bank accountWhen funds are pulled from accounts at other banks integrated with Unit
BookRepaymentRepayment via internal book transferWhen funds are transferred from a deposit account at the same bank partner
CapitalPartnerAchRepaymentACH repayment directed to a Capital Partner's accountWhen using Unit Capital and repayments should go to the Capital Partner
CapitalPartnerBookRepaymentBook repayment directed to a Capital Partner's accountWhen using Unit Capital with funds from the same bank partner
ExternalRepaymentLedger-only repayment for funds collected externallyWhen money movement occurs outside the Unit platform

Resource Schemas

ACH Repayment

An ACH Repayment represents a repayment initiated via ACH debit from an external counterparty account.

See the full schema at AchRepayment Resource.

Book Repayment

A Book Repayment represents an internal transfer from a deposit account at the same bank partner to pay down a credit account balance.

See the full schema at BookRepayment Resource.

Capital Partner ACH Repayment

A Capital Partner ACH Repayment is used when Unit Capital is providing the funds for the lending program and repayments are collected via ACH.

See the full schema at CapitalPartnerAchRepayment Resource.

Capital Partner Book Repayment

A Capital Partner Book Repayment is used when Unit Capital is providing the funds and repayments are made via internal book transfer.

See the full schema at CapitalPartnerBookRepayment Resource.

External Repayment

An External Repayment is used to record repayments where the actual money movement occurs outside of the Unit platform. This only updates the credit ledger.

See the full schema at ExternalRepayment Resource.

Common Attributes

All repayment resources share these common attributes:

AttributeTypeDescription
idstringUnique identifier for the repayment
typestringThe repayment type (e.g., achRepayment, bookRepayment, externalRepayment)
statusstringCurrent status of the repayment
createdAtstringISO 8601 timestamp of when the repayment was created
updatedAtstringISO 8601 timestamp of when the repayment was last updated
amountintegerThe repayment amount in cents
tagsobjectOptional custom metadata

Common Relationships

RelationshipDescription
creditAccountThe Credit Account that the repayment is made against
customerThe Customer associated with the repayment
paymentThe underlying Payment resource (for native repayments)
transactionThe Transaction created by the repayment

For complete schema definitions and all available attributes, see the Resources API reference.