# Complete orders snapshot

URL: https://shoptet.dev/news/api/complete-orders-snapshot

April 25, 2022 · One min read
Pavel Kácha

Many addons need to retrieve all order to perform their tasks. Until now, the only possible way was to iteratively call [order detail](https://api.docs.shoptet.com/shoptet-api/openapi/orders/getorderdetail) endpoint for each order one by one. To make this task easier, we have introduced a new endpoint [List of all orders](https://api.docs.shoptet.com/shoptet-api/openapi/orders/getlistofallorders) .

Retrieval of all the order details might take a longer time and produce rather large output. That is why we have introduced [asynchronous endpoints](/addons/documentation/asynchronous-requests/) . When an asynchronous endpoint is called, a background job is submitted and only its id returned. Once the job is completed, a webhook is called and the response can be downloaded.

In case of [List of all orders](https://api.docs.shoptet.com/shoptet-api/openapi/orders/getlistofallorders) endpoint, the data is stored using [JSON Lines](https://jsonlines.org/) . Each line contains one product in JSON format. The same data and schema as the [order detail](https://api.docs.shoptet.com/shoptet-api/openapi/orders/getorderdetail) is used. Event the optional sections requestable by parameter `?include=` are identical.

When you need only subset of all orders you can use additionel filteres `creationTimeFrom` , `creationTimeTo` , `codeFrom` , `codeTo` send as additional query parameters.

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