# Invoice creation from an order

URL: https://shoptet.dev/news/api/invoice-creation-from-an-order

November 15, 2021 · One min read
Pavel Husa

We have introduced a new endpoint to [create an invoice from an order](https://api.docs.shoptet.com/shoptet-api/openapi/invoices/createinvoicefromorder) . This emulates an action from the administration. Given an order, API creates and order by copying all applicable attributes from the header as well as all items. Several values can be specified or filled by default values – see the API documentation for a detailed request items' description. The response returns the created invoice in the same format as [Order detail](https://api.docs.shoptet.com/shoptet-api/openapi/invoices/getinvoicedetail) endpoint. Only one invoice can be generated from an order using this endpoint.

**Tags:**
- [API](/news/tags/api/)
