---
title: "Create invoice draft and generate PDF"
method: POST
path: "/invoices/create-and-generate"
tags: ["Invoices"]
---

# Create invoice draft and generate PDF

`POST /invoices/create-and-generate`

Creates a new invoice draft and immediately generates the invoice PDF in one call.

## Request body

- object

## Response `201`

Created and generated

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `429` — Too Many Requests
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.dev/vocal/apis/magic-heidi-invoicing-software-api.md) · [All operations](https://skmtc.dev/vocal/apis/magic-heidi-invoicing-software-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vocal/magic-heidi-invoicing-software-api/revisions/591ae048f0a0/schema)
