# Stripe in your Mac’s menu bar

Legato reads your Stripe account through Stripe’s API with a read-only key and shows it in your Mac’s menu bar on two pages. **Stripe** has your balance, the next payout, the month’s money and anything that needs you, like a dispute waiting for a response. **Payments** lists the month’s payments. Neither page has buttons: refunds, payouts and disputes stay in Stripe’s Dashboard, and each row opens its payment or dispute there.

## What you’ll see

- **Stripe:**
  - **Health:** in Details. It turns orange while a dispute waits for your response, naming the first one’s deadline, and red when that deadline is two days away or less, when payments or payouts are off on the account (as on an account Stripe hasn’t finished setting up, or one it has paused), or when the newest payout failed.
  - **Available** and **Next payout:** the balance you can be paid out, with what’s still pending under it, and the next payout on its way, with the day it should arrive.
  - **Gross volume:** the month’s payments so far as a line that climbs day by day, as Stripe’s own Dashboard draws it. The arrows step back through earlier months.
  - Under it, the month’s **net after fees**, Stripe’s **fees** and **refunds**. Each opens the Payments page, which has the month’s failed payments.
  - **Account:** active and past-due subscriptions, what open invoices are owed and how many are overdue, and your payout schedule.
  - **Disputes:** only while any wait for a response, soonest deadline first, with the amount and the reason the card holder gave.
  - **Payments:** the four newest, who paid, for what, how much and when. A failed or refunded one says so. **All payments** in the corner opens the Payments page.
  - **Activity:** the last 30 days of failed payments, refunds, new disputes, new and ended subscriptions, failed invoice payments and payouts.
- **Payments:** the month’s payments in three tabs: **Paid**, **Failed** (with the reason Stripe gives) and **Refunded**, which holds any payment refunded in part or in full. Above them, how many were paid and what share of tries failed.

### Status

- Watches the account, its payouts and its disputes.
- Red when payments or payouts are off on the account, when the newest payout failed, or when a dispute’s response is due within two days.
- Orange while a dispute waits for a response.
- Shows on Stripe and notifies you when it turns orange or red.

## How it connects

Legato connects to `api.stripe.com` with your restricted key in a Bearer header, using [Stripe’s API](https://docs.stripe.com/api), and asks for one API version (`2026-09-30.endive`) so the shape of its answers doesn’t change under the pages.

| Request | Page | When | What it does |
| --- | --- | --- | --- |
| `GET /v1/account` | Stripe | Every 5 and every 15 minutes | Whether payments and payouts are on, the payout schedule, and the account’s currency. Sent with each of the three groups below that need it. |
| `GET /v1/balance` | Stripe | Every 5 minutes | The available and pending balance. |
| `GET /v1/payouts?limit=20` | Stripe | Every 5 minutes | The next payout on its way, and whether the newest one failed. |
| `GET /v1/disputes?limit=100` | Stripe | Every 5 minutes | Disputes and their response deadlines, following up to 5 pages. |
| `GET /v1/subscriptions/search` | Stripe | Every 5 minutes | How many subscriptions are active and past due. Two requests that count; no subscription details. Stripe’s search isn’t offered everywhere (not in India); where it isn’t, only the Account card stays empty. |
| `GET /v1/invoices?status=open&limit=100` | Stripe | Every 5 minutes | Open invoices, what they owe and their due dates, following up to 5 pages. |
| `GET /v1/balance_transactions?created[gte]=…&created[lt]=…&limit=100` | Stripe | Every 15 minutes, and for each month you step to | The month’s balance movements: payments, refunds, disputes and fees, following up to 20 pages. |
| `GET /v1/charges?limit=4&expand[]=data.customer` | Stripe | Every 5 minutes | The four newest payments, with their customers’ names. |
| `GET /v1/events?limit=20&types[]=…` | Stripe | Every 5 minutes | Recent activity of eight kinds. Stripe keeps events for 30 days. |
| `GET /v1/charges?created[gte]=…&created[lt]=…&limit=100&expand[]=data.customer` | Payments | Every 15 minutes, and for each month you step to | The month’s payments, following up to 10 pages. |

A restricted key does only what you allow it. The pages read balances, charges, customers, disputes, events, invoices, payouts, subscriptions and your account’s own settings, so give it **Read** on those and **None** on everything else. If Stripe refuses a request, the source’s status shows Stripe’s message, which names the permission to add. A secret key would work too, but it can move money, so don’t use one. Stripe allows 100 read requests a second; these pages make about 33 every 15 minutes. The Mac must be awake and Legato running to fetch them.

Money is shown in your account’s own currency, the one Stripe pays you out in. The month’s figures come from your balance movements, which Stripe records in that currency, so a payment taken in another currency counts at what it settled for. Balances held in other currencies are left out. Amounts follow Stripe’s rules for each currency’s decimals, such as whole yen.

[Sources and buttons](https://legatobar.com/docs/sources.md) describes the supported authentication methods, and [A list across pages](https://legatobar.com/docs/source-requests.md#a-list-across-pages) how a request follows Stripe’s pages.

## Set it up

1. Install Legato and connect your local agent, or use the bundled `legato` command. See [Quickstart](https://legatobar.com/docs/quickstart.md).
2. In Stripe’s Dashboard, open **Developers → API keys** and click **Create restricted key**. Set Balance, Charges, Customers, Disputes, Events, Invoices, Payouts and Subscriptions to **Read**, leave the rest at **None**, and create it. Never paste it into an agent chat. A key made in test mode shows your test data.
3. Download the two pages. They work as they are: keep the API address and the mappings.
4. Add them using the agent prompt, or run `/Applications/Legato.app/Contents/Helpers/legato set stripe stripe.json`, then the same for `stripe-payments`. Keep those page IDs: the pages link to each other by them. Don’t replace an existing page without reading it first.
5. In Settings → Secrets, save the key under `stripe`, bound to `api.stripe.com`. Both pages use it. You can also link a [1Password reference](https://legatobar.com/docs/1password.md).
6. Open each page and check its source status. If Stripe refused a request, its message there names the permission the key is missing; add it to the key in Stripe.

### Prompt for your agent

```prompt
Add 2 Legato pages for Stripe, starting from https://legatobar.com/examples/stripe.json, https://legatobar.com/examples/stripe-payments.json. Use the page IDs stripe, stripe-payments if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.

Add both pages as they are, keeping their page IDs. I’ll save my Stripe restricted key as stripe in Settings → Secrets myself. Don’t use a secret key, and don’t change anything in Stripe to test them.

Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.
```

### Download the pages

- [Download Stripe (stripe.json)](https://legatobar.com/examples/stripe.json)
- [Download Payments (stripe-payments.json)](https://legatobar.com/examples/stripe-payments.json)

## Questions

### What counts as gross volume and net?

Gross volume is what the month’s payments took, before fees and refunds: a payment captured for less than it held counts what was captured, and a pending payment that later failed comes off. Net after fees is what those payments, refunds, disputes and Stripe’s fees left in your balance, before payouts. Both come from your balance movements, so a payment counts on the day Stripe took it. Days are your Mac’s days, so totals near midnight can differ from Stripe’s Dashboard if it’s set to another time zone.

### What happens in a very busy month?

The month’s figures read up to 2,000 balance movements, and the Payments page up to 1,000 payments. Past that, Gross volume and the month’s figures under it say they come from the newest 2,000 movements, so the month’s first days look quieter than they were, and the Payments page says so and links to Stripe’s Dashboard. Disputes and open invoices are read up to 500 each; past that, Account says the invoices owed are at least what it shows, and Details stays orange and sends you to Stripe to check the disputes. If a request fails partway, or Stripe sends a page that isn’t whole, the cards keep their last complete answer.

### Why does a dispute turn the page red?

Stripe gives you until a deadline to respond, and a dispute you don’t answer is lost. The page goes orange while one waits and red two days before its deadline. Answer it in Stripe’s Dashboard: the row opens it there.

### Why is a payout I expected missing?

Next payout shows payouts Stripe has already made and are on their way. A payout that’s still only planned by your payout schedule isn’t one yet, so the card says none is on the way until Stripe creates it.

### Can the pages refund or cancel anything?

No. They have no buttons, and a restricted key with Read access can’t change anything. Make refunds, payouts and dispute responses in Stripe.

## Verification

On November 15, 2026, every request the pages make went through Legato’s own fetcher to Stripe’s API (`2026-09-30.endive`) in test mode, with a test secret key, on an account filled with made-up customers, payments, refunds, disputes, subscriptions and an open invoice. That checked each answer’s fields, the health card with disputes waiting, every card on both pages, the month before, and following Stripe’s pages five at a time. A restricted key wasn’t tried, so the permissions above are the resources the pages read, not a tested list. A failed payout, an overdue invoice, payments that are off, other currencies, partial captures and a month past the page limits are checked by tests with made-up answers. Illustrations use made-up readings. See the [service index](https://legatobar.com/services/) for other examples.
