The endpoint for this method would be something like /certificates/{id}, where {id} is an optional parameter representing the ID of a specific certificate. If the {id} parameter is provided, the method will return the certificate with that ID. If the {id} parameter is not provided, the method will return all certificates.
The method also supports additional filtering through query parameters. The query parameters are processed by the api_query library. The supported query parameters include:
GET parameters
Name
Value Type
Validation
Details
cerID
int
Optional
Filter certificates by their ID.
cerDate
Date
Optional: YYYY-MM-DD
Filter certificates by their date.
uaID
int
Optional
Filter certificates by the associated user ID.
ascID
int
Optional
Filter certificates by school year.
cerClID
int
Optional
Filter certificates by class.
cerTypeCategory
string
Optional: student_cert/diplomas
Filter certificates by the associated person.
The method returns an array of certificates, each represented as an associative array with fields like cerID, cerType, cerUaID, cerDate, cerNumber, cerReason, and cerPerson. If the {id} parameter is provided, additional fields cerData and cerOptions are also included in the returned certificate data.