# Calendly unofficial API: download invoices

Automatically download invoices on calendly.com. List Calendly billing invoices for the signed-in account and download each invoice's PDF into the browser's download directory. Requires an existing Calendly session — run calendly.com/login_with_google first; this script never signs in itself and fails with "Not signed in" otherwise. Returns per invoice date, title, amount, currency, status, invoiceId, chargeId, filename and path (path is null when no PDF was available for that charge). Org admin only.

- Site: calendly.com
- Address: `reduck/calendly.com/download_invoices`
- Updated: 2026-10-22 (v12)
- Author: Reduck AI (reduck)

## Run it

Ask an AI agent connected to Reduck over MCP (`https://mcp.reduck.ai/mcp`) to run `reduck/calendly.com/download_invoices`, or run it from a terminal:

```bash
npx @reduck-ai/cli@latest run --script reduck/calendly.com/download_invoices
```

## Input

It takes no input.

## Output

- `total` (integer, required): Number of invoices (charges) found.
- `invoices` (array, required)
- `attempted` (integer, required): How many of those invoices exposed a downloadUrl and so were actually attempted.
- `downloaded` (integer, required): How many PDFs were genuinely captured to disk (path non-null). When attempted > 0 and this is 0, the script throws instead of returning, because a download script that captured nothing has not done its job.

## FAQ

### What does "Calendly unofficial API: download invoices" do?

List Calendly billing invoices for the signed-in account and download each invoice's PDF into the browser's download directory. Requires an existing Calendly session — run calendly.com/login_with_google first; this script never signs in itself and fails with "Not signed in" otherwise. Returns per invoice date, title, amount, currency, status, invoiceId, chargeId, filename and path (path is null when no PDF was available for that charge). Org admin only.

### How do I automatically download invoices on calendly.com?

Ask an AI agent connected to Reduck to run reduck/calendly.com/download_invoices, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/calendly.com/download_invoices

### Is there a calendly.com API to download invoices?

You do not need one. "Calendly unofficial API: download invoices" drives the real calendly.com pages in a browser, so it works whether or not calendly.com offers an API for this.

### What information do I need to provide?

Nothing. It takes no input.

### What does it return?

It returns total, invoices, attempted, downloaded.

### Do I need to be logged in to calendly.com?

Yes. It acts as you on calendly.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the calendly.com cookies saved by the Reduck extension.

### Does it change anything on calendly.com, or only read data?

It makes changes on calendly.com, like sending, posting, booking or buying something.

### How do I run it?

Ask an AI agent connected to Reduck to run reduck/calendly.com/download_invoices, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/calendly.com/download_invoices

### Who maintains it?

It is part of Reduck's official curated catalogue.

Source: https://reduck.ai/explore/scripts/reduck/calendly.com/download_invoices
