All pages
Powered by GitBook
1 of 1

Loading...

Accept loan application

Use case

In this example, we will review how to accept the loan application.

Use case data
API parameters with values

The application ID-1664282446 is accepted.

...applications/ID-1664282446/accept

The accept endpoint triggers the Tuum system and creates the loan application offer automatically.

Sample API call

To accept a loan application, call this API endpoint.

Sample request

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

https://loan-api.sandbox.tuumplatform.com/api/v1/applications/ID-1664282446/accept
curl -L 'https://loan-api.sandbox.tuumplatform.com/api/v1/applications/ID-1664282446/accept' \
-H 'x-channel-code: SYSTEM' \
-H 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHBpcnlEVGltZSI6IjIwMjMtMDctMjVUMDk6MDE6NDkiLCJyb2xlcyI6WyJBRE1JTiJdLCJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHAiOjE2OTAyNzU3MDl9.u5A7egCfKbieSmwg29syuj-JKp8Wm0cdBKasKfD_4Wk' \
-H 'Content-Type: application/json' \
-d '{
  "requestedMoney": {
    "amount": "10000",
    "currencyCode": "EUR"
  },
  "loanPeriod": 10,
  "loanTypeCode": "ANNUITY STANDARD",
  "paymentDay": 1,
  "monthlyRepaymentMoney": {
    "amount": "1032.86",
    "currencyCode": "EUR"
  },
  "countryCode": "GB"
  }'

Sample response

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

Response
{
    "errors": null,
    "validationErrors": null,
    "data": null
}

Result

The loan offer ID-1664282446 is accepted. And the Tuum system will create a loan application offer automatically.

https://loan-api.sandbox.tuumplatform.com/api/v1/applications/{applicationId}/accept

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

To verify if the loan application offer was created, use the endpoint.

accept loan application
find loan application offers