Skip to main content
GET
/
api
/
enrollments
/
{enrollment_id}
curl -X GET "https://api.athena-erp.com/api/enrollments/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "school_id": "550e8400-e29b-41d4-a716-446655440000",
  "student_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "school_year_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
  "grade_level": "10°",
  "group_code": "A",
  "shift": "morning",
  "status": "active",
  "status_history": [
    {
      "status": "pending_documents",
      "changed_at": "2024-01-15T10:30:00Z",
      "changed_by": "d4e5f6a7-b8c9-0123-def1-234567890123"
    },
    {
      "status": "active",
      "changed_at": "2024-01-20T14:25:00Z",
      "changed_by": "d4e5f6a7-b8c9-0123-def1-234567890123"
    }
  ],
  "simat_status": {},
  "extra_data": {
    "special_needs": false,
    "transportation": "school_bus"
  },
  "student_name": "Juan Pérez García",
  "school_year_name": "2024",
  "documents": [
    {
      "id": "e5f6a7b8-c9d0-1234-efab-567890123456",
      "school_id": "550e8400-e29b-41d4-a716-446655440000",
      "enrollment_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "document_type": "birth_certificate",
      "status": "uploaded",
      "r2_object_key": "550e8400-e29b-41d4-a716-446655440000/students/b2c3d4e5-f6a7-8901-bcde-f12345678901/enrollments/a1b2c3d4-e5f6-7890-abcd-ef1234567890/birth_certificate.pdf",
      "file_name": "birth_certificate.pdf",
      "uploaded_at": "2024-01-16T09:15:00Z",
      "validated_at": null,
      "validated_by": null,
      "accepted_by_guardian_id": null,
      "document_version": "1",
      "metadata_json": {}
    }
  ],
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-20T14:25:00Z"
}

Path Parameters

enrollment_id
uuid
required
Unique identifier of the enrollment

Response

Returns the complete enrollment object with all associated documents.
id
uuid
Unique enrollment identifier
school_id
uuid
School identifier
student_id
uuid
Student identifier
school_year_id
uuid
School year identifier
grade_level
string
Grade level (e.g., “1°”, “2°”, “10°”, “11°”)
group_code
string
Group or class code (e.g., “A”, “B”, “1A”)
shift
string
School shift (e.g., “morning”, “afternoon”)
status
string
Current enrollment status
status_history
array
Array of status changes with timestamp and user
simat_status
object
SIMAT (Colombian education system) status data
extra_data
object
Additional custom data for the enrollment
student_name
string
Full name of the student
school_year_name
string
Name of the school year
documents
array
Array of enrollment document objects
created_at
datetime
Timestamp when the enrollment was created
updated_at
datetime
Timestamp when the enrollment was last updated
curl -X GET "https://api.athena-erp.com/api/enrollments/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "school_id": "550e8400-e29b-41d4-a716-446655440000",
  "student_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "school_year_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
  "grade_level": "10°",
  "group_code": "A",
  "shift": "morning",
  "status": "active",
  "status_history": [
    {
      "status": "pending_documents",
      "changed_at": "2024-01-15T10:30:00Z",
      "changed_by": "d4e5f6a7-b8c9-0123-def1-234567890123"
    },
    {
      "status": "active",
      "changed_at": "2024-01-20T14:25:00Z",
      "changed_by": "d4e5f6a7-b8c9-0123-def1-234567890123"
    }
  ],
  "simat_status": {},
  "extra_data": {
    "special_needs": false,
    "transportation": "school_bus"
  },
  "student_name": "Juan Pérez García",
  "school_year_name": "2024",
  "documents": [
    {
      "id": "e5f6a7b8-c9d0-1234-efab-567890123456",
      "school_id": "550e8400-e29b-41d4-a716-446655440000",
      "enrollment_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "document_type": "birth_certificate",
      "status": "uploaded",
      "r2_object_key": "550e8400-e29b-41d4-a716-446655440000/students/b2c3d4e5-f6a7-8901-bcde-f12345678901/enrollments/a1b2c3d4-e5f6-7890-abcd-ef1234567890/birth_certificate.pdf",
      "file_name": "birth_certificate.pdf",
      "uploaded_at": "2024-01-16T09:15:00Z",
      "validated_at": null,
      "validated_by": null,
      "accepted_by_guardian_id": null,
      "document_version": "1",
      "metadata_json": {}
    }
  ],
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-20T14:25:00Z"
}

Permissions Required

  • read:enrollment
  • read:all

Path Parameters

enrollment_id
string
required

Unique identifier of the enrollment

Response

200 - application/json

Response 200

id
string

Unique enrollment identifier

school_id
string

School identifier

student_id
string

Student identifier

school_year_id
string

School year identifier

grade_level
string

Grade level (e.g., “1°”, “2°”, “10°”, “11°”)

group_code
string

Group or class code (e.g., “A”, “B”, “1A”)

shift
string

School shift (e.g., “morning”, “afternoon”)

status
string

Current enrollment status

status_history
object[]

Array of status changes with timestamp and user

simat_status
object

SIMAT (Colombian education system) status data

extra_data
object

Additional custom data for the enrollment

student_name
string

Full name of the student

school_year_name
string

Name of the school year

documents
object[]

Array of enrollment document objects

created_at
object

Timestamp when the enrollment was created

updated_at
object

Timestamp when the enrollment was last updated

Build docs developers (and LLMs) love