Create contract fees

Creates a contract fee payment plan after validating installments, dates, amount, discount, and the selected contract.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects an object.
contract_fees_type_idintegerRequired
contract_idintegerRequired
students_idlist of integersRequired
responsible_idintegerRequired
responsible_typeenumRequired
Allowed values:
due_datedatetimeRequired
of_installmentsintegerRequired
amountdoubleRequired>=0
contract_fees_period_idintegerRequired
fees_planlist of objectsRequired
responsible_notestring or nullOptional<=255 characters
grace_perioddoubleOptional>=0
discountdoubleOptional

Response

Contract fees were created successfully.
statusstringOptional
messagestringOptional
datamap from strings to anyOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error