---
title: "Upload an appendix for a customer invoice"
method: POST
path: "/api/external/v2/customer_invoices/{customer_invoice_id}/appendices"
tags: ["Customer Invoices"]
---

# Upload an appendix for a customer invoice

`POST /api/external/v2/customer_invoices/{customer_invoice_id}/appendices`

## Request

- Base URL: `https://app.pennylane.com`
- URL: `https://app.pennylane.com/api/external/v2/customer_invoices/{customer_invoice_id}/appendices`
- Auth: OAuth 2
  - Authorization code: `https://app.pennylane.com/oauth/authorize`
  - Token URL: `https://app.pennylane.com/oauth/oauth/token` scopes: `customer_invoices:all`

Upload a file that will be an appendix attached to a customer invoice.

Note that this will not upload a file into the DMS (GED).


> ℹ️
> This endpoint requires the following scope: `customer_invoices:all`

## Path parameters

- `customer_invoice_id` integer, required

## Headers

- `X-Company-Id` string

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: The appendix file you want to upload. Allowed content types: - image/png - image/jpeg - image/tiff - image/bmp - image/gif - application/pdf

## Response `201`

Returns the created appendix

- object
  - `id` integer, required
  - `url` string, required: URL to the uploaded file.
  - `filename` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access to this resource forbidden
- `404`: The resource was not found
- `422`: Unprocessable content

## Changes

- **2026-11-03** `871f863307e5`: 1 info
  - added the new optional `header` request parameter `X-Company-Id`

[Operation history](https://skmtc.dev/pennylane/apis/company-v2/changes/api/external/v2/customer_invoices/:customer_invoice_id/appendices/post.md)

---

[API](https://skmtc.dev/pennylane/apis/company-v2.md) - [All operations](https://skmtc.dev/pennylane/apis/company-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/company-v2/revisions/871f863307e5?raw)
