Disbursement
Disbursement is the outgoing payment that transfers loan capital to the borrower. Mambu Payments automates the payment execution and books the resulting transaction in Mambu Core.
Step-by-step
- Create the beneficiary account. Call
POST /external_accountsto register the borrower's bank account as anexternal_account. - Attach the account to the loan. Update
disbursement_details.receiving_account_idwith theexternal_accountID. Also setdisbursement_details.connected_account_idif not already configured. Mambu Payments firesloan.ready_for_disbursementwhen configuration is complete. - Choose the connector to be used for disbursement. Update
disbursement_details.connected_account_idwith the ID of the connector you want to use. You can also fill adisbursement_details.internal_account_idif you want to use an existing internal account as originating account of the disbursement. - Trigger the disbursement. Call
POST /loans/{id}/disburse(orPOST /credit_arrangements/{id}/disbursefor arrangement-level disbursements). Mambu Payments creates apayment_orderand firespayment_order.pending_approval. In the case of credit arrangements, the payment order's amount will be the sum of all attached loans which areready_for_disbursement. - Payment processing. The payment order goes through your approval and validation rules, if any. It is then sent yo your connector.
- Receive execution confirmation. Your connector returns an execution notification. Mambu Payments fires
payment_order.executed. - Booking in Mambu Core. Mambu Payments books the disbursement transaction on the Mambu Core loan account and fires
payment_order.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 beneficary account C->>N: Attach beneficary account to <br>loan or credit arrangement C->>N: Attach connector to <br>loan or credit arrangement N-->>C: loan.ready_for_disbursement C->>N: Trigger disbursement N-->>C: loan.pending_disbursement N-->>C: payment_order.auto_approved N->>S: Send payment N-->>C: payment_order.sent S-->>N: Execution notification N-->>C: payment_order.executed N->>M: Book disbursement N-->>C: payment_order.cb_transaction_booked N-->>C: loan.active alt Payment is returned S->>N: Forward return N-->>C: payment_order.returned N->>M: Adjust disbursement transaction N-->>C: payment_order.cbs_transaction_adjusted end
Booking models
Choose how Mambu Payments writes back to Mambu Core:
- Automated ledger sync: Mambu Payments triggers the disbursement transaction in Mambu Core the moment the
payment_orderreachesexecutedstatus. No action required from you. - Event-driven orchestration: listen for
payment_order.executedvia webhook and call the Mambu Core API yourself. Use this model for multi-stage approvals or custom booking logic.
Outcomes
| Payment outcome | What Mambu Payments does in Mambu Core |
|---|---|
| Payment executed | Books a disbursement transaction on the loan account (for loans) or on the deposit account (for credit arrangements). |
| Payment rejected | No transaction is booked. |
| Payment returned | Adjust the disbursement on the loan account. |
| Payment cancelled | No transaction is booked. |
Webhooks
| Event | When it fires |
|---|---|
loan.ready_for_disbursement | Disbursement details are attached and the loan is ready to disburse. |
payment_order.pending_approval | Payment order created, awaiting your approval. |
payment_order.executed | Disbursement sent to the beneficiary. |
payment_order.cbs_transaction_booked | Disbursement transaction booked in Mambu Core. |
payment_order.cbs_transaction_booking_failed | Error when booking the disbursement transaction in Mambu Core |
payment_order.cbs_transaction_adjusted | Disbursement transaction adjusted in Mambu Core |
Future-dated disbursements are supported. Set
execution_dateon the disbursement call to schedule the payment for a specific value date.
Updated 2 minutes ago
