Actions35
- Account Actions
- Attachment Actions
- Bank Transaction Actions
- Bank Transfer Actions
- Contact Actions
- History and Note Actions
- Invoice Actions
- Manual Journal Actions
- Organisation Actions
- Report Actions
Attachment → Get Attachment
AI-generatedSummary
Retrieve a specific attachment file from a chosen Xero organization's invoice, bank transaction, or bank transfer by specifying the transaction ID and the attachment filename.
Inputs
- Organization Name or ID (required) — Select or provide the Xero organization (tenant) from which to retrieve the attachment.
- Endpoint (required) — Choose the type of transaction the attachment belongs to: Invoices, Bank Transactions, or Bank Transfers.
- Transaction ID (required) — Provide the unique identifier of the transaction (Invoice ID, BankTransaction ID, etc.) where the attachment is stored.
- File Name (required) — Specify the exact filename of the attachment to retrieve.
Output shape
a binary file representing the requested attachment.
The output directly returns the attachment file content from Xero. The operation requires all input fields to be present. Errors will occur if the specified attachment or transaction is not found or access is unauthorized.