Welcome Servies To Emole Services Developer Documention
You Can Learn How TO Create Services And ALso Create New Mobile App
| Need | Integration point | Runs on |
|---|---|---|
| Ad pixel / analytics | window.emole storefront events | Shopper's browser |
| Banner, popup, countdown | Zone + settings + conditions | Platform render |
| Who gets a discount | discount.check hook | Your server |
| Campaigns on a schedule or after an order | schedule.* and order.* events | Your server |
window.emoledocument.addEventListener('emole:purchase', …). Google, Meta and TikTok pixels are built in; build for other platforms. See Storefront events.[
{"key":"text","label":"Offer text","type":"text","required":true},
{"key":"endsAt","label":"Ends at","type":"datetime"},
{"key":"color","label":"Background","type":"color"}
]body_start_html_tag_after:all: home page only, before the end date.[
{"field":"page.type","op":"eq","value":"home"},
{"field":"date.now","op":"lt","value":"2026-12-31T23:59:00"}
]discount.check{ "hook": "discount.check", "storeType": 1, "config": { "minSubtotal": "100" },
"data": {
"discount": { "id": 16143, "name": "Loyalty club 10%", "couponCode": null },
"customer": { "id": 1193492, "isGuest": false, "roles": ["Registered"] },
"cart": { "subtotal": 200, "count": 1, "items": [ { "productId": 8739, "quantity": 1, "price": 200 } ] }
} }{ "valid": false, "message": "Add 30 SAR to get the discount" }
schedule.*schedule.daily in step 3. Your server receives, once per store per period:{ "hook": "schedule.daily", "storeId": 10, "appToken": "…",
"data": { "every": "daily", "scheduledAtUtc": "2026-11-28T03:00:00Z", "lastRunUtc": "2026-11-27T03:00:00Z" } }appToken, read the store data and message customers in the store's name (Apps API):createdOnUtc is after lastRunUtc, then:| Permission | For |
|---|---|
orders.read · customers.read | Reading orders and customers |
messages.send | Email, up to 300 a day per store (then 429) |