Welcome Servies To Emole Services Developer Documention
You Can Learn How TO Create Services And ALso Create New Mobile App
appToken that arrives with every event and request, your server reads and changes that store's data only, with only the permissions the merchant granted.{ "success": true, "message": null, "data": [ … ], "errors": null }success: false and message gives the reason, with an HTTP status:| Status | Cause |
|---|---|
400 | Invalid value (negative, missing, wrong type) |
401 | No token, invalid token, or the merchant removed the app |
403 | App disabled by the merchant or the platform, subscription expired, permission not requested, or awaiting merchant approval |
404 | The item isn't in this store |
429 | A daily limit was exceeded (e.g. messages) |
0, and the page size is up to 50.| Endpoint | Permission | Fields |
|---|---|---|
GET me | — | appId · app · storeId · sandbox · expiresOnUtc · permissions |
GET store | store.read | id · name · url |
GET products?page=&size=&q=&categoryId= | products.read | id · name · shortDescription · sku · price · priceValue · oldPrice · stock · image · url |
GET products/{id} | products.read | The same fields for one product |
GET categories | categories.read | id · name · parentId · url |
GET orders?page=&size= | orders.read | id · number · status · paymentStatus · shippingStatus · total · currency · customerId · createdOnUtc |
GET customers?page=&size= | customers.read | id · email · username · createdOnUtc |
GET subscribers?page=&size= | subscribers.read | total, then items: email · createdOnUtc (page size up to 500) |
Start with GET me: it tells you whether the store is a sandbox, when the subscription ends, and which permissions were actually granted.
| Endpoint | Permission | Body |
|---|---|---|
PATCH products/{id} | products.write | Any of: name · shortDescription · fullDescription · price · oldPrice · stockQuantity · sku · published · metaTitle · metaDescription · metaKeywords |
GET products/{id}/images | products.write | — |
POST products/{id}/images | products.write | {"url","alt","displayOrder","main"}. Image up to 5 MB from a public URL |
DELETE products/{id}/images/{pictureId} | products.write | — |
POST categories · PATCH categories/{id} | categories.write | name · description · parentId · published · metaTitle · metaDescription |
POST discounts | discounts.write | A coupon on the order total: name · couponCode · percentage or amount · maxAmount · startUtc · endUtc · usesLimit · perCustomer |
POST orders/{id}/notes | orders.write | {"note":"…","displayToCustomer":false} |
POST orders/{id}/shipments | orders.write | {"trackingNumber":"…","notifyCustomer":true}. Marks the order "shipped" |
PATCH orders/{id}/status | orders.write | {"status":"processing"} or complete or cancelled |
PATCH, send only what you want to change. Every change is scoped to the installing store and logged under your app's name.Image URLs must be public on the internet. Internal URLs (localhost and private networks) are rejected.
messages.send you send an email in the store's name to one of its customers:{ "success": true, "data": { "queued": true, "to": "…", "remainingToday": 299 } }orderId), or a customer who signed up or ordered there (customerId). No one else.429 until the next day.| Option | Meaning |
|---|---|
| Key | Lowercase English, e.g. seo_log or product_banner |
| Linked to | Nothing, or product, category, order, customer. The table becomes "extra fields" for that item |
| One record per item | Writing to …/entity/{id} creates or updates it |
| Merchant can view and edit | Shown under My store apps → Data |
| Readable by widget templates | {{#each data_table}} for records, and {{data.table.column}} for the item being shown |
| Accepts submissions from store forms | A storefront form posts to POST /emole-app/{appId}/data/{table} (reviews, quote requests), with flood protection |
| Columns | Up to 40: text, long text, number, yes/no, date, URL, image, email, list, JSON. Every value is validated before saving |
GET /api/apps/v1/data your table definitions
GET /api/apps/v1/data/{table}?entityId=&q=&page=
GET /api/apps/v1/data/{table}/{id}
GET /api/apps/v1/data/{table}/entity/{entityId}
POST /api/apps/v1/data/{table} new record
PUT /api/apps/v1/data/{table}/entity/{entityId} item record (create or update)
PATCH /api/apps/v1/data/{table}/{id} partial update
DELETE /api/apps/v1/data/{table}/{id}What store visitors write in your tables is displayed as plain text: no code or template tokens run.
| Method | How it works | Server? |
|---|---|---|
| Built-in, no code | A template per field using the item's values. The platform computes the values, shows before/after, and writes them on Apply | No |
| Built-in, from your server | You receive action.run with current values and reply with changes, shown before/after and written with the merchant's approval | Yes |
| My page | Your page opens inside the merchant dashboard | Yes |
| Target | Permission | Fields |
|---|---|---|
| Product | products.write | metaTitle · metaDescription · metaKeywords · seName · name · shortDescription · fullDescription |
| Category | categories.write | metaTitle · metaDescription · metaKeywords · seName · name · description |
| Order | orders.write | note |
metaTitle = {{product.name}} | {{store.name}}
metaDescription = {{product.shortDescription | striphtml | truncate:150}}product.name · product.sku · product.price · product.category · product.shortDescription · product.metaTitle · category.name · category.parent · order.number · order.total · store.name, with filters.{ "hook": "action.run",
"data": { "action": "seo-ai", "target": "product", "fields": ["metaTitle"],
"items": [ { "id": 7579, "values": { "name": "…", "sku": "…", "metaTitle": "" } } ] } }{ "message": "Suggestions ready", "items": [ { "id": 7579, "changes": { "metaTitle": "…" } } ] }emole_session in the URL, carrying action, target and ids (up to 100).{ "success": true, "data": { "appToken": "…", "storeId": 10, "installId": 1143 } }GET products/{id} and apply with PATCH products/{id}. Show the suggestion first and apply only with the merchant's approval.storefront_app_page zone in step 3 to give your app a page inside the store's design at /apps/system-name: a loyalty program, a size guide, a quote request.{{payload.slug}} for the part after the name (/apps/system-name/vip), {{payload.q_name}} for URL parameters, and {{customer.name}}.