---
title: "Add an attachment to an invoice"
method: POST
path: "/companies/{companyId}/invoices/{invoiceId}/attachments"
tags: ["invoices"]
---

# Add an attachment to an invoice

`POST /companies/{companyId}/invoices/{invoiceId}/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

Show example of multipart MIME as we do for uploads

**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

**Scope:** `invoices:write`

## Headers

- `Content-Type` string, required

## Response `200`

Attachment added to invoice

- InvoiceAttachment
  - `id` string, uuid
  - `invoiceId` string, uuid
  - `fileName` string

## Other responses

- `400` — Missing required information
- `404` — The requested resource was not found

---

[API](https://skmtc.net/bokio/apis/company-api.md) · [All operations](https://skmtc.net/bokio/apis/company-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bokio/company-api/revisions/1bb5d09ce15e/schema)
