Allows you to create an Attachment on invoices or purchase bills by it's filename

PUT {{baseUrl}}/Invoices/:InvoiceID/Attachments/:FileName?IncludeOnline=false

Request Params

KeyDatatypeRequiredDescription
IncludeOnlinebooleanAllows an attachment to be seen by the end customer within their online invoice

Request Body

["<", "b", "y", "t", "e", ">"]

HEADERS

KeyDatatypeRequiredDescription
xero-tenant-idstring(Required) Xero identifier for Tenant
Content-Typestring

RESPONSES

status: OK

{&quot;Id&quot;:&quot;971fbd18-c850-453a-825f-63f2fee096ee&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1552330001318)/&quot;,&quot;Attachments&quot;:[{&quot;AttachmentID&quot;:&quot;5a500c1a-5a02-48de-939e-1d234fd170d4&quot;,&quot;FileName&quot;:&quot;sample5.jpg&quot;,&quot;Url&quot;:&quot;https://api.xero.com/api.xro/2.0/Invoices/4074292c-09b3-456d-84e7-add864c6c39b/Attachments/sample5.jpg&quot;,&quot;MimeType&quot;:&quot;image/jpg&quot;,&quot;ContentLength&quot;:2878711}]}