---
title: "Upload Credit Note PDF"
method: POST
path: "/credit_notes/{creditNoteId}/pdf"
tags: ["Credit Notes"]
---

# Upload Credit Note PDF

`POST /credit_notes/{creditNoteId}/pdf`

## Request

- Base URL: `https://api.upflow.io/v1`
- URL: `https://api.upflow.io/v1/credit_notes/{creditNoteId}/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 (ie. 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)
