---
title: "Create an invoice for an existing order. This request is extra throttled by order and api key to a maximum of 1 per 5 minutes."
method: POST
path: "/api/v1/orders/CreateInvoice/{id}"
tags: ["Orders", "Invoice"]
---

# Create an invoice for an existing order. This request is extra throttled by order and api key to a maximum of 1 per 5 minutes.

`POST /api/v1/orders/CreateInvoice/{id}`

## Path parameters

- `id` integer, required

## Query parameters

- `includeInvoicePdf` boolean
- `templateId` integer
- `sendToCloudId` integer

## Response `200`

OK

- RechnungsdruckWebAppControllersApiApiResultOfRechnungsdruckWebAppControllersApiInvoice
  - `ErrorMessage` string
  - `ErrorCode` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31
  - `ErrorDescription` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31
  - `Data` RechnungsdruckWebAppControllersApiInvoice
    - `OrderNumber` string
    - `InvoiceNumber` string
    - `PDFData` string, byte
    - `InvoiceDate` string, date-time
    - `TotalGross` number, double
    - `TotalNet` number, double
    - `PdfDownloadUrl` string

---

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