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
Key | Datatype | Required | Description |
---|---|---|---|
IncludeOnline | boolean | Allows an attachment to be seen by the end customer within their online invoice |
Request Body
["<", "b", "y", "t", "e", ">"]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
xero-tenant-id | string | (Required) Xero identifier for Tenant | |
Content-Type | string |
RESPONSES
status: OK
{"Id":"971fbd18-c850-453a-825f-63f2fee096ee","Status":"OK","ProviderName":"Provider Name Example","DateTimeUTC":"/Date(1552330001318)/","Attachments":[{"AttachmentID":"5a500c1a-5a02-48de-939e-1d234fd170d4","FileName":"sample5.jpg","Url":"https://api.xero.com/api.xro/2.0/Invoices/4074292c-09b3-456d-84e7-add864c6c39b/Attachments/sample5.jpg","MimeType":"image/jpg","ContentLength":2878711}]}