انتقل إلى المحتوى
الأقسام · الموردون

مرجع الواجهة البرمجية

الموردون

الموردون.

نقاط النهاية

المسارات نسبية إلى https://your-workspace.reevio.app/api/public/v1. يحتاج كل طلب إلى رمز وصول من نوع Bearer يحمل النطاق الموضّح.

كائن المورد

  • idstring (id)

    المعرّف الفريد للمورد.

  • codestring

    رمز المورد، مثل VND-000001، ويعيّنه ريفيو.

  • namestring

    اسم المورد.

  • contact_namestringيقبل null

    اسم جهة الاتصال.

  • phonestringيقبل null

    رقم الهاتف الرئيسي.

  • phone_2stringيقبل null

    رقم الهاتف الثاني.

  • emailstringيقبل null

    عنوان البريد الإلكتروني.

  • addressstringيقبل null

    عنوان الشارع.

  • countryobjectيقبل null

    دولة المورد.

    الحقول: code, name · التفاصيل

  • cityobjectيقبل null

    مدينة المورد.

    الحقول: code, name · التفاصيل

  • is_available_for_purchasingboolean

    ما إذا كانت مستندات الشراء تعرض هذا المورد للاختيار.

  • notesstringيقبل null

    ملاحظات داخلية عن المورد.

  • created_atstring (timestamp)

    وقت إنشاء المورد.

  • updated_atstring (timestamp)

    آخر وقت تغيّر فيه المورد. تقارن عمليات المزامنة عبر updated_since بهذه القيمة.

  • trashed_atstring (timestamp)يقبل null

    وقت نقل المورد إلى سلة المهملات؛ null إذا لم يكن فيها. لا تُعيد السجلات المحذوفة إلى سلة المهملات إلا عمليات المزامنة عبر updated_since.

مثال
{
  "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
  "code": "VND-000001",
  "name": "Gulf Packaging",
  "contact_name": "Sara Ahmed",
  "phone": "+964 770 123 4567",
  "phone_2": "+964 750 987 6543",
  "email": "[email protected]",
  "address": "Al-Karrada, Baghdad",
  "country": {
    "code": "IQ",
    "name": "Iraq"
  },
  "city": {
    "code": "BGW",
    "name": "Baghdad"
  },
  "is_available_for_purchasing": true,
  "notes": "Deliver before noon.",
  "created_at": "2026-10-31T09:15:00.000000Z",
  "updated_at": "2026-10-31T09:15:00.000000Z",
  "trashed_at": null
}

عرض قائمة الموردين

GET/vendors

النطاق procurement.vendors.read

الموردون. يطابق search الرمز أو الهاتف أو البريد الإلكتروني تماماً، أو بداية الاسم.

عوامل التصفية

  • searchstring

    رمز أو هاتف أو بريد إلكتروني مطابق تماماً، أو بداية الاسم.

القيمة المُعادة

يعيد قائمة بكائنات المورد، صفحةً تلو الأخرى.

curl "https://your-workspace.reevio.app/api/public/v1/vendors" \
  -H "Authorization: Bearer $REEVIO_TOKEN"
الاستجابة
{
  "data": [
    {
      "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
      "code": "VND-000001",
      "name": "Gulf Packaging",
      "contact_name": "Sara Ahmed",
      "phone": "+964 770 123 4567",
      "phone_2": "+964 750 987 6543",
      "email": "[email protected]",
      "address": "Al-Karrada, Baghdad",
      "country": {
        "code": "IQ",
        "name": "Iraq"
      },
      "city": {
        "code": "BGW",
        "name": "Baghdad"
      },
      "is_available_for_purchasing": true,
      "notes": "Deliver before noon.",
      "created_at": "2026-10-31T09:15:00.000000Z",
      "updated_at": "2026-10-31T09:15:00.000000Z",
      "trashed_at": null
    }
  ],
  "meta": {
    "page_size": 50,
    "has_more": false,
    "next_page_cursor": null
  }
}

جلب مورد

GET/vendors/{id}

النطاق procurement.vendors.read

مورد واحد حسب المعرّف.

المعاملات

  • idstring (id)مطلوب

    معرّف السجل.

القيمة المُعادة

يعيد كائن المورد.

curl "https://your-workspace.reevio.app/api/public/v1/vendors/01K2ZQ7M4X8N6P3R9T5V7W1Y2A" \
  -H "Authorization: Bearer $REEVIO_TOKEN"
الاستجابة
{
  "data": {
    "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
    "code": "VND-000001",
    "name": "Gulf Packaging",
    "contact_name": "Sara Ahmed",
    "phone": "+964 770 123 4567",
    "phone_2": "+964 750 987 6543",
    "email": "[email protected]",
    "address": "Al-Karrada, Baghdad",
    "country": {
      "code": "IQ",
      "name": "Iraq"
    },
    "city": {
      "code": "BGW",
      "name": "Baghdad"
    },
    "is_available_for_purchasing": true,
    "notes": "Deliver before noon.",
    "created_at": "2026-10-31T09:15:00.000000Z",
    "updated_at": "2026-10-31T09:15:00.000000Z",
    "trashed_at": null
  }
}