New Zid order alerts on Telegram
Every new order in your Zid store arrives as a Telegram message.
How it works
Trigger: Webhook — Zid new order event
- Receive the new order webhook from Zid.
- Pull out order number, customer, items, total and city.
- Send it to your Telegram.
Diagram
Trigger App Code
Code
JavaScript used in the Code step — already included in the template below.
// Mode: Run Once for Each Item
// Zid order webhook → clean fields.
// Run one test order first and adjust the field names below if needed.
const o = $json.body?.data || $json.body || {};
const c = o.customer || {};
return {
json: {
order_id: o.code || o.id,
customer_name: c.name || "",
phone: String(c.mobile || c.phone || "").replace(/[^0-9]/g, ""),
email: c.email || "",
total: o.order_total ?? o.total ?? "",
currency: o.currency_code || o.currency || "",
payment_method: o.payment?.method?.code || o.payment_method || "",
city: o.shipping?.address?.city?.name || o.shipping?.address?.city || "",
items: (o.products || []).map((p) => `${p.quantity}× ${p.name}`).join("، "),
},
};Build it
Pick your tool — same automation, step by step.
Copy and paste straight into an n8n canvas (Ctrl+V), or download and use Import from File. Then connect your own credentials and replace every YOUR_… placeholder.
Show code (99 lines)
{
"name": "New Zid order alerts on Telegram (Flowngn)",
"nodes": [
{
"parameters": {
"content": "## New Zid order alerts on Telegram\nEvery new order in your Zid store arrives as a Telegram message.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
"height": 260,
"width": 340
},
"id": "53ade245-fd19-478b-acfb-c843399accea",
"name": "Setup notes",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-420,
-60
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "zid-order-alert",
"options": {}
},
"id": "53ade245-fd19-478b-acfb-c843399accea",
"name": "Zid order",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
0,
0
],
"webhookId": "53ade245-fd19-478b-acfb-c843399accea"
},
{
"parameters": {
"jsCode": "// Mode: Run Once for Each Item\n// Zid order webhook → clean fields.\n// Run one test order first and adjust the field names below if needed.\nconst o = $json.body?.data || $json.body || {};\nconst c = o.customer || {};\n\nreturn {\n json: {\n order_id: o.code || o.id,\n customer_name: c.name || \"\",\n phone: String(c.mobile || c.phone || \"\").replace(/[^0-9]/g, \"\"),\n email: c.email || \"\",\n total: o.order_total ?? o.total ?? \"\",\n currency: o.currency_code || o.currency || \"\",\n payment_method: o.payment?.method?.code || o.payment_method || \"\",\n city: o.shipping?.address?.city?.name || o.shipping?.address?.city || \"\",\n items: (o.products || []).map((p) => `${p.quantity}× ${p.name}`).join(\"، \"),\n },\n};",
"mode": "runOnceForEachItem"
},
"id": "53ade245-fd19-478b-acfb-c843399accea",
"name": "Read Zid order",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
300,
0
]
},
{
"parameters": {
"chatId": "YOUR_CHAT_ID",
"text": "=🛍️ طلب جديد #{{ $json.order_id }} — {{ $json.total }} {{ $json.currency }}\n{{ $json.items }}\n👤 {{ $json.customer_name }} · 📍 {{ $json.city || '—' }}\n💳 {{ $json.payment_method }}",
"additionalFields": {
"appendAttribution": false
}
},
"id": "53ade245-fd19-478b-acfb-c843399accea",
"name": "Notify on Telegram",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
600,
0
]
}
],
"connections": {
"Zid order": {
"main": [
[
{
"node": "Read Zid order",
"type": "main",
"index": 0
}
]
]
},
"Read Zid order": {
"main": [
[
{
"node": "Notify on Telegram",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}In Make, create a new scenario and add these modules in order:
- Webhooks › Custom webhook
- Tools › Set variable / Iterator + Array aggregator (same logic as the Code step)
- Telegram Bot › Send a Text Message or a Reply
- Every module run uses Make operations — the free plan includes a monthly quota.
- Make's built-in functions (map, sum, formatDate…) can replace most Code steps; for complex logic use a code module.
- Module and step names can differ slightly as Make and Zapier update their apps.
In Zapier, create a new Zap and add these steps in order:
- Webhooks by Zapier — Catch Hook
- Code by Zapier — Run JavaScript (paste the code from the Code section)
- Telegram — Send Message
- Zaps with more than two steps need a paid Zapier plan.
- Webhooks, Filters/Paths and Code by Zapier are premium features on some Zapier plans.
- Code by Zapier runs JavaScript: reuse the code shown above, reading inputs from inputData instead of $json.
- Module and step names can differ slightly as Make and Zapier update their apps.
Tips
- Register the webhook for the order-created event through Zid's merchant API.
Related flows
MENA & local appsEasy
Telegram alert for failed Paymob payments
Know instantly when a customer's payment fails, so you can call them and save the sale.
Paymob → Telegram2h/mo
MENA & local appsAdvanced
Verify Paymob callbacks with HMAC
Check Paymob's signature on every callback so fake payment messages are rejected.
Paymob → Telegram1h/mo
MENA & local appsEasy
New Salla order alerts on Telegram
Get a Telegram message with the items, total and city for every Salla order.
Salla → Telegram2h/mo