Export batch summary. Response has Content-Type: application/pdf.

By default, exports all available batch document information into the PDF.

To filter batch info to export by user and/or date range, use GET /api/batch_documents with corresponding filter params first, and then make GET /api/batch_documents/export request passing the cookies received with the /api/batch_documents response.

Example

Step 1. Filter batch documents

curl -H 'Authorization: Bearer TOKEN' -c PATH_TO_COOKIE_FILE https://app.bezala.com/api/batch_documents?date_range=01%2F01%2F2022%20-%2031%2F12%2F2022

Step 2. Export filtered batch documents into PDF

curl -H 'Authorization: Bearer TOKEN' -b PATH_TO_COOKIE_FILE --output PATH_TO_PDF https://app.bezala.com/api/batch_documents/export