younifyd
Menu

Get Invoice Attachment By Id

Retrieves a specific attachment from a specific invoices or purchase bills by using a unique attachment Id

GET/Invoices/{InvoiceID}/Attachments/{AttachmentID}

Use it in a workflow

  1. Add a step and choose the Xero connector.
  2. Pick the Get Invoice Attachment By Id action (under Xero).
  3. Fill in the fields below, then reference the result from later steps as {{getInvoiceAttachmentById.response.data}}.

Request

Path parameters

InvoiceIDstring (uuid)required

Unique identifier for an Invoice

AttachmentIDstring (uuid)required

Unique identifier for Attachment object

Headers

xero-tenant-idstringrequired

Xero identifier for Tenant

contentTypestringrequired

The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf

Response

Returns 200 with a string (binary). Read it in later steps with {{getInvoiceAttachmentById.response.data.<field>}}.

Need more? See the Xero guide for connection setup and behaviour shared by every action.