api.routes.invoice.get ====================== .. py:module:: api.routes.invoice.get Attributes ---------- .. autoapisummary:: api.routes.invoice.get.logger api.routes.invoice.get.router Functions --------- .. autoapisummary:: api.routes.invoice.get.get_invoice_pdf Module Contents --------------- .. py:data:: logger .. py:data:: router .. py:function:: get_invoice_pdf(hash: str) :async: Retrieve a PDF invoice file by its hash. :param hash: The hash of the invoice file to retrieve (directory name in invoices_backup) :returns: The PDF file as a downloadable response :rtype: FileResponse :raises HTTPException: - 422 if no backup directory found with the given hash - 422 if no PDF file found in the directory for the given hash