spv_documents_download
Downloads the archived PDF of an SPV document to a designated local file. Provides clear error states when the document is pending or has been purged.
Instructions
Download the archived PDF of an SPV document to a local file. Fails with SPV_FILE_PENDING when the agent has not fetched it yet, or SPV_FILE_PURGED when retention removed it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | SPV document UUID | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| outputPath | Yes | Local file path to write the PDF to |