# stripe.year.download

Download Stripe for one fiscal year, for { period, format (zip default, xlsx or pdf) }. The ZIP holds an Excel workbook (summary, charges with their fee and GST/HST when known, refunds, disputes, fees by month, payouts and whether each is matched to a bank deposit), the same lists as CSV files, and Stripe's original records when they fit (its README says when they were left out). xlsx is the workbook alone and pdf a short summary. Returns a short-lived download. Each request builds a fresh file and is audited with counts only.

`POST /api/v1/accounting/stripe.year.download`

Permissions: `accounting:read`, `accounting:write` · Roles: admin, finance

MCP tool: `accounting_stripe_year_download`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `period` | object | Yes | The period to cover. No other fields. |
| `period.from` | string | Yes | The first date to include, as YYYY-MM-DD. |
| `period.to` | string | Yes | The last date to include, as YYYY-MM-DD. |
| `period.kind` | enum | Yes | Which kind of record or job this is. One of: `corporate`, `gst_hst`. |
| `format` | enum |  | One of: `zip`, `xlsx`, `pdf`. Default `"zip"`. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/stripe.year.download \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "period": {
    "from": "2026-09-01",
    "to": "2026-09-30",
    "kind": "corporate"
  }
}'
```

Reference page: https://app.getoatmilk.com/docs/api/stripe.year.download
