---
title: "[BETA] Import e-invoices"
method: POST
path: "/api/external/v2/e-invoices/imports"
tags: ["E-Invoices"]
deprecated: true
---

# [BETA] Import e-invoices

`POST /api/external/v2/e-invoices/imports`

> **Deprecated.**

This endpoint allows you to import an e-invoice.

> ‼️
> This endpoint is **DEPRECATED**
> As an alternative, please use either:
>   - [Import a customer e-invoice](https://pennylane.readme.io/reference/createcustomerinvoiceeinvoiceimport) endpoint
>   - [Import a supplier e-invoice](https://pennylane.readme.io/reference/createsupplierinvoiceeinvoiceimport) endpoint

> ⚠️ **UBL and CII XML support is in alpha.**
> A 201 response confirms the file was accepted and parsed, but invoices imported via
> standalone UBL or CII XML have two known limitations:
> - The uploaded file is **not displayed** in the app — no document preview is generated yet for these formats.
> - The invoice is **not recognized as an electronic invoice** within Pennylane.
>
> Factur-X PDF remains the recommended format for production use.

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

## Response `201`

E-invoice imported successfully

- object
  - `id` integer, required
  - `url` string, required — The URL of the imported e-invoice. This can be used to access the document later.

## Other responses

- `400` — Bad request
- `401` — Access token is missing or invalid
- `403` — Access to this resource forbidden
- `422` — Unprocessable content

---

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