كل نداء بالرأس X-Emole-App-Token: appToken، ومقيّد بمتجر التثبيت وبصلاحيات إضافتك.
| النقطة | الصلاحية | الوصف |
|---|---|---|
GET /me | — | التطبيق والمتجر والصلاحيات |
GET /store | store.read | اسم المتجر ورابطه |
GET /products · /products/{id} | products.read | بحث وصفحات وقسم |
PATCH /products/{id} | products.write | الاسم والوصف والسعر والمخزون وبيانات السيو |
GET /categories | categories.read | الأقسام وروابطها |
GET /orders | orders.read | الطلبات وحالاتها |
POST /orders/{id}/notes | orders.write | ملاحظة على الطلب (للعميل أو داخلية) |
POST /orders/{id}/shipments | orders.write | شحنة برقم تتبّع، ويُعلَّم الطلب «شُحن» |
PATCH /orders/{id}/status | orders.write | processing / complete / cancelled |
GET /customers | customers.read | العملاء |
GET /subscribers | subscribers.read | مشتركو النشرة النشطون |
أحداث واجهة المتجر
emole.on('product_view', e => …) // { productId, name, sku, price, currency }
emole.on('add_to_cart', e => …) // { productId, quantity }
emole.on('begin_checkout', e => …)
emole.on('purchase', e => …) // { orderId, orderNumber, total, currency, items }
emole.customer · emole.store