Allows you to create Attachments on CreditNote by file name

PUT {{baseUrl}}/CreditNotes/:CreditNoteID/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;22a8d402-5dea-40ed-9d01-26896429f649&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1551822953320)/&quot;,&quot;Attachments&quot;:[{&quot;AttachmentID&quot;:&quot;91bbae3f-5de5-4e3d-875f-8662f25897bd&quot;,&quot;FileName&quot;:&quot;sample5.jpg&quot;,&quot;Url&quot;:&quot;https://api.xero.com/api.xro/2.0/CreditNotes/249f15fa-f2a7-4acc-8769-0984103f2225/Attachments/sample5.jpg&quot;,&quot;MimeType&quot;:&quot;image/jpg&quot;,&quot;ContentLength&quot;:2878711}]}