Afya-Health
  1. Reports
Afya-Health
  • Auth
    • Login
      POST
    • Signup
      POST
  • ForgotPassword
    • Verify OTP
      POST
    • ForgotPassword
      POST
    • ResetPassword
      POST
  • Profile
    • Get User Profile
      GET
    • Update user profile
      POST
  • Family Members
    • Add Family Member
      POST
    • Update Family Members
      PUT
    • Delete Family Member
      DELETE
  • Address
    • Get User address
      GET
    • Add Address
      POST
    • Update address
      PUT
    • Delete Address
      DELETE
  • Languages
    • List AppLabels
      GET
    • Add/Update Label
      POST
    • List Languages
      GET
  • Products
    • Get Products
      GET
    • Create Product
      POST
    • Update Product
      PUT
    • Delete Product
      DELETE
    • Update product items
      PUT
  • Permissions
    • Get Permissions
  • Config
    • List Practice Config
    • Add Update Config
    • List Master Config
    • Add Update Master Config
  • Appointment Schedule
    • Create Schedule
    • Update Schedule
    • Delete Schedule
    • Get Schedule by ID
    • Get Schedule list
  • Test Tags
    • Get Test Tags
    • Create Test Tag
    • Update Test Tag
    • Delete Test Tag
  • Test Parameters
    • Get Test Parameters
    • Create Test Parameters
    • Update Test Parameters
    • Delete Test Parameters
  • Category
    • Get Category
    • Create Category
    • Update Category
    • Delete Category
  • Device
    • Register Device
  • File
    • Upload File
  • Appointment
    • Create Appointment Order
    • Get Appointments List
    • Update Appointment Status
    • Get Appointment by ID
    • Get Appointment Slots
    • GetStartJourneyDirection
  • Reports
    • Upload Report
      POST
    • List All Reports
      GET
    • List Reports By Appointment
      GET
    • Delete Report
      DELETE
    • Update Report File
      PUT
  • Staff
    • Add Staff Member
    • List Staff Member
    • Update Staff Member
    • Delete Staff Member
    • Get Staff member by ID
  • Patient
    • List Patients
    • Add Patient
    • Update Patient
    • Delete Patient
    • Get patient by ID
  • Notifications
    • List User Notifications
    • Update Notification read status
  1. Reports

List Reports By Appointment

Developing
GET
/api/service/v1/appointment/678df9c7a708416b26a67bb1/reports

Request

Query Params
page
string 
optional
Example:
1
page_size
string 
optional
Example:
10
Header Params
Content-Type
string 
optional
Example:
application/json
Accept
string 
optional
Example:
application/json
Authorization
string 
optional
Example:
{{token}}
practice-code
string 
optional
Example:
DEFAULT

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://afyahealth.doctodoor.com:5600/api/service/v1/appointment/678df9c7a708416b26a67bb1/reports?page=1&page_size=10' \
--header 'Accept: application/json' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImlhdCI6MTc0MTc4MjA4NCwiZXhwIjoxNzQ5NTU4MDg0fQ.KAMsweSbJPDxpLijKdjgp3YEFauw8KYLLumCBpqQfAA' \
--header 'practice-code: DEFAULT' \
--header 'Content-Type: application/json'

Responses

🟢200Success
application/json
Body
error
boolean 
required
status_code
integer 
required
message
string 
required
data
object 
required
reports
array [object {7}] 
required
total
integer 
required
Example
{
    "error": false,
    "status_code": 200,
    "message": "",
    "data": {
        "reports": [
            {
                "file": {
                    "original_name": "Screenshot from 2025-01-09 19-15-20.png",
                    "file_name": "private/appointments/reports/0ea1b47b-2485-4463-9e06-a9f0c51c3f99_1737460812115_Screenshot_from_2025-01-09_19-15-20.png",
                    "path": "https://afyahealth.doctodoor.com.s3.us-east-1.amazonaws.com/private/appointments/reports/0ea1b47b-2485-4463-9e06-a9f0c51c3f99_1737460812115_Screenshot_from_2025-01-09_19-15-20.png",
                    "size": 65277,
                    "mimeType": "image/png",
                    "created_at": "2025-01-21T12:00:14.220Z",
                    "updated_at": "2025-01-21T12:00:14.220Z",
                    "id": "678f8c4e7b586f67175cc060"
                },
                "package_test": {
                    "tests": [
                        "6788ca87dc0c465cec790c97"
                    ],
                    "test_parameters": [
                        "6788b0121322454d3e643f64"
                    ],
                    "sample_requirements": [
                        "blood"
                    ],
                    "estimated_report_delivery_time": 0,
                    "is_deleted": 0,
                    "title": {
                        "en": "tittleee EDITT ##"
                    },
                    "subtitle": {
                        "en": "Sub ttile"
                    },
                    "description": {
                        "en": "desriptin "
                    },
                    "prerequisites": {
                        "en": "prerquu ui"
                    },
                    "type": "package",
                    "category": "6788c93bd798f459e8c8d7cc",
                    "price": 420,
                    "currency": "INR",
                    "discount_amount": 100,
                    "discount_type": "flat",
                    "created_at": "2025-01-17T11:48:23.040Z",
                    "updated_at": "2025-01-17T11:48:23.040Z",
                    "id": "678a438790b9c678ccb6780c"
                },
                "appointment": {
                    "slot_timing": {
                        "date": "2025-01-26T00:00:00.000Z",
                        "start_time": "09:00",
                        "end_time": "10:00"
                    },
                    "status": "scheduled",
                    "family_members": [],
                    "is_deleted": 0,
                    "items": [
                        {
                            "discount_amount": 0,
                            "_id": "678df9c7a708416b26a67bb4",
                            "title": "tittleee EDITT ##",
                            "estimated_report_delivery_time": "0",
                            "package_test_id": "678a438790b9c678ccb6780c",
                            "total": 420,
                            "discount_type": "flat",
                            "final_total": 320
                        }
                    ],
                    "user": "677bb5bd4291b96cd0623ef2",
                    "payment_mode": "cod",
                    "technician": "677bb5bd4291b96cd0623ee6",
                    "address": "678a433390b9c678ccb677f6",
                    "gender_preference": "male",
                    "coupon_code": "ABC",
                    "currency": "AED",
                    "fee": 10,
                    "total": 420,
                    "final_total": 320,
                    "created_at": "2025-01-20T07:22:47.630Z",
                    "updated_at": "2025-01-20T07:22:47.630Z",
                    "id": "678df9c7a708416b26a67bb1"
                },
                "user": {
                    "roles": [
                        "677bb5bd4291b96cd0623e9e"
                    ],
                    "is_master_admin": 1,
                    "is_deleted": 0,
                    "is_active": 1,
                    "deleted_at": null,
                    "language_code": "en",
                    "first_name": "Deep",
                    "middle_name": "",
                    "last_name": "Marsonia",
                    "full_name": "Deep Marsonia",
                    "email": "deep.marsonia@plenartech.com",
                    "created_at": "2025-01-06T10:51:41.439Z",
                    "updated_at": "2025-01-21T09:41:54.407Z",
                    "family_members": [
                        {
                            "_id": "678f6be2b92fcb53c701b2b1",
                            "name": "test2",
                            "gender": "male",
                            "birth_date": "2000-01-01T00:00:00.000Z"
                        }
                    ],
                    "id": "677bb5bd4291b96cd0623eea"
                },
                "created_at": "2025-01-21T12:00:14.223Z",
                "updated_at": "2025-01-21T12:00:14.223Z",
                "id": "678f8c4e7b586f67175cc062"
            },
            {
                "file": {
                    "original_name": "Screenshot from 2025-01-09 19-15-20.png",
                    "file_name": "b4dbb214-c9c7-4f4f-a1e7-1b971e781803_1737450356920_Screenshot_from_2025-01-09_19-15-20.png",
                    "path": "https://afyahealth.doctodoor.com.s3.us-east-1.amazonaws.com/b4dbb214-c9c7-4f4f-a1e7-1b971e781803_1737450356920_Screenshot_from_2025-01-09_19-15-20.png",
                    "size": 65277,
                    "mimeType": "image/png",
                    "created_at": "2025-01-21T09:05:58.589Z",
                    "updated_at": "2025-01-21T09:05:58.589Z",
                    "id": "678f637626b1dc475e460605"
                },
                "package_test": {
                    "tests": [
                        "6788ca87dc0c465cec790c97"
                    ],
                    "test_parameters": [
                        "6788b0121322454d3e643f64"
                    ],
                    "sample_requirements": [
                        "blood"
                    ],
                    "estimated_report_delivery_time": 0,
                    "is_deleted": 0,
                    "title": {
                        "en": "tittleee EDITT ##"
                    },
                    "subtitle": {
                        "en": "Sub ttile"
                    },
                    "description": {
                        "en": "desriptin "
                    },
                    "prerequisites": {
                        "en": "prerquu ui"
                    },
                    "type": "package",
                    "category": "6788c93bd798f459e8c8d7cc",
                    "price": 420,
                    "currency": "INR",
                    "discount_amount": 100,
                    "discount_type": "flat",
                    "created_at": "2025-01-17T11:48:23.040Z",
                    "updated_at": "2025-01-17T11:48:23.040Z",
                    "id": "678a438790b9c678ccb6780c"
                },
                "appointment": {
                    "slot_timing": {
                        "date": "2025-01-26T00:00:00.000Z",
                        "start_time": "09:00",
                        "end_time": "10:00"
                    },
                    "status": "scheduled",
                    "family_members": [],
                    "is_deleted": 0,
                    "items": [
                        {
                            "discount_amount": 0,
                            "_id": "678df9c7a708416b26a67bb4",
                            "title": "tittleee EDITT ##",
                            "estimated_report_delivery_time": "0",
                            "package_test_id": "678a438790b9c678ccb6780c",
                            "total": 420,
                            "discount_type": "flat",
                            "final_total": 320
                        }
                    ],
                    "user": "677bb5bd4291b96cd0623ef2",
                    "payment_mode": "cod",
                    "technician": "677bb5bd4291b96cd0623ee6",
                    "address": "678a433390b9c678ccb677f6",
                    "gender_preference": "male",
                    "coupon_code": "ABC",
                    "currency": "AED",
                    "fee": 10,
                    "total": 420,
                    "final_total": 320,
                    "created_at": "2025-01-20T07:22:47.630Z",
                    "updated_at": "2025-01-20T07:22:47.630Z",
                    "id": "678df9c7a708416b26a67bb1"
                },
                "user": {
                    "roles": [
                        "677bb5bd4291b96cd0623e9e"
                    ],
                    "is_master_admin": 1,
                    "is_deleted": 0,
                    "is_active": 1,
                    "deleted_at": null,
                    "language_code": "en",
                    "first_name": "Deep",
                    "middle_name": "",
                    "last_name": "Marsonia",
                    "full_name": "Deep Marsonia",
                    "email": "deep.marsonia@plenartech.com",
                    "created_at": "2025-01-06T10:51:41.439Z",
                    "updated_at": "2025-01-21T09:41:54.407Z",
                    "family_members": [
                        {
                            "_id": "678f6be2b92fcb53c701b2b1",
                            "name": "test2",
                            "gender": "male",
                            "birth_date": "2000-01-01T00:00:00.000Z"
                        }
                    ],
                    "id": "677bb5bd4291b96cd0623eea"
                },
                "created_at": "2025-01-21T09:05:58.592Z",
                "updated_at": "2025-01-21T09:05:58.592Z",
                "id": "678f637626b1dc475e460607"
            },
            {
                "file": {
                    "original_name": "Screenshot from 2025-01-09 19-15-20.png",
                    "file_name": "a97f21f2-900b-4fe1-8e84-a885c21ff0dc_1737450246662_Screenshot_from_2025-01-09_19-15-20.png",
                    "path": "https://afyahealth.doctodoor.com.s3.us-east-1.amazonaws.com/a97f21f2-900b-4fe1-8e84-a885c21ff0dc_1737450246662_Screenshot_from_2025-01-09_19-15-20.png",
                    "size": 65277,
                    "mimeType": "image/png",
                    "created_at": "2025-01-21T09:04:10.260Z",
                    "updated_at": "2025-01-21T09:04:10.260Z",
                    "id": "678f630a49cbe446dcdfa52a"
                },
                "package_test": {
                    "tests": [
                        "6788ca87dc0c465cec790c97"
                    ],
                    "test_parameters": [
                        "6788b0121322454d3e643f64"
                    ],
                    "sample_requirements": [
                        "blood"
                    ],
                    "estimated_report_delivery_time": 0,
                    "is_deleted": 0,
                    "title": {
                        "en": "tittleee EDITT ##"
                    },
                    "subtitle": {
                        "en": "Sub ttile"
                    },
                    "description": {
                        "en": "desriptin "
                    },
                    "prerequisites": {
                        "en": "prerquu ui"
                    },
                    "type": "package",
                    "category": "6788c93bd798f459e8c8d7cc",
                    "price": 420,
                    "currency": "INR",
                    "discount_amount": 100,
                    "discount_type": "flat",
                    "created_at": "2025-01-17T11:48:23.040Z",
                    "updated_at": "2025-01-17T11:48:23.040Z",
                    "id": "678a438790b9c678ccb6780c"
                },
                "appointment": {
                    "slot_timing": {
                        "date": "2025-01-26T00:00:00.000Z",
                        "start_time": "09:00",
                        "end_time": "10:00"
                    },
                    "status": "scheduled",
                    "family_members": [],
                    "is_deleted": 0,
                    "items": [
                        {
                            "discount_amount": 0,
                            "_id": "678df9c7a708416b26a67bb4",
                            "title": "tittleee EDITT ##",
                            "estimated_report_delivery_time": "0",
                            "package_test_id": "678a438790b9c678ccb6780c",
                            "total": 420,
                            "discount_type": "flat",
                            "final_total": 320
                        }
                    ],
                    "user": "677bb5bd4291b96cd0623ef2",
                    "payment_mode": "cod",
                    "technician": "677bb5bd4291b96cd0623ee6",
                    "address": "678a433390b9c678ccb677f6",
                    "gender_preference": "male",
                    "coupon_code": "ABC",
                    "currency": "AED",
                    "fee": 10,
                    "total": 420,
                    "final_total": 320,
                    "created_at": "2025-01-20T07:22:47.630Z",
                    "updated_at": "2025-01-20T07:22:47.630Z",
                    "id": "678df9c7a708416b26a67bb1"
                },
                "user": {
                    "roles": [
                        "677bb5bd4291b96cd0623e9e"
                    ],
                    "is_master_admin": 1,
                    "is_deleted": 0,
                    "is_active": 1,
                    "deleted_at": null,
                    "language_code": "en",
                    "first_name": "Deep",
                    "middle_name": "",
                    "last_name": "Marsonia",
                    "full_name": "Deep Marsonia",
                    "email": "deep.marsonia@plenartech.com",
                    "created_at": "2025-01-06T10:51:41.439Z",
                    "updated_at": "2025-01-21T09:41:54.407Z",
                    "family_members": [
                        {
                            "_id": "678f6be2b92fcb53c701b2b1",
                            "name": "test2",
                            "gender": "male",
                            "birth_date": "2000-01-01T00:00:00.000Z"
                        }
                    ],
                    "id": "677bb5bd4291b96cd0623eea"
                },
                "created_at": "2025-01-21T09:04:10.264Z",
                "updated_at": "2025-01-21T09:04:10.264Z",
                "id": "678f630a49cbe446dcdfa52c"
            }
        ],
        "total": 3
    }
}
Previous
List All Reports
Next
Delete Report
Built with