Create contract fee booking
Use case
In this article, we will review how to create a loan contract fee booking.
Use case data
API parameters with values
Contract booking fee type. We will book an account administration fee.
"componentTypeCode": "ADM"The date when the fee must be reversed. The date format is: YYYY-MM-DD.
"effectiveDate": "2023-08-08"The fee amount is 10 EUR.
"money": {
"amount": "10",
"currencyCode": "EUR"
}The fee will be applied with the next payment. Note that you can also use the INSTANT option to apply the fee instantly.
"repaymentTypeCode": "WITH_NEXT_PAYMENT"Sample API call
To create a contract fee booking, make the following API call.
https://loan-api.sandbox.tuumplatform.com/api/v1/contracts/{headerId}/fees
Sample request
Below is an example request of the API call for creating a fee booking.
{
"componentTypeCode": "ADM",
"effectiveDate": "2023-08-08",
"money": {
"amount": "10",
"currencyCode": "EUR"
},
"repaymentTypeCode": "WITH_NEXT_PAYMENT"
}curl --location 'https://loan-api.sandbox.tuumplatform.com/api/v1/contracts/ID-1664282485/fees' \
--header 'x-channel-code: SYSTEM' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHBpcnlEVGltZSI6IjIwMjMtMDgtMDhUMTA6Mzg6MjEiLCJyb2xlcyI6WyJBRE1JTiJdLCJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHAiOjE2OTE0OTExMDF9.c_BuJjt1pt5OLjS6E4rSMli0yNQ5k8w3DTen6-9TXm4' \
--header 'Content-Type: application/json' \
--data '{
"componentTypeCode": "ADM",
"effectiveDate": "2023-08-08",
"money": {
"amount": "10",
"currencyCode": "EUR"
},
"repaymentTypeCode": "WITH_NEXT_PAYMENT"
}'Sample response
Below you find an example response body to the API call above.
Result
A new fee booking ID-1017 was created.
Last updated
Was this helpful?