Get Attachment Content
Xero
Xero
Get Attachment Content
Download the raw content of a specific attachment from a Xero document.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
xero_tenant_id | dropdown | Required | The Xero organisation (tenant) to target. Loaded dynamically from the connected account's authorised organisations. |
endpoint | select | Required | Xero parent endpoint for the document that owns the attachment. (options: Invoices, Receipts, CreditNotes, RepeatingInvoices, BankTransactions, BankTransfers, Contacts, Accounts, ManualJournals, PurchaseOrders, Quotes) |
document_id | text | Required | GUID of the parent document (for example InvoiceID, ContactID, or ReceiptID). |
filename | text | Required | Attachment filename to download. Brackets in filenames must be URL-encoded when required by Xero. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code from the Xero API response. |
headers | object | Response headers returned by Xero. |
body | file | Downloaded attachment content as a file value with base64, filename, mimeType, and size. |