# Sendcloud parcel status notifications on your phone > Get a push notification when a Sendcloud parcel is delivered, waiting for pickup, delayed, or runs into a problem. - Company: Sendcloud (https://www.justpush.io/recipes/sendcloud) - Event: `parcel_status_changed` (Parcel status changed) - Tags: E-commerce, Orders - Install: https://studio.justpush.io/recipes/sendcloud/parcel-status - Web page: https://www.justpush.io/recipes/sendcloud/parcel-status ## Setup 1. Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL. 2. In Sendcloud, go to Settings > Integrations and click Configure on your API integration. 3. Tick Webhook feedback enabled and paste your webhook URL (shown in Studio after install) as the Webhook URL. 4. Save, then press Test API webhook. 5. In Sendcloud, go to **Settings โ†’ Integrations**, click **Configure** on your API integration, tick **Webhook feedback enabled**, paste the URL above, save, and press **Test API webhook**. You only get updates for parcels created through that integration. 6. By default only statuses you'd act on push: *Delivered*, *Awaiting customer pickup*, delays, and problems (unable to deliver, failed attempts, invalid address, refused, returned, exceptions). For every step (announced, sorted, en route, โ€ฆ) use: 7. ``` 8. your webhook URL (shown in Studio after install)?all=1 9. ``` 10. Sendcloud signs deliveries with `Sendcloud-Signature` (HMAC-SHA256), but JustPush doesn't check it yet, so keep your endpoint URL private. ## Code Studio calls `handleRequest(request)` with the incoming webhook (`{ method, headers, body, query, raw }`) and sends the message object it returns. Returning `null` sends nothing. ```js // Sendcloud โ†’ parcel status changed // Fires when a parcel created through your Sendcloud API integration changes status. // By default only the statuses you'd act on push; add ?all=1 for every step. // Docs: https://sendcloud.dev/api/v3/webhooks/parcel-status-changed // Status messages worth a push (matched case-insensitively), with emoji and priority. // Sendcloud's numeric status ids vary, so the recipe goes by the message. const STATUSES = [ { match: /^delivered$/i, emoji: "๐Ÿ“ฆ", priority: -1 }, { match: /awaiting customer pickup/i, emoji: "๐Ÿ“ฌ", priority: 0 }, { match: /delay/i, emoji: "๐Ÿข", priority: 0 }, { match: /unable to deliver|delivery attempt failed|address invalid|refused|returned to sender|exception|lost|damaged/i, emoji: "โš ๏ธ", priority: 1 }, { match: /announcement failed/i, emoji: "โš ๏ธ", priority: 1 }, ] // Only link to real http(s) URLs. function link(url, cta) { return typeof url === "string" && /^https?:\/\//.test(url) ? [{ cta, url }] : [] } function handleRequest(request) { const body = request.body || {} const parcel = body.parcel // Guard: only parcel status changes. if (body.action !== "parcel_status_changed" || !parcel) { console.log(`Ignoring Sendcloud "${body.action ?? "unknown"}" webhook`) return null } const status = parcel.status?.message ?? "Status changed" const all = ["1", "true", "yes"].includes(String(request.query?.all ?? "").toLowerCase()) const known = STATUSES.find((entry) => entry.match.test(status)) if (!known && !all) { console.log(`Skipping in-transit status "${status}"`) return null } const to = [parcel.name || parcel.company_name, parcel.country?.iso_2].filter(Boolean).join(", ") const order = parcel.order_number ? `Order ${parcel.order_number}` : `Parcel ${parcel.tracking_number ?? parcel.id}` return { title: `${known?.emoji ?? "๐Ÿšš"} ${parcel.is_return ? "Return: " : ""}${status}`, message: [order, to ? `to ${to}` : null, parcel.carrier?.name ?? parcel.carrier?.code].filter(Boolean).join(" ยท "), topic: "Sendcloud", priority: known?.priority ?? -1, buttons: link(parcel.tracking_url, "Track parcel"), } } ``` ## Sendcloud parcel_status_changed webhook payload (sample) ```json { "action": "parcel_status_changed", "parcel": { "id": 381943275, "city": "Utrecht", "name": "Jan Jansen", "email": "jan@example.com", "status": { "id": 80, "message": "Unable to deliver" }, "carrier": { "id": null, "code": "postnl", "name": "PostNL" }, "country": { "name": "Netherlands", "iso_2": "NL", "iso_3": "NLD" }, "collo_nr": 0, "shipment": { "id": 8, "name": "PostNL Standard 0-23kg" }, "is_return": false, "collo_count": 1, "postal_code": "3511 AB", "company_name": "", "date_updated": "29-09-2026 09:48:07", "order_number": "1234", "tracking_url": "https://tracking.sendcloud.sc/forward?carrier=postnl&code=3SYZXG132912330&destination=NL&lang=nl-nl&source=NL&type=parcel&verification=3511AB", "tracking_number": "3SYZXG132912330" }, "timestamp": 1790672400000, "carrier_status_change_timestamp": null } ``` ## FAQ ### 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 Sendcloud 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.