Skip to main content

Repayment Events

Unit raises events related to repayments that you can subscribe to via webhooks. These events allow you to track the lifecycle of repayments and respond to status changes in real-time.

Available Events

EventDescription
repayment.createdRaised when a new repayment is created.
repayment.statusChangedRaised when the status of a repayment changes (e.g., from Pending to Clearing, Sent, Returned, etc.).

Event Payloads

repayment.created

This event is raised when a repayment is successfully created. For native repayments (Book or ACH), a subsequent payment.created event will also be raised for the underlying payment.

Related resource types:

repayment.statusChanged

This event is raised when the status of a repayment changes. Common status transitions include:

  • PendingClearing (ACH repayment transmitted to the network)
  • ClearingSent (ACH repayment cleared)
  • SentReturned (Repayment returned)
  • PendingRejected (Repayment rejected)
  • PendingCanceled (ACH payment canceled)

Related resource types:

When working with repayments, you may also want to subscribe to these related events:

EventDescription
payment.createdRaised when the underlying payment for a native repayment is created.
payment.clearingRaised when an ACH payment enters the clearing period.
payment.sentRaised when the underlying payment is sent/completed.
payment.returnedRaised when the underlying ACH payment is returned.
transaction.createdRaised when a transaction is created as a result of the repayment.
recurringRepayment.skippedRaised when a recurring repayment is skipped (e.g., due to zero balance).

For more details on all available events and their payloads, see the Events API reference.