ملخص مبيعات Square اليومي إلى Telegram (n8n)
إجمالي مبيعات اليوم وعدد الدفعات على جوالك عند الإغلاق.
حدود: تقرأ أول 100 دفعة فقط في اليوم (صفحة واحدة من Square API)، فالأيام المزدحمة ستُحسب أقل من الحقيقة.
الخطوات
- جدولة يومية الساعة 23:00.
- HTTP Request يجلب مدفوعات Square لليوم.
- عقدة Code تجمع الدفعات المكتملة وتعدّها.
- Telegram يرسل لك الملخص.
ما الذي جرّبناه
غير مجرّبة على خدمات حقيقية شُغّلت في n8n بخدمات محاكاة بتاريخ 2026-10-16، ولم تُجرَّب بعد على التطبيقات الحقيقية. التفاصيل (بالإنجليزية):
Imported into local n8n 1.70.3 without errors. The logic ran end-to-end on sample data with the app nodes switched off (no real accounts were connected), so the app steps themselves are not tested.
Mocked (not tested for real): Square payments API (HTTP Request), Telegram (nodes switched off; sample payments used)
التكلفة الشهرية
مجانية مع n8n المستضاف ذاتيًا (أنت تشغّل الخادم)، أو من 20 يورو شهريًا مع n8n Cloud Starter بالدفع السنوي. n8n.io/pricing/
Free on self-hosted n8n (you run the server); €20/mo on n8n Cloud Starter, billed annually
الإعداد
تفاصيل الإعداد بالإنجليزية لأنها تطابق أسماء الحقول والعقد داخل الأداة. للبدء من الصفر اقرأ دليل n8n من الصفر.
You will need
- n8n (self-hosted is free; Cloud from €20/mo)
- Square account and a Telegram bot
Credentials
- Square access token (Header Auth or query)
- Telegram Bot API token
Configure
- Set your Square location and auth on the HTTP Request node.
- Set the Telegram chat ID to your phone.
- Change the Schedule cron if closing is not 23:00.
Test
- Click Test workflow: you should get a sample summary message in Telegram once credentials are attached.
Common errors
- Zero totals: check the Square date filter uses your shop timezone.
- Telegram 401: regenerate the bot token and re-attach the credential.