Edit the item of the directory "Repayment order"
Edits / updates an element of the directory "Repayment order".
Two repayment orders are marked as System (respectively, they cannot be edited or deleted):
Penalty, Interest, Principal (101201) - as it is used in the Repayment document (Penalties, Interest, Fixed Assets) All penalties, all interest, all principal (101207) - used as the default order for cases where the order is not specified ( for example, to pay off fees on deposit / share contracts) All other repayment orders can be edited / deleted.
Possible mistakes:
-
NO_REPAYMENT_SEQUENCE_RULES_ERROR - The rules for the redemption order are not filled
-
NO_REPAYMENT_SEQUENCE_TYPE_ERROR - The type of the redemption order rule is not specified
-
NO_REPAYMENT_SEQUENCE_RULE_STEPS_ERROR - Redemption order rule steps not completed
-
NO_STEP_AMOUNT_TYPE_ERROR - The amount type for the step is not specified
-
CANNOT_MODIFY_REPAYMENT_SEQUENCE_ERROR__SYSTEM_OBJECT - You cannot edit a dictionary item, because it is systemic
Parameters
Path Parameters
Identifier of an element of the "Maturity orders" lookup
"int64"Request Body
Active
Name
Repayment rules
For overdue tranches only
Redemption rule identifier
"int64"Sequence number
"int32"Steps of repayment
"HORIZONTAL""VERTICAL"Responses
OK
The identifier of the created item of the "Invoices" lookup
"int64"If the element is successfully added to the directory, the status "ok" is returned. Otherwise, an error is returned
"error""ok"Returns the date + time (kernel) in unix timestamp format in milliseconds
"int64"