Creating a Loan From Transactions

This guide explains how to use the Create Loan From Transactions endpoint to create a loan for the sum total of the settled transactions selected by a customer’s debit or credit account.
Related documentation:

Determine settlement keys

A settlement key identifies the transactions that your customer selected to move to a loan/plan. You can pass up to five settlement keys per loan/plan.

The settlement key consists of the settlement ID and the association for the transaction. Use the Posted Transactions RDF to identify the SETTLE DTL ID field (identifier for the transaction in the settlement table) for the settle_id and NETWORK CODE fields for the card network.

The 3 letter abbreviations for the networks we support are:

  • VISA = "VIS"
  • STAR = "STA"
  • PULSE = "PLS"

The settlementKeys parameters pattern is "<settle_id>". For example, pass "8770266:MAS,8770268:MAS" to move two settled transactions from the Mastercard network to a loan.

Determine funds disbursement

It is up to you when and where Galileo disburses funds for the loan/plan. You have the option to disburse funds to a Galileo DDA or external account.

To disburse funds to a Galileo DDA when the loan is created, call the Create Loan From Transactions endpoint with these specific parameters:

disbursementDestinationTypeRequired. DDA
disbursementDestinationPrNRequired. 12-digit PRN for the card account where funds for the loan will be disbursed.

If you choose disbursementDestinationType as EXTERNAL, you are responsible for fund disbursement. Do not pass disbursementDestinationPrn when disbursementDestinationType: EXTERNAL. If you attempt to pass disbursementDestinationPrn, Galileo returns status code: 1219-15.

Adjust the customer's account balance

Use the Create Adjustment endpoint to increase the balance of the customer’s Galileo account with each installment repayment at a later point in time. You can use this endpoint to either credit or debit the account. For details, see Creating an Adjustment.

Alternatively, you can call a third-party API to disburse funds to a non-Galileo account.

Events API

The Transaction Events Webhook sends events that are specific to loans:

No event webhooks are sent when a customer makes a repayment on their loan/plan.