لا تُحصَّل مدفوعات عبر الـ API: التأمين يدفعه العميل من صفحة الموعد عبر StreamPay.
نقاط الاتصال
GEThttps://booking.emm.sa/api/v1/me
الهوية والخطة والحدود / Identity, plan, quotas
يتحقق من المفتاح ويعيد المستخدم والخطة الحالية والحدود الشهرية. Checks a key; returns user, current plan and monthly quotas. · الصلاحية: read
curl -X GET "https://booking.emm.sa/api/v1/me" \
-H "Authorization: Bearer $EMM_KEY"
{"plan":{"currency":"SAR","deposits":false,"features":["مزوّد خدمة واحد","30 حجز شهرياً","صفحة حجز عامة بالعربية","تأكيد عبر واتساب","تقويم اليوم والأسبوع"],"id":"starter","limits":{"monthly_bookings":30,"providers":1},"name":"ابدأ","period":"month","price":"0.00"},"quotas":{"monthly_bookings":{"limit":30,"month":"2026-12","used":4}},"service":"booking","user":{"email":"user@example.com"}}
GEThttps://booking.emm.sa/api/v1/plan
الخطة الحالية وكل الخطط / Current plan and catalogue
الخطة الحالية مع الاستهلاك، وكل الخطط بأسعارها وحدودها. Current plan with usage plus every plan (SAR/month). · الصلاحية: read
curl -X GET "https://booking.emm.sa/api/v1/plan" \
-H "Authorization: Bearer $EMM_KEY"
GEThttps://booking.emm.sa/api/v1/settings
إعدادات النشاط / Business settings
بيانات النشاط وساعات العمل لكل يوم وطول الفترة والتأمين. Business identity, per-weekday hours, slot length, deposit rule. · الصلاحية: read
curl -X GET "https://booking.emm.sa/api/v1/settings" \
-H "Authorization: Bearer $EMM_KEY"
تعديل بيانات الخدمة أو مزوّدها (يجب أن يتبع نفس النشاط). Update a service or move it to another provider of the same business. · المعاملات: id* · الصلاحية: write
حجوزات في نطاق تاريخي (from/to بتاريخ ISO، الافتراضي اليوم→+30 يوماً) مع فلتر status وprovider_id. Bookings in a date range with status/provider filters. · المعاملات: fromtostatusprovider_idlimitoffset · الصلاحية: read
curl -X GET "https://booking.emm.sa/api/v1/bookings?from=&to=&status=&provider_id=&limit=50&offset=0" \
-H "Authorization: Bearer $EMM_KEY"
POSThttps://booking.emm.sa/api/v1/bookings
حجز نيابةً عن عميل / Create booking on behalf of a customer
ينشئ حجزاً كصفحة الحجز: الوقت يجب أن يكون حراً (409 slot_taken). Creates a booking for a walk-in/phone customer. · الصلاحية: write
المواعيد المتاحة لنطاق تاريخي (≤ 31 يوماً) لخدمة أو مزوّد. Free slots per day for a service or provider. · المعاملات: service_idprovider_idduration_minfromto · الصلاحية: read
curl -X GET "https://booking.emm.sa/api/v1/availability?service_id=&provider_id=&duration_min=&from=&to=" \
-H "Authorization: Bearer $EMM_KEY"
GEThttps://booking.emm.sa/api/v1/public-page
صفحة الحجز العامة / Public booking page
ما يراه العميل في /b/{slug}: الخدمات والمزوّدون والساعات. What the customer sees on /b/{slug}. · الصلاحية: read
curl -X GET "https://booking.emm.sa/api/v1/public-page" \
-H "Authorization: Bearer $EMM_KEY"
MCP
نفس المفتاح، POST إلى https://booking.emm.sa/mcp (JSON-RPC 2.0, Streamable HTTP): initialize ← notifications/initialized ← tools/list ← tools/call. الأدوات: booking_capabilities, booking_pricing, booking_providers, booking_settings, booking_availability, booking_list, booking_create, booking_confirm, booking_cancel, booking_block. مثال كامل في دليل الوكلاء.