# Paddle payout sent notifications on your phone

> Get a low-priority push notification when Paddle sends a payout to your bank account.

- Company: Paddle (https://www.justpush.io/recipes/paddle)
- Event: `payout.paid` (payout.paid)
- Tags: Finance, Payments
- Install: https://studio.justpush.io/recipes/paddle/payout-paid
- Web page: https://www.justpush.io/recipes/paddle/payout-paid

## 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 Paddle, go to Developer tools > Notifications and click New destination.
3. Choose Webhook as the type and paste your webhook URL (shown in Studio after install) as the URL.
4. Select the payout.paid event and save the destination.
5. Paddle signs each webhook with a `Paddle-Signature` header, but JustPush doesn't verify it yet. 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
// Paddle → payout paid
// Fires when a payout is sent to your bank account.
// Docs: https://developer.paddle.com/webhooks/overview
//
// Paste this into a JustPush Studio integration and add a Paddle notification destination
// for the "payout.paid" event pointing at the integration's endpoint URL.

// Paddle amounts are strings in the currency's smallest unit ("4900" = €49.00),
// except for zero-decimal currencies such as JPY, where "500" means ¥500.
const ZERO_DECIMAL = new Set(["jpy", "krw"])

function money(amount, currency) {
    const units = Number(amount)

    // Don't invent a figure when the event doesn't carry one.
    if (amount == null || amount === "" || !Number.isFinite(units) || !currency) return null

    const code = String(currency).toLowerCase()
    const value = ZERO_DECIMAL.has(code) ? units : units / 100

    try {
        return new Intl.NumberFormat("en-GB", { style: "currency", currency: code }).format(value)
    } catch {
        return `${value} ${code.toUpperCase()}`
    }
}

function handleRequest(request) {
    const event = request.body

    // Guard: only handle this event type, so other Paddle events on this integration stay quiet.
    if (!event?.data || event.event_type !== "payout.paid") {
        console.log(`Ignoring Paddle event "${event?.event_type ?? "unknown"}"`)
        return null
    }

    const payout = event.data
    const reference = payout.remittance_reference ? ` (reference ${payout.remittance_reference})` : ""

    return {
        title: "🏦 Payout sent",
        message: `${money(payout.amount, payout.currency_code) ?? "A payout"} is on its way to your bank${reference}`,
        topic: "Paddle",
        priority: -1, // Low — nice to know, nothing to do
    }
}
```

## Paddle payout.paid webhook payload (sample)

```json
{
  "data": {
    "id": "payout_01jmonthly",
    "amount": "123456",
    "status": "paid",
    "currency_code": "EUR",
    "remittance_reference": "10374"
  },
  "event_id": "evt_01jpayoutpaid",
  "event_type": "payout.paid",
  "occurred_at": "2026-09-28T09:30:00.000000Z",
  "notification_id": "ntf_01jpayoutpaid"
}
```

## 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 Paddle 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.
