Xero + icon

Xero +

Consume Xero API

Attachment → Get Attachment

AI-generated

Summary

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.

Links

Discussion