LogoLogo
Developer portal
  • Welcome
    • About cookbooks
  • Authentication
    • About authentication
    • Authenticate employee
    • Create customer credentials
    • Authenticate customer
    • Refresh JSON Web Token
    • Invalidate customer credentials
    • Export-import roles
      • Export selected roles
      • Import selected roles
      • Import all roles
  • Header parameters
    • About header parameters
    • Mandatory parameters
    • Optional parameters
      • Requests with same request ID
      • Requests without request ID
  • Employee
    • Create employee
    • Find employee by ID
    • Find employee by username
  • Person
    • Create private person
    • Create legal person
    • Activate person
    • Find person
      • Find person details
      • Find person addresses
    • Create person document
    • Update personal info
    • Update person address
    • Create customer group
    • Create additional contact
    • Assign person to group
    • Create person representation
    • Close person representation
    • Create person financial data
    • Inactivate person
    • Reactivate person
    • Reactivate person
    • Forget person
    • Remove person restoration key
  • ACCOUNTS
    • Create currency account
    • Create internal account
    • Create virtual account
    • Create account application
    • Set account access rights
    • Create account limit code
    • Create account limit type
    • Create account limit
    • Create account class code
    • Create account type class rule
    • Find person accounts
    • Search account transactions
  • Reports
    • Reports
    • Request to generate account transactions report
      • Account transactions report parameters
  • Check report generation status
  • Download requested report
  • DEPOSITS
    • Deposit product management
      • Create deposit class code
      • Create deposit product
      • Update deposit product
      • Activate deposit product
      • Find deposit product
      • Inactivate deposit product
    • Deposit flow
      • Create deposit application
      • Find deposit application
      • Create deposit offer
      • Find deposit offer
      • Edit deposit offer
      • Accept deposit offer
      • Decline deposit offer
      • Find deposit contract
    • Deposit contract management
      • Change payout details
      • Change contract prolongation status
      • Update contract header
      • Adjust deposit contract interest
      • Make premature termination
  • Payments
    • Create outgoing payments
      • Create SEPA payment
      • Create SWIFT payment
      • Create domestic UK payment
      • Create domestic US payment
    • Change payment
    • Cancel payment
    • Confirm payment
    • Find AML information of a payment
    • Find settled SEPA transaction
    • Create payment template
    • Initialise FX quote request
    • Get FX quote response
    • Initiate FX order
  • LOANS
    • Create loan application
    • Accept loan application
    • Find loan application offers
    • Create loan offer
    • Accept loan offer
    • Find person contracts
    • Accept loan contract
    • Disburse loan contract
    • Create contract fee booking
    • Default loan contract
  • CARDS
    • Create price list
    • Create price for the price list
    • Card counting and summing groups
      • Create counting group
      • Create summing group
      • Find counting values for card
      • Find summing values for account
    • Add BIN
    • Create upper limit group
    • Create upper usage group
    • Create card design
    • Create debit card product
    • Activate card product
    • Create debit card application
    • Create credit product
    • Create credit card offer
    • Accept credit card offer
  • Interest base rates
    • Add interest base rate type - periodic
    • Add interest base rate type - instant
  • Interest rate caps
    • Add interest rate cap type
  • Webhooks
    • About webhooks
    • Find available webhooks
    • Enable or disable notification for webhook
      • Enable with notification type and channel code
      • Enable with notification ID
      • Disable with notification type and channel code
      • Disable with notification ID
    • Search subscribed webhooks
    • Subscribe webhook
    • Update webhook subscription
    • Unsubscribe webhook
    • Webhooks with payloads
      • Person
      • Account
      • Deposit
      • Payments
      • AML processes
      • Loan
      • Card
      • Debt
      • Finance
      • Reports
      • Processes
  • Lookups
    • About lookups
    • Find existing lookup groups
    • Find lookup values
      • Find entities
      • Find lookup type codes
      • Find lookup types
      • Find translation of lookup type
    • Create lookup values
      • Create lookup type and codes
      • Create lookup code for existing type
      • Create lookup translation
    • Manage lookup values
      • Mark lookup code as default
      • Remove default lookup code
      • Delete lookup code
  • Custom fields
    • About custom fields
    • Create custom fields
      • Create field set
      • Create fields
      • Create fields with copied values
    • Find custom fields
      • Find field sets
      • Find fields
      • Search custom field sources
      • Get custom field value
    • Update custom fields
      • Update field set
      • Update field
      • Update custom field value
    • Manage custom fields
      • Insert custom field values
      • Copy custom field values
      • Deactivate field
      • Delete custom field value
  • Holidays
    • Create holiday
    • Search existing holidays
    • Search holiday by ID
    • Delete holiday
Powered by GitBook

© Tuum 2024

On this page
  • Use case
  • Sample API call
  • Sample request
  • Sample response
  • Result

Was this helpful?

Export as PDF
  1. LOANS

Create loan application

PreviousInitiate FX orderNextAccept loan application

Last updated 9 months ago

Was this helpful?

Use case

Here we will review how to create a loan application for an unsecured loan with the minimum set of data:

Use case data
API parameters with values

The person with the ID-3392 is a borrower and requested a loan.

...persons/ID-3392/applications

The borrower requested 10000 GBP.

The duration of the loan is 10 months.

The loan product name is annuity standard.

The borrower has to repay the loan on the first day of the month; the monthly repayment amount is 1032.86 GBP.

The corresponding loan product was created on the MB tenant.

The loan application score.

The loan payment channel code.

The loan will be paid out to the borrower's account.

Sample API call

To create a new loan application, make the following API call.

https://loan-api.sandbox.tuumplatform.com/api/v3/persons/{personId}/applications

See more information about the endpoint in the Tuum developer portal.

Sample request

Below is an example request body of the API call for creating a loan application.

{
  "requestedMoney": {
    "amount": "10000",
    "currencyCode": "EUR"
  },
  "loanPeriod": 10,
  "loanTypeCode": "ANNUITY STANDARD",
  "paymentDay": 1,
  "monthlyRepaymentMoney": {
    "amount": "1032.86",
    "currencyCode": "EUR"
  },
  "countryCode": "GB",
  "tenantCode": "MB",
  "applicationScore": 200,
  "paymentChannelCode": "TRUSTLY",
    "paymentInstructions": [
    {
      "beneficiaryName": "Trevor Tuum",
      "beneficiaryIban": "GB44BARC20040423259459",
      "beneficiaryAccountId": "ID-12389",
      "money": {
        "amount": 10000,
        "currencyCode": "EUR"
      }
    }
  ]
  }
curl --location 'https://loan-api.sandbox.tuumplatform.com/api/v3/persons/ID-3392/applications' \
--header 'x-channel-code: system' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHBpcnlEVGltZSI6IjIwMjQtMDktMDJUMTI6NDE6MTAiLCJleHAiOjE3MjUyODA4NzAsInJvbGVzIjpbIkFETUlOIl19.SKHx8FLUnS31w0DVyp2AxNG8mVYQX8XbAOYuznUhCK0' \
--header 'Content-Type: application/json' \
--data '{
  "requestedMoney": {
    "amount": "10000",
    "currencyCode": "EUR"
  },
  "loanPeriod": 10,
  "loanTypeCode": "ANNUITY STANDARD",
  "paymentDay": 1,
  "monthlyRepaymentMoney": {
    "amount": "1032.86",
    "currencyCode": "EUR"
  },
  "countryCode": "GB",
  "tenantCode": "MB",
  "applicationScore": 200,
  "paymentChannelCode": "TRUSTLY",
    "paymentInstructions": [
    {
      "beneficiaryName": "Trevor Tuum",
      "beneficiaryIban": "GB44BARC20040423259459",
      "beneficiaryAccountId": "ID-12389",
      "money": {
        "amount": 10000,
        "currencyCode": "EUR"
      }
    }
  ]
  }'

Sample response

Below you find an example response body to the API call above.

Response
{
    "errors": null,
    "validationErrors": null,
    "data": {
        "applicationId": "ID-1664282445",
        "personId": "ID-3392",
        "money": {
            "amount": 10000.00,
            "currencyCode": "EUR"
        },
        "loanPeriod": 10,
        "statusCode": "SUBMITTED",
        "loanTypeCode": "ANNUITY STANDARD",
        "purpose": null,
        "applicationDate": "2023-06-29",
        "invoiceDay": null,
        "paymentDay": 1,
        "servicingAccountId": null,
        "scheduleTypeCode": "ANNUITY",
        "countryCode": "GB",
        "monthlyRepaymentMoney": {
            "amount": 1032.86,
            "currencyCode": "EUR"
        },
        "monthlyRepaymentRate": null,
        "tenantCode": "MB",
        "applicationScore": 200,
        "applicationScoreDueDate": null,
        "maxMoney": null,
        "maxPeriod": null,
        "statusCodeReasons": null,
        "source": null,
        "interestRate": null,
        "channelCode": "system",
        "additionalData": null,
        "depositAmount": null,
        "loanToValue": null,
        "paymentFreeMonths": null,
        "lastChangeDate": null,
        "campaignIds": [],
        "limitUsageDate": null,
        "contractEndDate": null,
        "maxInvoiceMoney": null,
        "minInvoiceMoney": null
    }
}

Result

The outcome of the API call is the complete set of loan application data. Including the parameters generated by the Tuum system:

Parameter and value
Explanation

A new loan application with the ID-1664282445 was registered in the system.

The loan application status is submitted. Now the bank can accept or decline the application.

The application date format is: YYYY-MM-DD.

 "requestedMoney": {
    "amount": "10000",
    "currencyCode": "GBP"
  }
"loanPeriod": 10
"loanTypeCode": "ANNUITY STANDARD"
"paymentDay": 1,
"monthlyRepaymentMoney": {
"amount": "1032.86",
"currencyCode": "GBP"
}
"tenantCode": "MB"
"applicationScore": 200
"paymentChannelCode": "TRUSTLY"
 "paymentInstructions": [
    {
      "beneficiaryName": "Trevor Tuum",
      "beneficiaryIban": "GB44BARC20040423259459",
      "beneficiaryAccountId": "ID-12389",
      "money": {
        "amount": 10000,
        "currencyCode": "EUR"
      }
    }
  ]
"applicationId": "ID-1664282445"
 "statusCode": "SUBMITTED"
 "applicationDate": "2023-06-29"
create loan application