> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scoutforschools.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Enrollment

> Submit a family's enrollment application, from creation to the district's decision.

The enrollment submission API lets your system file a family's enrollment application with a
district: create a submission, upload its documents, finalize it for review, and read the status
of your submission. Scout sends no email to the family at any point — your system owns the
relationship end to end.

**1. Before you start**

You need an API client with the `enrollment-submissions` scope; it covers every endpoint on
this page. Exchange your credentials for a bearer token as described in
[Authentication](https://docs.scoutforschools.com/api-reference/authentication.md) and send it on every request. A token without
the scope returns `403`.

The enrollment form is highly customizable, with the ability to control which information is
required to be collected during enrollment, or should not be collected at all. All enrollment
submissions are validated against the enrollment form configuration for the district the
submission is for. There are also some fields which are always required, regardless of the
district's settings. Additionally, districts configure their enrollment and re-enrollment
forms separately, so the required elements can differ between the two. You can read more
about invalid submissions in the
[enrollment submission error response section](#enrollment-submission-error-responses).

**2. Look up Scout's internal ids**

Some information submitted during enrollment requires knowledge of Scout's internal
identifiers for items such as schools, learning centers, courses, and more. You can view the
available options for each of these items using the `GET /enrollment/submissions/options`
endpoint.

```bash theme={null}
curl https://api.teachwithscout.com/v1/enrollment/submissions/options \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

You can reference the school year either by its `id` (`schoolYearId`) or by its `identifier`
(`schoolYear`, for example `2026-2027`) — send one, not both. The identifier must match
exactly.

**3. Create the submission**

`POST /enrollment/submissions` creates the submission and returns its `enrollmentRecordId`,
which every later call uses. Send the complete application as the family filled it out — Scout
does not prefill anything.

```bash theme={null}
curl -X POST https://api.teachwithscout.com/v1/enrollment/submissions \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "externalId": "app-2027-000451",
    "email": "parent@example.com",
    "schoolId": "sch_abc123",
    "schoolYear": "2026-2027",
    "basicInfo": {
      "legalName": { "firstName": "Alex", "lastName": "Rivera" },
      "gradeLevel": "03"
    },
    "demographics": {
      "birthdate": "2017-09-14",
      "stateId": "1234567890"
    }
  }'
```

```json theme={null}
{
  "invitationId": "ei_7f3k2m",
  "enrollmentRecordId": "st_enr_rec_9x4p1q",
  "status": "in_progress",
  "duplicate": false,
  "studentId": null
}
```

Scout checks the body against the district's enrollment form and reports every problem in one
`400`. Creation rejects unknown ids and values the form doesn't accept; required fields aren't
enforced until you finalize, so you can create early and fill in the rest with updates.

Scout creates an account for `email` if it doesn't have one. No email is sent to the family.

### Deduplication

It is best to always send an `externalId`: your own system's identifier for the enrollment.
This helps ensure that both systems agree on the record being created (or updated), and also
prevents duplicate submissions from being created. A request to create a submission with an
existing external ID will return the existing submission with `duplicate: true`, so that a
duplicate request does not create new submissions.

Scout will also try to automatically detect duplicate submissions based on the student's
identity, using either the student's state identifier or the student's legal name and
birthday. If another open submission matches those inputs, the request is rejected with a
`400` `duplicate_submission` error with the existing submission id attached.

**4. Upload documents**

`POST /enrollment/submissions/{enrollmentRecordId}/documents` uploads document files to the
submission. Send each file as a `multipart/form-data` part named for its document type — for
example, one `proofOfResidency` part per residency document.

```bash theme={null}
curl -X POST https://api.teachwithscout.com/v1/enrollment/submissions/$RECORD_ID/documents \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -F "proofOfBirthDate=@birth-certificate.pdf" \
  -F "proofOfResidency=@utility-bill.pdf"
```

Each file must be a PDF without a password, or a JPEG, PNG, or WebP image, at most 100 MB.
Scout reads the type from the file's content, not its name or `Content-Type`, so convert HEIC
photos to JPEG first.

Each document type attaches to a section of the submission's data (`proofOfResidency` to
`demographics`, `transcript` to `previousSchool.previousSchool`, and so on), so that section
must already be on the submission. The reference for the upload endpoint lists every document
type and the section it attaches to.

Files add to the ones already uploaded. To replace a document, remove the type's files with
`DELETE /enrollment/submissions/{enrollmentRecordId}/documents/{documentType}`, then upload
the new file.

**5. Make changes to the submission as necessary**

If something changes on the enrollment form, the data submitted to Scout can be updated by
calling `PUT /enrollment/submissions/{enrollmentRecordId}`. Scout does not accept partial
updates, please resend the complete, current enrollment submission. Any data not submitted
will be cleared, with the exception of the external ID or student ID.

Scout runs the same enrollment validation as the creation endpoint and reports any issues in
a single `400` response. An update will never change the submission's status.

**6. Finalize the submission**

Once the application is complete, use the
`POST /enrollment/submissions/{enrollmentRecordId}/finalize` endpoint to finalize it.

```bash theme={null}
curl -X POST https://api.teachwithscout.com/v1/enrollment/submissions/$RECORD_ID/finalize \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

```json theme={null}
{
  "invitationId": "ei_7f3k2m",
  "enrollmentRecordId": "st_enr_rec_9x4p1q",
  "status": "completed",
  "duplicate": false,
  "studentId": null
}
```

Scout will perform one last round of validation before returning a response. In districts
that require approvals for submitted enrollment records, Scout will return a
`status: completed` in its response to indicate the application is awaiting review. In
districts that do not require approval, Scout will return `status: approved` in the response
with the student's ID.

Attempting to finalize a submission that is already in review will change nothing and return
with `duplicate: true`. Once a submission is finalized, it can no longer be updated — a `PUT`
returns `409` while it's in review or after approval.

**7. Monitor the enrollment submission's status**

`GET /enrollment/submissions/{enrollmentRecordId}` returns where the submission is in review.

```bash theme={null}
curl https://api.teachwithscout.com/v1/enrollment/submissions/$RECORD_ID \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

```json theme={null}
{
  "invitationId": "ei_7f3k2m",
  "enrollmentRecordId": "st_enr_rec_9x4p1q",
  "status": "approved",
  "studentId": "st_m2k8x4"
}
```

* `in_progress`: not yet finalized.
* `completed`: waiting for district staff to review it.
* `approved`: staff approved it and enrolled the student.
* `rejected`: staff sent it back for corrections.

For new student enrollments, the `studentId` field is `null` until the submission has been
approved. For reenrollments where you provided the `studentId`, it will be populated while
the submission is pending approval. When Scout matches a returning student itself, the id
appears once the submission is approved.

Once the submission is approved, use the `studentId` with the other API endpoints: upload a
signed master agreement with `POST /student/{studentId}/master-agreements/upload` (requires
the `master-agreements` scope), and read rostering data from the OneRoster endpoints.

## Re-enrolling a returning student

When you know the student's Scout id — from a previous year's approved submission or from the
OneRoster API — create the submission with `studentId`. On approval, Scout re-enrolls that
student rather than creating a new one. A student who is already enrolled for the school year is
rejected with a `400`.

When you don't have the id, submit the application without one. At finalize, Scout looks for a
returning student: a single student matching both the submission's `demographics.stateId` and
`demographics.birthdate` is re-enrolled on approval instead of being enrolled as a new student.
Weaker evidence — a state id several students share, a birthdate that differs or is missing, or
only a matching legal name and birthdate — holds the submission for staff review, even in
districts that approve submissions automatically, so that auto-approval can never create a
duplicate student.

## Enrollment submission error responses

When a create, update, or document upload is rejected, the `400` response lists every problem at
once: `message` summarizes them in one line, and `errors` locates each one.

```json theme={null}
{
  "status": 400,
  "message": "Invalid enrollment submission: ...",
  "errors": [
    {
      "path": "demographics.birthdate",
      "code": "invalid_format",
      "message": "must be a date in YYYY-MM-DD format"
    }
  ]
}
```

* `invalid_format`: wrong type or format, or over a size limit.
* `unknown_id`: the id matches nothing in the district. Check it against
  `GET /enrollment/submissions/options`.
* `invalid_value`: the value isn't accepted; the message says why.
* `not_collected`: the district's form doesn't collect this field or document. Leave it out.
* `immutable`: the field can't change after creation. Omit it or send the stored value.
* `missing_document_destination`: documents were uploaded to this section, so an update must
  keep it.
* `unsupported_file_type`: the file isn't a PDF, JPEG, PNG, or WebP image.
* `duplicate_submission`: an open submission of yours already covers this student for the school
  year. `message` names its id; update and finalize that one instead.

A finalize `400` reports the district's form requirements in `message` alone. A problem that
isn't tied to one field comes back with an empty `errors` array.

A `409` means the request raced or arrived too late, not that it was invalid:

* Creating while another request with the same `externalId` is in flight — retry shortly to get
  the submission back with `duplicate: true`.
* Updating or uploading to a submission that can no longer change: it's waiting for review, it's
  approved, or it was approved before staff sent it back.
* Finalizing a submission that was updated mid-flight — finalize it again.

For `401` and `403`, see [Authentication](https://docs.scoutforschools.com/api-reference/authentication.md). A `413` means the JSON
body is over 50 MB, or a document file is over 100 MB.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.