FTOS_CB_AddUpdateWriteOff

Adds a new record to the Contract Event entity representing a contract write-off event.

This endpoint is available starting with Loan Management v4.1.

Syntax

The FTOS_CB_AddUpdateWriteOff custom endpoint is called from within the Endpoint API endpoint. Visit the Endpoint API page for more details.

Copy
POST <host_address>/ftosapi/automation-processors/actions/FTOS_CB_AddUpdateWriteOff
Content-Type: application/json

{
  "contractName": "<contract_number>",
  "eventName": "<event_number>",
  "isPartialWriteOff": <true_or_false>,
  "writeOffReason": "<reason_for_write_off_transaction>",
  "writeOffDetails": {
    "Remaining Principal": <remaining_principal_amount_on_contract>,
    "Management Fee": <management_fee>,
    ...
  }
}

Here's a list of the available parameters:

Parameter Description
host_address URL of the FintechOS Platform server.
contractName Mandatory. The number of the contract.
eventName Mandatory only for update operations. Do not send it for add operations. The number of the write-off event.
externalIdentifier Optional, string. The external identifier of the transaction.
isPartialWriteOff Optional, boolean. If false then the write-off transaction is performed for full amount. Default value: false
writeOffDetails Object with values for write-off details. Optional on add when isPartialWriteOff= false. Mandatory on update.
writeOffReason Mandatory. The reason for performing the write-off transaction.

Response

The response indicates the number of the write-off event record from the Contract Event entity, as well as an object containing the write-off details with the values of each operation item.

Copy
{
  "EventName": "EventName",
  "WriteOffDetails": null
}

Example

Error Responses