Magento new order notifications on your phone.

Get a push notification with the customer, total, item count and payment method every time an order is placed in your Magento shop, from the storefront, the admin or the API.

order.placedE-commerceOrders
How it works

Three steps to your first push

STEP 01

Install the recipe

One click in Studio gives you a personal webhook URL.

STEP 02

Paste your URL into Magento

Add it as a webhook for Order placed.

STEP 03

Get a push on your phone

With the text, sound and buttons from the recipe.

Setup

How to set up the Magento order placed webhook

  1. Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL.
  2. Install the JustPush module in your shop: composer require justpush/magento-module-notify, then bin/magento setup:upgrade.
  3. In the Magento admin, open Stores > Configuration > Services > JustPush and set Enabled to Yes.
  4. Paste your webhook URL into the Order placed field, click Save Config, then click Send test.https://••••••••/•••••••• your personal URL, shown after install
  5. Magento has no outgoing webhooks, so this recipe needs the free **JustPush module** in your shop ([source](https://github.com/JustPush-io/justpush-magento)). Install it once; it serves every Magento recipe:
  6. ```bash
  7. composer require justpush/magento-module-notify
  8. bin/magento setup:upgrade
  9. bin/magento cache:flush
  10. ```
  11. Then open **Stores → Configuration → Services → JustPush** in the Magento admin, set **Enabled** to **Yes**, paste the URL above into the **Order placed** field and click **Save Config**. Click **Send test**: this recipe answers with a quiet "🔔 Magento connected".
  12. Orders placed with an online payment method such as iDEAL start as **pending payment**; the title then says "(awaiting payment)". Add `?unpaid=0` to the end of the URL to skip those and rely on the **Invoice paid** recipe for the money, so abandoned payments don't reach your phone.
  13. The module sends from Magento's message queue, so Magento cron has to run (it usually does). Without cron, set **Send immediately (no cron)** to **Yes**.
  14. The **Open order** button opens the Magento admin. With Magento's default **Add Secret Key to URLs** setting, it lands on the dashboard rather than the page itself.
  15. Requests aren't signed, so keep the URL private.
The code

What runs when the webhook arrives

Studio calls handleRequest(request) with the incoming webhook and sends the message it returns. It's yours after install; change anything.

transform.js
1// Magento → order placed
2// Fires when the JustPush module (justpush/magento-module-notify) reports an "order.placed" event:
3// an order from the storefront, the admin, REST or GraphQL.
4// Docs: https://github.com/JustPush-io/justpush-magento
5
6// The module sends plain strings; treat blanks and nulls as missing.
7function text(value) {
8 return typeof value === "string" && value.trim() ? value.trim() : null
9}
10
11// Only link to real http(s) URLs.
12function link(url, cta) {
13 return typeof url === "string" && /^https?:\/\//.test(url) ? [{ cta, url }] : []
14}
15
16// Which shop sent it, so owners of several websites can tell them apart.
17function shop(store) {
18 if (!store || typeof store !== "object") return null
19 const url = text(store.url)
20 const host = url && /^https?:\/\//.test(url) ? url.replace(/^https?:\/\//, "").replace(/\/.*$/, "") : null
21 return text(store.website) ?? text(store.store_view) ?? host
22}
23
24// The module's "Send test" button; every Magento recipe answers it.
25function testPing(body) {
26 const from = shop(body.store)
27 return {
28 title: "🔔 Magento connected",
29 message: from ? `${from} is sending to this recipe` : "Your shop is sending to this recipe",
30 topic: "Magento",
31 priority: -1, // Low — you just clicked the button
32 }
33}
34
35// Magento sends money as decimal strings ("49.00"). Returns null when there's no amount.
36function money(amount, currency) {
37 const value = Number(amount)
38 if (amount == null || amount === "" || !Number.isFinite(value) || !text(currency)) return null
39
40 try {
41 return new Intl.NumberFormat("en-GB", { style: "currency", currency: currency.trim() }).format(value)
42 } catch {
43 return `${amount} ${currency}`
44 }
45}
46
47// Order states worth calling out in the title; "pending" is normal for a new order.
48const WAITING = {
49 pending_payment: " (awaiting payment)",
50 payment_review: " (payment review)",
51 holded: " (on hold)",
52 fraud: " (suspected fraud)",
53}
54
55function pick(table, key, fallback) {
56 return typeof key === "string" && Object.prototype.hasOwnProperty.call(table, key) ? table[key] : fallback
57}
58
59function handleRequest(request) {
60 const body = request.body && typeof request.body === "object" ? request.body : {}
61
62 if (body.event === "test.ping") return testPing(body)
63
64 // Guard: only handle this recipe's event, so other Magento events on this integration stay quiet.
65 const order = body.order
66 if (body.event !== "order.placed" || !order || typeof order !== "object") {
67 console.log(`Ignoring Magento event "${body.event ?? "unknown"}"`)
68 return null
69 }
70
71 // ?unpaid=0 skips orders still waiting for an online payment (e.g. an abandoned iDEAL payment).
72 if (request.query?.unpaid === "0" && order.status === "pending_payment") {
73 console.log("Order is awaiting payment and ?unpaid=0 is set — skipping")
74 return null
75 }
76
77 const number = text(order.increment_id)
78 const customer = text(order.customer_name) ?? (order.is_guest ? "A guest" : "A customer")
79 const count = Number(order.item_count)
80 const items = Number.isFinite(count) && count > 0 ? ` ${count} item${count === 1 ? "" : "s"}` : ""
81 const total = money(order.grand_total, order.currency)
82 const method = text(order.payment_method)
83 const where = pick({ admin: "created in the admin", api: "via the API" }, order.source, null)
84
85 return {
86 title: `🛒 New order${number ? ` #${number}` : ""}${pick(WAITING, order.status, "")}`,
87 message: [
88 `${customer} ordered${items}${total ? ` for ${total}` : ""}${method ? ` via ${method}` : ""}`,
89 where,
90 shop(body.store),
91 ]
92 .filter(Boolean)
93 .join(" · "),
94 topic: "Magento",
95 priority: 0, // Normal — a sale is good news, not an emergency
96 sound: "cashregister",
97 buttons: link(order.admin_url, "Open order"),
98 }
99}
Payload

The Magento order.placed webhook

This is what Magento sends to your URL for order placed. It is a sample, trimmed to the fields recipes use.

order.placed · sample.json
1{
2 "event": "order.placed",
3 "order": {
4 "source": "frontend",
5 "status": "pending",
6 "currency": "EUR",
7 "is_guest": true,
8 "admin_url": "https://shop.example.com/admin/sales/order/view/order_id/12/",
9 "item_count": 2,
10 "grand_total": "108.00",
11 "increment_id": "000000012",
12 "customer_name": "Jane Doe",
13 "customer_email": "[email protected]",
14 "payment_method": "Check / Money order",
15 "shipping_method": "Flat Rate - Fixed"
16 },
17 "store": {
18 "url": "https://shop.example.com/",
19 "website": "Main Website",
20 "store_view": "Default Store View"
21 },
22 "sent_at": "2026-09-30T14:29:28Z",
23 "version": 1
24}
FAQ

Magento new order notifications: questions

Does this work on iPhone and Android?

Yes. Install the JustPush app from the App Store or Google Play and sign in. Every phone signed in to your account gets the notification.

Do I need to write code?

No. Install the recipe in Studio, paste your webhook URL into Magento and you are done. The code is there if you want to change the text, the sound or the buttons.

Can I change what the notification says?

Yes. After install the recipe's code is yours. Edit it in Studio and test it against the sample payload before you save.

What does it cost?

JustPush is free for 30 days. After that it's $19.99 a year, or $39.99 once. There is no extra charge for recipes.

Ready when you are

Magento on your phone in two minutes.

Install the recipe, paste one URL, done. Free for 30 days, no credit card required.