Invoice → Download
AI-generatedSummary
Downloads Vodafone invoice PDFs per contract, optionally filtered by month/year, and returns each invoice as a binary PDF with metadata.
Inputs
- invoiceCount — Maximum number of matching latest invoice PDFs to download per contract (default: 1, min: 1).
- filterByMonthYear — When true, only invoices whose invoice date matches the specified month and year are considered (default: false).
- invoiceMonth — Invoice month (1-12) to filter by; used when filterByMonthYear is true (default: 1).
- invoiceYear — Invoice year to filter by; used when filterByMonthYear is true (default: current year).
Output shape
Each downloaded invoice yields an item with JSON metadata and binary PDF data. If no invoices match, a single item with a message and contract summary is returned.
Metadata includes contract ID/name, customer ID, invoice number/date/due/amount, document ID/category/subtype, MIME type (PDF), and generated filename. Binary data is the Base64‑decoded PDF file.
Examples
Example 1: Download the most recent invoice for each contract
invoiceCount: 1, filterByMonthYear: false
Example 2: Download up to three January 2026 invoices per contract
invoiceCount: 3, filterByMonthYear: true, invoiceMonth: 1, invoiceYear: 2026