View or download one contract PDF

Generates the requested contract PDF and returns it inline or as a download. The frontend uses the same response for viewing and downloading.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
contract_idintegerRequired>=1
include_previous_years_balanceboolean or nullOptional
previous_years_balance_typeenum or nullOptional
Allowed values:
payerslist of stringsOptional
document_layoutenumOptionalDefaults to combined
Allowed values:

Response headers

Content-DispositionstringOptional
Inline or attachment filename supplied by the server.
Content-Lengthinteger

Response

Generated PDF file.

Errors

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