certification_date descending. Served by CertificationController::index().App\Http\Controllers\Api\V1\Diver\CertificationController::index()api.v1.diver.certifications.indexAuthorization: Bearer {token}GET/api/v1/diver/certifications200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": [
{
"resource": "Certification",
"data": {
"log_code": "48ee98b5e140f3bb5eb833f96935c75d",
"course": "Example Twinset Instructor",
"course_level": null,
"distributor": "Example Distributor",
"dive_center": "Example Dive Center",
"instructor": "Example Instructor",
"order_id": null,
"is_associated": false,
"associated_log": null,
"is_renewed": 0,
"will_expire": false,
"expire_date": null,
"is_crossover": false,
"leveling_up": false,
"leveling_up_from": null,
"leveling_id": null,
"is_upgrade": false,
"upgrade_course": null,
"previous_certification": null,
"certification_date": "2025-12-28",
"course_group": "professional",
"is_specialty": false
}
}
]
}resource / data wrapper. The keys up to previous_certification are the ones the endpoint has always returned, with the same values and in the same order. The last three are appended.| Key | Type | Description |
|---|---|---|
log_code | string | Course log code of the certification |
course | string or null | Course name; for a multi-level course, the level name. This stays a string: the course classification is in course_group and is_specialty, not in a nested object |
course_level | null | Always null today. Do not rely on it |
distributor | string or null | Distributor name; null if the distributor no longer exists |
dive_center | string | Dive center name, or N/A |
instructor | string | Instructor full name, or N/A |
order_id | integer or null | Originating order |
is_associated | boolean | Issued as an associated course |
associated_log | string or null | Log code of the associated course |
is_renewed | integer | 0 or 1 (raw column, not a boolean) |
will_expire | boolean | Whether the certification expires |
expire_date | string or null | Y-m-d |
is_crossover | boolean | Issued by a crossover |
leveling_up | boolean | Level-up in progress or done |
leveling_up_from | string or null | Course name of the certification it levelled up from; null if that one is gone |
leveling_id | integer or null | Id of the certification it levelled up from |
is_upgrade | boolean | Issued by an upgrade |
upgrade_course | string or null | Name of the upgrade course |
previous_certification | string or null | Course name of the certification held before this one |
certification_date | string | Y-m-d; the list is ordered by it, newest first |
course_group | string or null | recreational, professional, trainer, examiner or dry_course; null when the course has no group |
is_specialty | boolean or null | Whether the course is a specialty; null if the course no longer exists |
401 Unauthorized{
"success": false,
"status": "error",
"message": "Unauthenticated"
}TO VERIFY: behaviour for a diver with a much larger certification count.previous_certification used to make this endpoint answer 500 for a diver holding a certification that has one. It now returns the previous course name. A missing distributor now gives distributor: null and a missing or deleted leveling source gives leveling_up_from: null, where the endpoint used to fail.course_level is null for every certification. It is kept in the response so existing clients do not break; use course for the level name of a multi-level course.docs/api/diver/certifications/GET_list.mdcurl --location 'https://test.diveraid.com/api/v1/diver/certifications' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": [
{
"resource": "Certification",
"data": {
"log_code": "string",
"course": "string",
"course_level": "string",
"distributor": "string",
"dive_center": "string",
"instructor": "string",
"order_id": "string",
"is_associated": true,
"associated_log": "string",
"is_renewed": true,
"will_expire": true,
"expire_date": "2019-08-24",
"is_crossover": true,
"leveling_up": true,
"leveling_up_from": "string",
"leveling_id": 0,
"is_upgrade": true,
"upgrade_course": "string",
"previous_certification": "string",
"certification_date": "2019-08-24",
"course_group": "string",
"is_specialty": true
}
}
]
}