Download Zapier invoice
Automatically download Zapier invoice on zapier.com. Download a single Zapier invoice as PDF, by href from zapier.com/list_invoices. Each invoice is an HTML page with no native PDF, so this renders it to PDF via CDP. Returns the PDF bytes as base64 plus a filename.
Input
href requiredInvoice detail page href from zapier.com/list_invoices.
Output
filename requiredcontentBase64 requiredFAQ
Zapier login (Google SSO)
Log into Zapier using Sign in with Google, ending on the Zapier app home. Handles the Google account chooser and the confirmation step, and returns straight away if you are already signed in. Optionally pass which Google account to use.
List Zapier invoices
List Zapier billing invoices from Settings > Billing & usage > Billing settings > Invoices. Returns total and invoices (status, date, amount, invoice_id, href) — metadata only. Feed a row's href to zapier.com/download_invoice to get that invoice as a PDF (Zapier has no native PDF, so that script renders the invoice page to one). An account with no billing history returns an empty list. Requires a Zapier session with billing access.
Zapier whoami
Report which Zapier account this browser is signed in as: email and name, from Zapier's own session endpoint. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Zapier scripts.
