Xero + icon

Xero +

Consume Xero API

Attachment → Upload Attachment

AI-generated

Summary

Upload a file attachment to a specified transaction within a chosen Xero organization and endpoint (Invoices, Bank Transactions, or Bank Transfers).

Inputs

  • Organization Name or ID (required) — Select the Xero organization or specify its ID where the attachment will be uploaded.
  • Endpoint (required) — Choose the type of transaction to attach the file to: Invoices, Bank Transactions, or Bank Transfers.
  • Transaction ID (required) — Provide the ID of the specific transaction (e.g., InvoiceID or BankTransactionID) that will receive the attachment.
  • Binary Property (required) — Specify the name of the binary property in the input data containing the file to upload.
  • File Name — Optionally specify the filename for the attachment; if left empty, the filename from the binary data will be used.

Output shape

a single JSON object representing the uploaded attachment's metadata as returned from Xero API

The output includes details of the uploaded attachment. The operation requires binary file data and proper IDs to succeed. No pagination or list outputs are involved.

Links

Discussion