Welcome Servies To Emole Services Developer Documention
You Can Learn How TO Create Services And ALso Create New Mobile App
hook | Kind | When | Your reply | Page |
|---|---|---|---|---|
app.ping | Check | Check my app | Any JSON with 200 | Connect your server |
order.placed · order.paid · order.shipped · order.delivered · order.cancelled · order.refunded | Event | When it happens | 200 | Events |
customer.registered | Event | New customer | 200 | Events |
schedule.hourly · schedule.daily · schedule.weekly | Event | On schedule | 200 | Events |
| A zone name | Widget | A page with your widget opens | HTML (up to 100 KB) | Zones |
storefront_app_page | Page | /apps/system-name opens | HTML | Apps API |
action.run | Action | The merchant runs your action | {message, items:[{id, changes}]} | Apps API |
shipping.rates | Service | Shopper on the checkout page | {options:[{name, rate, description, transitDays}]} | Payment & shipping |
shipping.create | Service | Add shipment | {trackingNumber, labelUrl} | Payment & shipping |
shipping.cancel | Service | Shipment deleted | {ok} or {ok:false, error} | Payment & shipping |
shipping.track | Service | Shipment tracking | {url, events:[{name, location, date}]} | Payment & shipping |
payment.create | Service | Shopper confirms the order | {redirectUrl} or {mode:"offline", message} | Payment & shipping |
payment.refund · payment.void | Service | Merchant refunds or voids | {success} or {success:false, error} | Payment & shipping |
discount.check | Service | A cart with your discount rule | {valid} or {valid:false, message} | Discount & tax |
tax.rate | Service | A product's tax is computed | {rate} | Discount & tax |
mfa.send | Service | A verification code is sent | {sent:true} | Login & 2FA |
| Header | Direction | Meaning |
|---|---|---|
X-Emole-Event | Platform → your server | The hook name |
X-Emole-Signature | Both | sha256= + HMAC-SHA256 of the body with your secret |
X-Emole-Redelivery | Platform → your server | When resent from the log |
X-Emole-App-Token | Your server → platform | Install token for the Apps API |
X-Emole-App-Secret | Your server → platform | App secret, for session/exchange only |