---
title: "Upload Invoice PDF"
method: POST
path: "/invoices/{invoiceId}/pdf"
tags: ["Invoices"]
---

# Upload Invoice PDF

`POST /invoices/{invoiceId}/pdf`

## Request

- Base URL: `https://api.upflow.io/v1`
- URL: `https://api.upflow.io/v1/invoices/{invoiceId}/pdf`
- Auth: API key in header `X-Api-Key` and API key in header `X-Api-Secret`

You can either send the PDF in a multipart/form-data request (i.e. a regular "file upload" in HTML) or a JSON request with the file encoded in base64.

## Request body

- PDFImportAttr: Attributes for importing a PDF via JSON.
  - `data` string, byte, required: Base64 encoded string for the PDF file. Mandatory when using application/json.

## Response `204`

PDF uploaded successfully.

---

[API](https://skmtc.dev/upflow/apis/upflow-api.md) - [All operations](https://skmtc.dev/upflow/apis/upflow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upflow/apis/upflow-api/revisions/898a98ca0587?raw)
