{"openapi":"3.0.0","paths":{"/api/v1/partner/v1/me":{"get":{"description":"Returns the authenticated partner identity, scopes, and listing limit.","operationId":"PartnerListingsController_me","parameters":[],"responses":{"200":{"description":"Partner identity, scopes, and listing limit."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Get current partner","tags":["Partner API"]}},"/api/v1/partner/v1/listings":{"get":{"description":"Lists every school listing owned by the authenticated partner.","operationId":"PartnerListingsController_listListings","parameters":[],"responses":{"200":{"description":"Array of the partner’s listings."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"List listings","tags":["Partner API"]},"post":{"description":"Creates a new listing. Goes live immediately as UNVERIFIED. Requires the listings:write scope.","operationId":"PartnerListingsController_createListing","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCreateListingDto"}}}},"responses":{"201":{"description":"The created listing (UNVERIFIED)."},"400":{"description":"Invalid/unknown field or duplicate listing name."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"403":{"description":"Missing scope, or listing limit reached."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Create a listing","tags":["Partner API"]}},"/api/v1/partner/v1/listings/{id}":{"get":{"operationId":"PartnerListingsController_getListing","parameters":[{"name":"id","required":true,"in":"path","description":"ID of a listing owned by the partner.","schema":{"type":"string"}}],"responses":{"200":{"description":"The listing."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"404":{"description":"Listing not found or not owned by the partner."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Retrieve a listing","tags":["Partner API"]},"patch":{"description":"Partial update. Send only the fields to change. Requires the listings:write scope.","operationId":"PartnerListingsController_updateListing","parameters":[{"name":"id","required":true,"in":"path","description":"ID of a listing owned by the partner.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerUpdateListingDto"}}}},"responses":{"200":{"description":"The updated listing."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"404":{"description":"Listing not found or not owned by the partner."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Update a listing","tags":["Partner API"]}},"/api/v1/partner/v1/listings/{id}/jobs":{"get":{"description":"Job postings created on this listing.","operationId":"PartnerJobsController_listJobs","parameters":[{"name":"id","required":true,"in":"path","description":"ID of a listing owned by the partner.","schema":{"type":"string"}}],"responses":{"200":{"description":""},"401":{"description":"Missing, invalid, revoked, or expired API key."},"404":{"description":"Listing or job not found or not owned by the partner."}},"security":[{"ApiKey":[]}],"summary":"List jobs","tags":["Partner API"]},"post":{"description":"Posts a job on this listing. Lists on the public careers feed by default.","operationId":"PartnerJobsController_createJob","parameters":[{"name":"id","required":true,"in":"path","description":"ID of a listing owned by the partner.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCreateJobDto"}}}},"responses":{"201":{"description":"The created job posting."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"404":{"description":"Listing or job not found or not owned by the partner."}},"security":[{"ApiKey":[]}],"summary":"Create a job","tags":["Partner API"]}},"/api/v1/partner/v1/listings/{id}/jobs/{jobId}":{"patch":{"description":"Edit fields or set status CLOSED to unlist.","operationId":"PartnerJobsController_updateJob","parameters":[{"name":"id","required":true,"in":"path","description":"ID of a listing owned by the partner.","schema":{"type":"string"}},{"name":"jobId","required":true,"in":"path","description":"ID of a job posting on the listing.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerUpdateJobDto"}}}},"responses":{"200":{"description":""},"401":{"description":"Missing, invalid, revoked, or expired API key."},"404":{"description":"Listing or job not found or not owned by the partner."}},"security":[{"ApiKey":[]}],"summary":"Update a job","tags":["Partner API"]}},"/api/v1/partner/v1/listings/{id}/jobs/{jobId}/applicants":{"get":{"description":"People who applied to this job.","operationId":"PartnerJobsController_listApplicants","parameters":[{"name":"id","required":true,"in":"path","description":"ID of a listing owned by the partner.","schema":{"type":"string"}},{"name":"jobId","required":true,"in":"path","description":"ID of a job posting on the listing.","schema":{"type":"string"}}],"responses":{"200":{"description":""},"401":{"description":"Missing, invalid, revoked, or expired API key."},"404":{"description":"Listing or job not found or not owned by the partner."}},"security":[{"ApiKey":[]}],"summary":"List applicants","tags":["Partner API"]}},"/api/v1/partner/v1/parentaide/me":{"get":{"description":"Partner identity, scopes, and bound school.","operationId":"PartnerParentAideController_me","parameters":[],"responses":{"200":{"description":"Partner identity, scopes, and bound school."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Get current partner","tags":["Partner API — ParentAide"]}},"/api/v1/partner/v1/parentaide/announcements":{"post":{"description":"Send an announcement to parents (whole-school, class, or year group).","operationId":"PartnerParentAideController_postAnnouncement","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAnnouncementDto"}}}},"responses":{"201":{"description":"Announcement created and sent."},"400":{"description":"Missing classRef/academicYear for the chosen audience."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Post an announcement","tags":["Partner API — ParentAide"]}},"/api/v1/partner/v1/parentaide/fees":{"post":{"description":"Raise a fee on a student so a parent can pay it in ParentAide.","operationId":"PartnerParentAideController_createFee","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerFeeDto"}}}},"responses":{"201":{"description":"Invoice created on the student."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"404":{"description":"Unknown studentRef."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Create a fee item","tags":["Partner API — ParentAide"]}},"/api/v1/partner/v1/parentaide/grades":{"post":{"description":"Publish assessment results visible to parents.","operationId":"PartnerParentAideController_postGrades","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerGradesDto"}}}},"responses":{"201":{"description":"Grades published."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"404":{"description":"Unknown studentRef in the batch."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Publish grades","tags":["Partner API — ParentAide"]}},"/api/v1/partner/v1/parentaide/attendance":{"post":{"description":"Record daily attendance; absence alerts fire to parents.","operationId":"PartnerParentAideController_recordAttendance","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAttendanceDto"}}}},"responses":{"201":{"description":"Attendance recorded."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"404":{"description":"Unknown studentRef in the batch."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Record attendance","tags":["Partner API — ParentAide"]}},"/api/v1/partner/v1/parentaide/payments":{"get":{"description":"Status of fee items raised on students, for reconciliation.","operationId":"PartnerParentAideController_getPayments","parameters":[{"name":"studentRef","required":false,"in":"query","description":"Filter by your external student identifier.","schema":{"example":"STU-00421","type":"string"}},{"name":"status","required":false,"in":"query","description":"Filter by invoice status.","schema":{"type":"string","enum":["PENDING","PARTIAL","PAID","OVERDUE","CANCELLED"]}},{"name":"academicYear","required":false,"in":"query","description":"Filter by academic year.","schema":{"example":"2025/2026","type":"string"}},{"name":"term","required":false,"in":"query","description":"Filter by term.","schema":{"example":"Term 2","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number (1-based).","schema":{"minimum":1,"example":1,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Page size.","schema":{"minimum":1,"example":20,"type":"number"}}],"responses":{"200":{"description":"Paginated invoice/payment records."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Read payment status","tags":["Partner API — ParentAide"]}},"/api/v1/partner/v1/parentaide/applications":{"get":{"description":"Admission applications submitted to the school.","operationId":"PartnerParentAideController_getApplications","parameters":[{"name":"status","required":false,"in":"query","description":"Filter by application status.","schema":{"type":"string","enum":["SUBMITTED","UNDER_REVIEW","EXAM_SCHEDULED","ACCEPTED","REJECTED","WAITLISTED","ENROLLED"]}},{"name":"academicYear","required":false,"in":"query","description":"Filter by academic year.","schema":{"example":"2025/2026","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number (1-based).","schema":{"minimum":1,"example":1,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Page size.","schema":{"minimum":1,"example":20,"type":"number"}}],"responses":{"200":{"description":"Paginated admission applications."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"List applications","tags":["Partner API — ParentAide"]}},"/api/v1/partner/v1/staffaide/me":{"get":{"description":"Partner identity, scopes, and bound school.","operationId":"PartnerStaffAideController_me","parameters":[],"responses":{"200":{"description":"Partner identity, scopes, and bound school."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Get current partner","tags":["Partner API — StaffAide"]}},"/api/v1/partner/v1/staffaide/rosters":{"post":{"description":"Set the students in a class (matched/created by studentRef).","operationId":"PartnerStaffAideController_syncRoster","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerRosterDto"}}}},"responses":{"201":{"description":"Roster synced; counts of created/updated students."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Sync a class roster","tags":["Partner API — StaffAide"]}},"/api/v1/partner/v1/staffaide/timetables":{"post":{"description":"Publish a class timetable so teachers and parents see its periods.","operationId":"PartnerStaffAideController_syncTimetable","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerTimetableDto"}}}},"responses":{"201":{"description":"Timetable published (replaces the class's existing slots for the year/term)."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Upload a timetable","tags":["Partner API — StaffAide"]}},"/api/v1/partner/v1/staffaide/assignments":{"post":{"description":"Publish an assignment to a class.","operationId":"PartnerStaffAideController_postAssignment","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAssignmentDto"}}}},"responses":{"201":{"description":"Assignment published."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Publish an assignment","tags":["Partner API — StaffAide"]}},"/api/v1/partner/v1/staffaide/staff":{"post":{"description":"Create a staff member who can sign in to StaffAide.","operationId":"PartnerStaffAideController_provisionStaff","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerStaffDto"}}}},"responses":{"201":{"description":"Staff account provisioned."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Provision a staff account","tags":["Partner API — StaffAide"]}},"/api/v1/partner/v1/staffaide/attendance":{"get":{"description":"Attendance teachers marked in StaffAide.","operationId":"PartnerStaffAideController_getAttendance","parameters":[{"name":"classRef","required":false,"in":"query","description":"Filter by class.","schema":{"example":"JHS2-B","type":"string"}},{"name":"academicYear","required":false,"in":"query","description":"Filter by academic year.","schema":{"example":"2025/2026","type":"string"}},{"name":"term","required":false,"in":"query","description":"Filter by term.","schema":{"example":"Term 1","type":"string"}},{"name":"dateFrom","required":false,"in":"query","description":"Start of date range (ISO 8601).","schema":{"example":"2026-10-01","type":"string"}},{"name":"dateTo","required":false,"in":"query","description":"End of date range (ISO 8601).","schema":{"example":"2026-10-31","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number (1-based).","schema":{"minimum":1,"example":1,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Page size.","schema":{"minimum":1,"example":20,"type":"number"}}],"responses":{"200":{"description":"Paginated attendance records."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Read marked attendance","tags":["Partner API — StaffAide"]}},"/api/v1/partner/v1/staffaide/lesson-notes":{"get":{"description":"Lesson notes teachers posted in StaffAide.","operationId":"PartnerStaffAideController_getLessonNotes","parameters":[{"name":"classRef","required":false,"in":"query","description":"Filter by class.","schema":{"example":"JHS2-B","type":"string"}},{"name":"academicYear","required":false,"in":"query","description":"Filter by academic year.","schema":{"example":"2025/2026","type":"string"}},{"name":"term","required":false,"in":"query","description":"Filter by term.","schema":{"example":"Term 1","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number (1-based).","schema":{"minimum":1,"example":1,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Page size.","schema":{"minimum":1,"example":20,"type":"number"}}],"responses":{"200":{"description":"Paginated lesson notes."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Read lesson notes","tags":["Partner API — StaffAide"]}},"/api/v1/partner/v1/staffaide/welfare":{"get":{"description":"Clinic visits and boarding exeat records.","operationId":"PartnerStaffAideController_getWelfare","parameters":[{"name":"studentRef","required":false,"in":"query","description":"Filter by your external student identifier.","schema":{"example":"STU-00421","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page number (1-based).","schema":{"minimum":1,"example":1,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Page size (max 200).","schema":{"minimum":1,"maximum":200,"example":50,"type":"number"}}],"responses":{"200":{"description":"Clinic visits and exeat records."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"Read clinic & exeat logs","tags":["Partner API — StaffAide"]}},"/api/v1/partner/v1/staffaide/leave":{"get":{"description":"Staff leave requests and their status.","operationId":"PartnerStaffAideController_getLeave","parameters":[{"name":"status","required":false,"in":"query","description":"Filter by leave request status.","schema":{"type":"string","enum":["PENDING","APPROVED","REJECTED","CANCELLED"]}},{"name":"page","required":false,"in":"query","description":"Page number (1-based).","schema":{"minimum":1,"example":1,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Page size.","schema":{"minimum":1,"example":20,"type":"number"}}],"responses":{"200":{"description":"Paginated leave requests."},"401":{"description":"Missing, invalid, revoked, or expired API key."},"409":{"description":"API key is not provisioned for a school."},"429":{"description":"Rate limit exceeded (60 requests/minute per key)."}},"security":[{"ApiKey":[]}],"summary":"List leave requests","tags":["Partner API — StaffAide"]}}},"info":{"title":"Pioneers Partner API","description":"Server-to-server API for schools to integrate with Pioneers across Schoolpedia (public listings & jobs), ParentAide (parent-facing data), and StaffAide (staff-facing data). Authenticate with an API key issued by the Pioneers team (Authorization: Bearer sk_live_...).","version":"1.0","contact":{}},"tags":[],"servers":[{"url":"https://api.edcomrade.com"}],"components":{"securitySchemes":{"ApiKey":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Your sk_live_... API key"}},"schemas":{"CreatePartnerDto":{"type":"object","properties":{}},"UpdatePartnerDto":{"type":"object","properties":{}},"CreateKeyDto":{"type":"object","properties":{}},"PartnerCreateListingDto":{"type":"object","properties":{"shortName":{"type":"string","description":"Short/common name.","maxLength":200},"description":{"type":"string","description":"Free-text description of the school.","maxLength":5000},"address":{"type":"string","maxLength":300},"phone":{"type":"string","maxLength":40},"email":{"type":"string","format":"email"},"websiteUrl":{"type":"string","maxLength":500},"logoUrl":{"type":"string","maxLength":500},"region":{"type":"string","maxLength":100},"district":{"type":"string","maxLength":100},"schoolType":{"type":"string","maxLength":50},"curriculum":{"type":"array","items":{"type":"string","enum":["GES","CAMBRIDGE","IB","MONTESSORI","BRITISH","AMERICAN","HYBRID"]}},"levelsOffered":{"type":"array","items":{"type":"string","enum":["CRECHE","NURSERY","KINDERGARTEN","PRIMARY","JHS","SHS","TVET","TERTIARY"]}},"facilities":{"type":"array","items":{"type":"string","enum":["ICT_LAB","LIBRARY","CAFETERIA","MEDICAL_BAY","SMART_CLASSROOMS","INTERNET_ACCESS","SWIMMING_POOL","SCIENCE_LAB","SPORTS_FIELD","BOARDING_HOUSE","TRANSPORT","CHAPEL_MOSQUE"]}},"photos":{"description":"Image URLs.","type":"array","items":{"type":"string"}},"foundedYear":{"type":"number","minimum":1800,"maximum":2100},"enrolmentCount":{"type":"number","minimum":0},"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"name":{"type":"string","description":"School name. Required.","maxLength":200}},"required":["name"]},"PartnerUpdateListingDto":{"type":"object","properties":{"shortName":{"type":"string","description":"Short/common name.","maxLength":200},"description":{"type":"string","description":"Free-text description of the school.","maxLength":5000},"address":{"type":"string","maxLength":300},"phone":{"type":"string","maxLength":40},"email":{"type":"string","format":"email"},"websiteUrl":{"type":"string","maxLength":500},"logoUrl":{"type":"string","maxLength":500},"region":{"type":"string","maxLength":100},"district":{"type":"string","maxLength":100},"schoolType":{"type":"string","maxLength":50},"curriculum":{"type":"array","items":{"type":"string","enum":["GES","CAMBRIDGE","IB","MONTESSORI","BRITISH","AMERICAN","HYBRID"]}},"levelsOffered":{"type":"array","items":{"type":"string","enum":["CRECHE","NURSERY","KINDERGARTEN","PRIMARY","JHS","SHS","TVET","TERTIARY"]}},"facilities":{"type":"array","items":{"type":"string","enum":["ICT_LAB","LIBRARY","CAFETERIA","MEDICAL_BAY","SMART_CLASSROOMS","INTERNET_ACCESS","SWIMMING_POOL","SCIENCE_LAB","SPORTS_FIELD","BOARDING_HOUSE","TRANSPORT","CHAPEL_MOSQUE"]}},"photos":{"description":"Image URLs.","type":"array","items":{"type":"string"}},"foundedYear":{"type":"number","minimum":1800,"maximum":2100},"enrolmentCount":{"type":"number","minimum":0},"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"name":{"type":"string","description":"School name.","maxLength":200}}},"PartnerCreateJobDto":{"type":"object","properties":{"department":{"type":"string","maxLength":120},"description":{"type":"string","maxLength":10000},"requirements":{"type":"string","maxLength":10000},"employmentType":{"type":"string","enum":["FULL_TIME","PART_TIME","CONTRACT","TEMPORARY","INTERNSHIP","VOLUNTEER"]},"salaryRangeMinPesewas":{"type":"number","description":"Minimum salary in pesewas.","minimum":0},"salaryRangeMaxPesewas":{"type":"number","description":"Maximum salary in pesewas.","minimum":0},"deadline":{"type":"string","description":"Application deadline (ISO date)."},"listPublicly":{"type":"boolean","description":"Whether the posting shows on the public job board. Defaults to true."},"title":{"type":"string","description":"Job title. Required.","maxLength":200}},"required":["title"]},"PartnerUpdateJobDto":{"type":"object","properties":{"department":{"type":"string","maxLength":120},"description":{"type":"string","maxLength":10000},"requirements":{"type":"string","maxLength":10000},"employmentType":{"type":"string","enum":["FULL_TIME","PART_TIME","CONTRACT","TEMPORARY","INTERNSHIP","VOLUNTEER"]},"salaryRangeMinPesewas":{"type":"number","description":"Minimum salary in pesewas.","minimum":0},"salaryRangeMaxPesewas":{"type":"number","description":"Maximum salary in pesewas.","minimum":0},"deadline":{"type":"string","description":"Application deadline (ISO date)."},"listPublicly":{"type":"boolean","description":"Whether the posting shows on the public job board. Defaults to true."},"title":{"type":"string","maxLength":200},"status":{"type":"string","enum":["OPEN","CLOSED"],"description":"Set CLOSED to remove from the job board."}}},"PartnerAnnouncementDto":{"type":"object","properties":{"title":{"type":"string","description":"Announcement title.","maxLength":200,"example":"Mid-term break"},"body":{"type":"string","description":"Announcement body.","maxLength":5000,"example":"School closes Friday 12 Dec and resumes 6 Jan."},"audience":{"type":"string","description":"Who receives it. CLASS requires classRef; YEAR requires academicYear; ALL targets all parents.","enum":["ALL","CLASS","YEAR"],"example":"CLASS"},"classRef":{"type":"string","description":"Target class. Required when audience is CLASS.","example":"JHS2-B"},"academicYear":{"type":"string","description":"Target academic year. Required when audience is YEAR.","example":"2025/2026"},"emergency":{"type":"boolean","description":"Send as an urgent emergency alert.","default":false,"example":false}},"required":["title","body","audience"]},"PartnerFeeDto":{"type":"object","properties":{"studentRef":{"type":"string","description":"Your external student identifier.","example":"STU-00421"},"description":{"type":"string","description":"What the fee is for.","maxLength":200,"example":"Term 2 tuition"},"amountPesewas":{"type":"number","description":"Amount in pesewas (1 GHS = 100 pesewas).","minimum":1,"example":150000},"academicYear":{"type":"string","description":"Academic year the fee belongs to.","example":"2025/2026"},"term":{"type":"string","description":"Term the fee belongs to.","example":"Term 2"},"dueDate":{"type":"string","description":"Payment due date (ISO 8601).","example":"2026-11-30"},"reference":{"type":"string","description":"Idempotency key — your own unique reference for this charge. Retrying with the same reference returns the existing invoice instead of creating a duplicate.","maxLength":120,"example":"fee-2026-term2-STU00421"}},"required":["studentRef","description","amountPesewas","academicYear","term"]},"PartnerGradeItemDto":{"type":"object","properties":{"studentRef":{"type":"string","description":"Your external student identifier.","example":"STU-00421"},"subject":{"type":"string","description":"Subject name (matched/created on the school).","maxLength":120,"example":"Mathematics"},"score":{"type":"number","description":"Score achieved.","minimum":0,"example":82},"maxScore":{"type":"number","description":"Maximum possible score.","minimum":1,"default":100,"example":100},"assessmentType":{"type":"string","description":"Type of assessment.","enum":["CLASSWORK","QUIZ","MIDTERM","PROJECT","EXAM"],"default":"EXAM"},"title":{"type":"string","description":"Assessment title. Defaults to \"<term> <subject>\".","maxLength":120,"example":"End of term exam"}},"required":["studentRef","subject","score"]},"PartnerGradesDto":{"type":"object","properties":{"className":{"type":"string","description":"Class the results belong to.","example":"JHS2-B"},"academicYear":{"type":"string","description":"Academic year.","example":"2025/2026"},"term":{"type":"string","description":"Term.","example":"Term 1"},"results":{"description":"One or more result rows (max 500).","type":"array","items":{"$ref":"#/components/schemas/PartnerGradeItemDto"}}},"required":["className","academicYear","term","results"]},"PartnerAttendanceItemDto":{"type":"object","properties":{"studentRef":{"type":"string","description":"Your external student identifier.","example":"STU-00421"},"status":{"type":"string","description":"Attendance status.","enum":["PRESENT","ABSENT","LATE","EXCUSED"],"example":"PRESENT"},"reason":{"type":"string","description":"Reason/notes, e.g. for an absence.","example":"Unexcused"}},"required":["studentRef","status"]},"PartnerAttendanceDto":{"type":"object","properties":{"className":{"type":"string","description":"Class the attendance belongs to.","example":"JHS2-B"},"academicYear":{"type":"string","description":"Academic year.","example":"2025/2026"},"term":{"type":"string","description":"Term.","example":"Term 1"},"date":{"type":"string","description":"Date of attendance (ISO 8601).","example":"2026-10-19"},"records":{"description":"One row per student (max 500).","type":"array","items":{"$ref":"#/components/schemas/PartnerAttendanceItemDto"}}},"required":["className","academicYear","term","date","records"]},"PartnerRosterStudentDto":{"type":"object","properties":{"studentRef":{"type":"string","description":"Your external student identifier.","example":"STU-00421"},"fullName":{"type":"string","description":"Student's full name.","maxLength":200,"example":"Ama Mensah"}},"required":["studentRef","fullName"]},"PartnerRosterDto":{"type":"object","properties":{"classRef":{"type":"string","description":"Class the roster belongs to.","example":"JHS2-B"},"academicYear":{"type":"string","description":"Academic year to set on the students.","example":"2025/2026"},"students":{"description":"The students in the class (max 500).","type":"array","items":{"$ref":"#/components/schemas/PartnerRosterStudentDto"}}},"required":["classRef","students"]},"PartnerTimetableSlotDto":{"type":"object","properties":{"dayOfWeek":{"type":"number","description":"Day of week (1 = Monday … 7 = Sunday).","minimum":1,"maximum":7,"example":1},"period":{"type":"number","description":"Period number within the day (1-indexed).","minimum":1,"example":1},"subject":{"type":"string","description":"Subject name (matched/created on the school).","maxLength":120,"example":"Mathematics"},"staffRef":{"type":"string","description":"Teacher for this period by staffRef; defaults to the integration actor.","example":"TCH-07"}},"required":["dayOfWeek","period","subject"]},"PartnerTimetableDto":{"type":"object","properties":{"classRef":{"type":"string","description":"Class the timetable is for.","example":"JHS2-B"},"academicYear":{"type":"string","description":"Academic year.","example":"2025/2026"},"term":{"type":"string","description":"Term.","example":"Term 1"},"periods":{"description":"Periods in the week (max 500). Replaces the class's existing timetable for this year/term.","type":"array","items":{"$ref":"#/components/schemas/PartnerTimetableSlotDto"}}},"required":["classRef","academicYear","term","periods"]},"PartnerAssignmentDto":{"type":"object","properties":{"classRef":{"type":"string","description":"Class the assignment is for.","example":"JHS2-B"},"subject":{"type":"string","description":"Subject name (matched/created on the school).","maxLength":120,"example":"Mathematics"},"academicYear":{"type":"string","description":"Academic year.","example":"2025/2026"},"term":{"type":"string","description":"Term.","example":"Term 1"},"title":{"type":"string","description":"Assignment title.","maxLength":200,"example":"Fractions worksheet"},"instructions":{"type":"string","description":"Instructions / description for students.","maxLength":5000,"example":"Complete questions 1-20."},"dueDate":{"type":"string","description":"Due date (ISO 8601).","example":"2026-10-24"},"maxMarks":{"type":"number","description":"Maximum marks.","minimum":0,"default":100,"example":20},"staffRef":{"type":"string","description":"Attribute to a specific teacher by staffRef; defaults to the integration actor.","example":"TCH-07"}},"required":["classRef","subject","academicYear","term","title","dueDate"]},"PartnerStaffDto":{"type":"object","properties":{"staffRef":{"type":"string","description":"Your external staff identifier.","example":"TCH-07"},"fullName":{"type":"string","description":"Staff member's full name.","maxLength":200,"example":"Yaa Owusu"},"email":{"type":"string","description":"Email used to sign in to StaffAide.","format":"email","example":"yaa.owusu@school.edu.gh"},"employmentType":{"type":"string","description":"Employment type.","enum":["FULL_TIME","PART_TIME","CONTRACT"],"example":"FULL_TIME"},"department":{"type":"string","description":"Department.","example":"Science"},"position":{"type":"string","description":"Job title / position.","example":"Mathematics Teacher"}},"required":["staffRef","fullName","email","employmentType"]}}}}