post https://api.bokio.se/companies//invoices//attachments
Adds an attachment to an existing draft invoice. The attachment will be added last in the list of attachments on the invoice. Attached files will appear as additional pages in the final invoice.
Supported file types: jpeg, png and pdf
Sample request for adding an attachment to an invoice using multipart MIME
POST http://api.bokio.se/companies/{companyId}/invoices/{invoiceId}/attachments
Content-Type: multipart/form-data; boundary=----FormBoundary7MA4YWxkTrZu0gW
Authorization: Bearer <token>
------FormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="receipt.png"
Content-Type: image/png
< ./receipt.png
------FormBoundary7MA4YWxkTrZu0gW--
NOTE: The invoice must be in draft status. Maximum file size is 4 MB and all files can't exceed 10 MB. Dimensions must be less than height of 7016 and width of 4960 in pixels.