قائمة ملاحظات الشركة

GET https://app.alaaqat.com/api/companies/{company_id}/notes

حيث company_id هو قيمة _id للشركة. تعرض هذه النقطة الملاحظات المكتوبة على السجل، الأحدث تعديلاً أولاً. يحتاج مفتاح واجهة التطبيق البرمجية إلى الإمكانية company-note-index، ويحتاج عضو الفريق الذي أنشأ المفتاح إلى صلاحية عرض جميع الملاحظات على الشركة.

ترويسة الطلب

{
    "Accept": "application/json"
}

المعطيات

تقبل هذه النقطة معطيات الصفحات.

الإستجابة

200 OK، أو 206 Partial Content إذا تبقّت صفحات أخرى. يدل made_by وuser على عضو الفريق الذي كتب الملاحظة آخر مرة.

{
    "data": [
        {
            "_id": "6658d1e2f3a4b5c6d7e8f901",
            "description": "تواصلنا لتأكيد التجديد السنوي، وطلب قسم المشتريات قائمة الأسعار المحدّثة.",
            "company_id": "6655a1b2c3d4e5f6a7b8c901",
            "made_by": 12,
            "updated_at": "2026-10-20T09:30:00.000000Z",
            "created_at": "2026-10-20T09:30:00.000000Z",
            "user": {
                "id": 12,
                "email": "sara.haddad@example.com",
                "firstname": "Sara",
                "lastname": "Haddad",
                "image": null,
                "locale": "en",
                "created_at": "2026-03-02T08:00:00.000000Z",
                "updated_at": "2026-10-01T07:30:00.000000Z",
                "fullname": "Sara Haddad"
            }
        }
    ],
    "links": {
        "first": "https://app.alaaqat.com/api/companies/6655a1b2c3d4e5f6a7b8c901/notes?page=1",
        "last": "https://app.alaaqat.com/api/companies/6655a1b2c3d4e5f6a7b8c901/notes?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://app.alaaqat.com/api/companies/6655a1b2c3d4e5f6a7b8c901/notes?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://app.alaaqat.com/api/companies/6655a1b2c3d4e5f6a7b8c901/notes",
        "per_page": 15,
        "to": 1,
        "total": 1
    }
}