Loan

Create Loan From Transactions

Use the Create Loan From Transactions endpoint to create a loan from multiple transactions. Buy Now, Pay Later: Post-purchase enables cardholders with the ability to turn eligible, settled transactions on credit and debit cards into an installment plan or loan. Loan subproducts configured for your installment loans product and are assigned a subproduct ID.

post/1.0/createLoanFromTransactions

Request

  • Base URL
    lending-{corename}.{env}.gpsrv.com/lending/ (relative, and the document’s source URL is not known)
  • URL
    lending-{corename}.{env}.gpsrv.com/lending/1.0/createLoanFromTransactions
  • Auth
    none declared

Request body application/x-www-form-urlencoded

apiLoginstring required

Provider's web service username, as provided by Galileo for the requesting IP address. Pattern: Max 50 characters Example: "AbC123-9999"

apiTransKeystring required

Web service password, as provided by Galileo for the requesting IP address. Pattern: Max 15 characters Example: "4sb62fh6w4h7w34g"

providerIdinteger required

Galileo-issued unique provider identifier. Pattern: Max 10 digits Example: 9999

transactionIdstring required

A provider-generated ID that is unique to each API call. A UUID is preferred. Do not reuse this identifier for multiple API calls. Pattern: Max 60 characters Example: "984513-395483653-4483483478"

providerTransactionIdstring

An optional provider-generated ID for the API request. Pattern: Max 60 characters Example: "47823438032233777"

providerTimestampstring

An optional provider-generated timestamp for the API request. Pattern: Max 60 characters Example: "2017-05-01 13:01:01"

loanTerminteger required

Number of installments to pay off the loan. Pattern: Min 1 characters and max 9 characters. Example: 4.

customerPmtRefNostring required

PRN for the customer’s primary account. Galileo uses the PRN to retrieve customer information, like business name, date of birth, SSN, address, etc. When the loan is created, the loan_id will be associated with this PRN. Pattern: PRN Example: "074103447228".

settlementKeysstring required

The settlement IDs and association for each transaction the customer selected. Maximum of 5 transactions. Pattern: settle_id + association. Example: "["123456:VIS", "123457:VIS"].

firstInstallmentDueDatestring date

Due date of the first installment has to be between the 1st and 28th of the month. This field does not apply to bi-weekly subproducts.

capitalTerminteger required

Length of time between payments, in units specified by the subproduct. For example, if you specify “2” and the loan subproduct is set to weeks then installments will be due every two weeks. Pattern: Max 9 digits. Example: 2.

loanApplicationDatastring

When using the loan simulation, you have the option to pass in comma-separated data from the user's application to store with the simulation for downstream analysis. If a loan is created, this associates the user’s application to the simulation and then to the loan.

subProductIdstring required

Identifier for the loan subproduct. Pattern: Max 15 characters. Example: "442824720".

Response

Success

status_codeinteger nullable required

The response status code. May return a string for some statuses.

statusstring nullable required

The condition of a process or response

processing_timenumber float nullable required

The time elapsed in processing the transaction

system_timestampstring date-time nullable required

A system generated timestamp

rtokenstring nullable required

A Galileo-generated ID used for tracking

errorsstring[]

A list of errors generated while the request was processed

Example response

{
  "response_data": {
    "loan_id": "450825953",
    "loan_apr": 15,
    "rate_type": "FIXED",
    "late_fee": 5,
    "initial_projected_maturity_date": "2022-07-01",
    "application_number": "589841564",
    "itemization_of_amount_financed": {
      "loan_amount": 10000,
      "disbursed_amount": 10000,
      "projected_interest_amount": 10,
      "projected_fees_amount": 10
    },
    "amortization_schedules": [
      {
        "amort_installment_number": 1,
        "amort_payment_due_date": "2022-02-01",
        "amort_payment_amount": 1740.34,
        "amort_payment_principal": 1000,
        "amort_payment_fees": 7.51,
        "amort_payment_interest": 10,
        "amort_payment_balance": 2000
      }
    ],
    "count_of_installments": 4,
    "installment_amount": 1740.34,
    "loan_start_date": "2022-06-02",
    "first_installment_due_date": "2022-02-01"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.