In this example, we will review how to accept the loan application.
The application ID-1664282446 is accepted.
...applications/ID-1664282446/accept
To accept a loan application, call this API endpoint.
https://loan-api.sandbox.tuumplatform.com/api/v1/applications/{applicationId}/accept
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/acceptcurl -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"
  }'Below you find an example response body to the API call above.
The loan offer ID-1664282446 is accepted. And the Tuum system will create a loan application offer automatically.