Download statement invoice PDF
download_statement_invoiceDownload a statement invoice PDF to a specified absolute file path. The binary PDF is written without overwriting existing files, returning the byte count.
Instructions
Download the invoice PDF for a statement. save_to_path is REQUIRED (the PDF is binary) and must be an absolute path whose parent directory exists; the PDF is written there — an existing file is never overwritten (returns FILE_EXISTS) — and the tool returns the byte count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_to_path | Yes | Absolute path (existing parent dir) to write the PDF to. Required. | |
| invoice_number | Yes | The statement invoice number. |