Use this endpoint to fetch the school debtor accounts.
By default, only active debtors accounts (current learners or accounts with an outstanding balance) will be returned. You can use the all_accounts query parameter to fetch all debtor accounts (includes left learners and 0 balance accounts).
To include learners data in the response use the include_learners query parameter.
Optionally it is possible to filter on a specific debtor_code or accountable_person_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
include_learners
Boolean
Whether to include the learner data in the response