Use this endpoint to generate an age analysis report for the specified school.
By default, only active accounts (current learners or accounts with an outstanding balance) will be returned. You can use the all_accounts query parameter to generate the report for all accounts (includes left learners and 0 balance accounts).
The report, by default, will be grouped by family and parent. Use the per_learner or per_category query parameter to group the data accordingly. If the per_learner and the per_category parameters are used in combination, the results will be grouped per learner, per category.
Additionally it is possible to filter on a specific debtor_code , learner_id , accountable_person_id and/or category_id.
Path Parameters
Name
Type
Description
school_login_id*
Integer
The login ID of the school to retrieve data from
Headers
Name
Type
Description
HTTP-X-USERNAME*
String
As provided by d6
HTTP-X-PASSWORD*
String
As provided by d6
Query Parameters
Name
Type
Description
all_accounts
Boolean
Whether to include all accounts
per_learner
Boolean
Whether to group the data per learner
per_category
Boolean
Whether to group the data per category (can be used in conjunction with per_learner)