Get All
GET
/:tenantId/appointmentsQuery parameters
| Name | Type | Description |
|---|---|---|
| search | string | Searches by note, user name, patient name, patient mobile |
Filter Parameters
| Key | Type | Description |
|---|---|---|
| filter[user_id] | integer | Filters results based on the specified user ID. |
| filter[patient_id] | integer | Filters results based on the specified patient ID. |
| filter[appointment_type_id] | integer | Filters results based on the specified appointment type ID. See appointment types |
| filter[status] | integer | Filters results based on the specified status. See appointment statuses |
| filter[start_date][from] | datetime | Filters results starting from this date and time. Format Y-m-d H:i:S |
| filter[start_date][to] | datetime | Filters results up to this date and time. Format Y-m-d H:i:S |
Response
json
{
"data": [
{
"id": 1001,
"start_date": "2024-09-19T06:45:00.000000Z",
"end_date": "2024-09-19T07:15:00.000000Z",
"note": "Sample note for appointment 1.",
"user": {
"id": 201,
"name": "John Doe",
"photo": null,
"color": ""
},
"patient": {
"id": 301,
"is_deleted": false,
"mobile": "+1234567890",
"name": "Jane Doe",
"sms_consent": 0,
"photo": null
},
"appointment_type_id": 501,
"status": 1,
"notify": 0,
"resource_id": null
},
{
"id": 1002,
"start_date": "2024-09-21T09:45:00.000000Z",
"end_date": "2024-09-21T10:00:00.000000Z",
"note": "Sample note for appointment 2.",
"user": {
"id": 202,
"name": "Alice Smith",
"photo": null,
"color": ""
},
"patient": {
"id": 302,
"is_deleted": false,
"mobile": "+9876543210",
"name": "Bob Smith",
"sms_consent": 0,
"photo": null
},
"appointment_type_id": 502,
"status": 2,
"notify": 0,
"resource_id": null
}
],
"links": {
"first": "https://<Base URL>/api/v1/:tenantId/appointments?page=1",
"last": "https://<Base URL>/api/v1/:tenantId/appointments?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://<Base URL>/api/v1/:tenantId/appointments?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"path": "https://<Base URL>/api/v1/:tenantId/appointments",
"per_page": 15,
"to": 2,
"total": 2
}
}