Download attachment
download_attachmentDownload a receipt or invoice attachment in original, cropped, or thumbnail format. Small images are returned inline for quick access.
Instructions
Download an attachment (receipt/invoice) to a local file. Type 'original' is the uploaded file, 'cropped' is auto-cropped, and 128x128/256x256/512x512 are square image thumbnails. Small images are also returned inline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Attachment id | |
| type | Yes | Which rendition to download | |
| savePath | No | Where to save the file. Defaults to the system temp directory. |