# Sendcloud return created notifications on your phone > Get a push notification when a customer creates a return through the Sendcloud Return Portal. - Company: Sendcloud (https://www.justpush.io/recipes/sendcloud) - Event: `return_created` (Return created) - Tags: E-commerce, Orders - Install: https://studio.justpush.io/recipes/sendcloud/return-created - Web page: https://www.justpush.io/recipes/sendcloud/return-created ## 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. Use the same API integration webhook as for parcel statuses (**Settings → Integrations → Configure → Webhook feedback enabled**). Returns made through the Return Portal or the API trigger it; the manual return form doesn't. 6. 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 → return created // Fires when a customer creates a return through the Sendcloud Return Portal or the API. // Docs: https://sendcloud.dev/api/v3/webhooks function handleRequest(request) { const body = request.body || {} const data = body.data // Guard: only return_created webhooks. if (body.action !== "return_created" || !data) { console.log(`Ignoring Sendcloud "${body.action ?? "unknown"}" webhook`) return null } const items = Array.isArray(data.items) ? data.items : [] const count = items.reduce((sum, item) => sum + (Number(item?.quantity) || 1), 0) const first = items[0]?.description return { title: `↩️ Return created${data.order_number ? ` for order ${data.order_number}` : ""}`, message: (count ? `${count} item${count === 1 ? "" : "s"}` : "A return") + (first ? ` — ${first}${items.length > 1 ? ` + ${items.length - 1} more` : ""}` : ""), topic: "Sendcloud", priority: 0, // Normal — a parcel is coming back } } ``` ## Sendcloud return_created webhook payload (sample) ```json { "data": { "id": 55123, "items": [ { "sku": "PIN-01", "item_id": "a1", "quantity": 2, "description": "Enamel Pin" }, { "sku": "STK-01", "item_id": "a2", "quantity": 1, "description": "Sticker Pack" } ], "brand_id": 12, "refund_type": "money", "order_number": "1234", "return_reason_id": 3 }, "action": "return_created", "timestamp": 1790672400000 } ``` ## 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.