DownloadAttachment
Downloads an attachment file from QuickBooks Online, such as a document or receipt that is linked to a transaction or entity.
Input
| Name | Type | Accepts Output Streams | Description |
| AttachmentId | String | False | Specifies the unique identifier (Id) of the attachment to download (for example, 5000000000000009867). This input is required. |
| DownloadFolder | String | False | Specifies the folder path where the downloaded attachment file is saved. |
| FileStream | String | True | Specifies a stream object where the downloaded file data is written when the DownloadFolder input is not provided. Use this input to handle the output programmatically instead of creating a file on disk. |
Result Set Columns
| Name | Type | Description |
| FileName | String | Specifies the name of the downloaded attachment file. |
| Base64EncodedData | String | Specifies the Base64-encoded content of the attachment file when neither the download folder nore nor the file stream is provided. |