Repayment by credit
Credit transfer repayment covers inbound payments where the borrower sends funds to a connected account. Two patterns are supported depending on your routing model.
Pattern A - Expected payment (shared account)
This feature is under development.
Use this pattern when borrowers transfer to a shared connected account. Mambu Payments uses an expected_payment object to match the inbound credit transfer to the correct loan.
- Create an expected payment. Call
POST /expected_paymentswith the loan or credit arrangement ID, the expected amount, currency, and matching criteria (e.g. reference, IBAN). - Receive the statement. Your connector forwards the account statement to Mambu Payments.
- Reconcile. Mambu Payments matches the
transactionto theexpected_paymentand firesexpected_payment.reconciled. - Book in Mambu Core. Mambu Payments books the repayment transaction and fires
expected_payment.cbs_transaction_booked.
sequenceDiagram participant C as Your system participant M as Mambu Core participant N as Mambu Payments participant S as Connector autonumber C->>N: Create expected payment <br>attached to loan or credit arrangement S->>N: Send account statement N->>N: Reconcile expected payment N->>M: Book repayment
Pattern B - Dedicated IBAN
Use this pattern when each loan or borrower gets a dedicated internal_account with its own IBAN, or account number. Matching is automatic, meaning any incoming transfer to that IBAN is a repayment for that loan.
- Create an internal account. Call
POST /internal_accountswithtypeset toown. This assigns a dedicated IBAN to the loan. - Attach it to the loan. Update
repayment_details.receiving_account_idwith theinternal_accountID. - Receive the incoming payment. Your connector forwards the payment to Mambu Payments. Mambu Payments matches it to the internal account and fires
incoming_payment.received. - Book in Mambu Core. Mambu Payments books the repayment and fires
incoming_payment.cbs_transaction_booked.
sequenceDiagram participant C as Your system participant M as Mambu Core participant N as Mambu Payments participant S as Connector autonumber C->>N: Create internal account<br>attached to loan or credit arrangement S->>N: Forward incoming payment N->>N: Match payment to<br>internal account N->>M: Book repayment
Webhooks
| Event | When it fires |
|---|---|
incoming_payment.received | Credit transfer matched and received on the internal account. |
incoming_payment.cbs_transaction_booked | Repayment transaction booked in Mambu Core. |
Both patterns can coexist on the same loan. Use expected payments for one-off repayments and a dedicated virtual IBAN for standing instructions or direct bank transfers.
Updated 9 minutes ago
