Generate a contract statement PDF

Generates, downloads, views, or emails one family's contract statement for the requested date range and options.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
family_student_idintegerRequired>=1
fromdatetimeRequired
todatetimeRequired
contract_idinteger or nullOptional
students_idlist of integersOptional
separate_linebooleanOptional
include_previous_years_balancebooleanOptional
show_payment_allocationsbooleanOptional
send_emailbooleanOptional
send_test_emailstring or nullOptionalformat: "email"
payer_idslist of strings or nullOptional

Response

The requested PDF is returned as binary content when downloading or viewing
statusstringOptional
messagestringOptional
dataobject or nullOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error