PomeloEx.Cards.Credits.DebtSaleToBanks.DebtTransferNotification (PomeloEx v0.1.0)

View Source

Webhook handler for debt transfer events.

Configure your endpoint at POST https://<your-server>/debts to receive notifications when a debt is transferred to another debt, either due to expiration (debt_state: DUE_DEBT) or refinancing (debt_state: REFINANCED).

The replaced_by_debt_id field indicates the new debt that absorbs the pending balance.

Summary

Functions

Process a debt transfer notification.

Functions

execute(payload)

Process a debt transfer notification.

Returns {:ok, %{status: 200}} on success.