Skip to content

Get Attachments

Xero

Xero

Get Attachments

Retrieve the list of attachments uploaded against a Xero document such as an invoice, receipt, contact, or purchase order.

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 attachments. (options: Invoices, Receipts, CreditNotes, RepeatingInvoices, BankTransactions, BankTransfers, Contacts, Accounts, ManualJournals, PurchaseOrders, Quotes)
document_idtextRequiredGUID of the parent document (for example InvoiceID, ContactID, or ReceiptID).

Outputs

Name Type Description
statusCodenumberHTTP status code from the Xero API response.
bodyobjectStructured Xero response containing attachment metadata.
Attachmentsarray of objectAttachments uploaded against the parent document.
AttachmentIDtextXero attachment identifier.
FileNametextAttachment filename.
UrltextURL that can be used to download the attachment content.
MimeTypetextMIME type of the attachment.
ContentLengthtextAttachment size in bytes as returned by Xero.
IncludeOnlineyes/noWhether the attachment is included with the online invoice view.