# Exports

Exports allow to work with documents of several types in several formats.

## General document export

 - [GET /api/export/{type}/{format}](https://api.docs.shoptet.com/shoptet-api/openapi/exports/generaldocumentdownload.md): You can request documents of several types in several formats in combination with settings as includes.
See tables bellow for possibilities and settings. Export is processed asynchronously. 
See how [Asynchronous
requests](https://developers.shoptet.com/asynchronous-requests/) work on our developer's portal.


|Document type       | Document format          | Parameters         | Includes
-------------------- | ------------------------ | ------------------ | ---------------------------------
|invoice             | csvDetail                | codeFrom           | exportWithHistoricalVat          
|                    | xlsDetail                | codeTo             | exportAsForeignCurrency      
|                    | pdf                      | dateFrom           | linkProformaInvoices        
|                    | isdoc                    | dateTo             | descOrder                   
|                    | xmlPohodaCz              | taxDateFrom        |                             
|                    | xmlPohodaSk              | taxDateTo          |                             
|                    | xmlMoneyS3CZ             | currency           |                             
|                    | xmlMoneyS3Sk             |                    |                             
|                    | xlsxSummary              |                    |                             
|                    | csvSummary               |                    |         
|proformaInvoice     | csvDetail                | codeFrom           | exportWithHistoricalVat     
|                    | xlsDetail                | codeTo             | exportAsForeignCurrency     
|                    | pdf                      | dateFrom           |                             
|                    | xmlPohodaCz              | dateTo             |                             
|                    | xmlPohodaSk              | taxDateFrom        |                            
|                    | xmlMoneyS3CZ             | taxDateTo          |                            
|                    | xmlMoneyS3Sk             | currency           |                            
|                    | xlsxSummary              |                   |                             
|                    | csvSummary               |                   |         
|creditNote          | csvDetail                | codeFrom           | exportWithHistoricalVat    
|                    | xlsDetail                | codeTo             | exportAsForeignCurrency    
|                    | pdf                      | dateFrom           |                            
|                    | isdoc                    | dateTo             |                            
|                    | xmlPohodaCz              | taxDateFrom        |                            
|                    | xmlPohodaSk              | taxDateTo          |                            
|                    | xmlMoneyS3CZ             | currency           |                            
|                    | xmlMoneyS3Sk             |                    |                            
|                    | xlsxSummary              |                    |                            
|                    | csvSummary               |                    |        
|proofPayment        | xmlPohodaCz              | codeFrom           | exportWithHistoricalVat    
|                    | xmlPohodaSk              | codeTo             | exportAsForeignCurrency    
|                    | csvDetail                | dateFrom           | onlyClosedProofPayments    
|                    | xlsDetail                | dateTo             |                            
|                    | pdf                      | taxDateFrom        |                            
|                    |                         | taxDateTo           |                            
|                    |                         | currency            |      
|deliveryNote        | csvDetail                | codeFrom           |                            
|                    | xlsDetail                | codeTo             |                            
|                    | pdf                      | dateFrom           |                            
|                    |                          | dateTo             |                            
|                    |                          | taxDateFrom        |                            
|                    |                          | taxDateTo          |                                 


|Include | Does
|------- | -----
|exportWithHistoricalVat | Will export historical rates.
|exportAsForeignCurrency | Currency will be exported as foreign regardless of e-shop settings.
|linkProformaInvoices | Corresponding proforma invoices will be added to export file.
|onlyClosedProofPayments | Exports only finished documents.
|descOrder | Sort as starting from oldest

