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"

The componetTypeCode can have one of the following values:

  • ADM - Account administration fee,

  • BILLING_ADMINISTRATION_FEE - Billing administration fee,

  • CEFTIFICATE_FEE - Loan certificate fee,

  • CHANGE_FEE - Contract changing fee,

  • COF - Contract Conclusion fee,

  • DISBURSEMENT_FEE - Disbursement fee,

  • REMINDER_FEE - Reminder fee.

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

See more about the create contract fee booking endpoint in the Tuum developer portal.

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"
}

Sample response

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

Response
{
    "errors": null,
    "validationErrors": null,
    "data": {
        "bookingId": "ID-1017",
        "headerId": "ID-1664282485",
        "componentTypeCode": "ADM",
        "typeCode": "BOOKING",
        "postingDate": "2023-08-08",
        "effectiveDate": "2023-08-08",
        "details": null,
        "accrualRange": {
            "endDate": "2023-09-07",
            "startDate": "2023-08-08"
        },
        "active": true,
        "contractNumber": "INST2-1004",
        "originalBookingId": null,
        "accruedUntilDate": "2023-08-08",
        "reversedMoney": {
            "amount": 0.00,
            "currencyCode": "EUR"
        },
        "money": {
            "amount": 10.00,
            "currencyCode": "EUR"
        },
        "bookedMoney": {
            "amount": 0.33,
            "currencyCode": "EUR"
        },
        "balanceMoney": {
            "amount": 10.00,
            "currencyCode": "EUR"
        },
        "eventTypeCode": "DEFERRED_TO_INC",
        "source": null,
        "repaymentTypeCode": "WITH_NEXT_PAYMENT",
        "numberOfPayments": null,
        "reasonCode": null,
        "solvencyLevelCode": null,
        "feeSubtypeCode": null,
        "statusCode": "BOOKED"
    }
}

Result

A new fee booking ID-1017 was created.

Last updated

Was this helpful?