---
title: "Create invoice with file upload"
method: POST
path: "/api/invoices"
tags: ["invoices"]
---

# Create invoice with file upload

`POST /api/invoices`

Create a new invoice with optional file upload.

Translates VBA: UploadInvoice (multipart/form-data)

Accepts both database column names (A, B, F, G, H, etc.) and human-readable
field names (emitente_nif, numero, atcud, etc.) from the frontend.

## Headers

- `x-api-token` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
