Skip to content

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_iddropdownRequiredThe Xero organisation (tenant) to target. Loaded dynamically from the connected account's authorised organisations.
endpointselectRequiredXero parent endpoint for the document that owns the attachment. (options: Invoices, Receipts, CreditNotes, RepeatingInvoices, BankTransactions, BankTransfers, Contacts, Accounts, ManualJournals, PurchaseOrders, Quotes)
document_idtextRequiredGUID of the parent document (for example InvoiceID, ContactID, or ReceiptID).
filenametextRequiredAttachment filename to download. Brackets in filenames must be URL-encoded when required by Xero.

Outputs

Name Type Description
statusCodenumberHTTP status code from the Xero API response.
headersobjectResponse headers returned by Xero.
bodyfileDownloaded attachment content as a file value with base64, filename, mimeType, and size.