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_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 attachments. (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). |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code from the Xero API response. |
body | object | Structured Xero response containing attachment metadata. |
Attachments | array of object | Attachments uploaded against the parent document. |
AttachmentID | text | Xero attachment identifier. |
FileName | text | Attachment filename. |
Url | text | URL that can be used to download the attachment content. |
MimeType | text | MIME type of the attachment. |
ContentLength | text | Attachment size in bytes as returned by Xero. |
IncludeOnline | yes/no | Whether the attachment is included with the online invoice view. |