Skip to content

Invoice service: Wait for export package

Poll export status until KSeF exposes a downloadable package.

Called on auth.invoices
Source src/ksef2/services/invoices.py:282 Generated from async source src/ksef2/services/async_invoices.py
auth.invoices.wait_for_export_package
auth.invoices.wait_for_export_package(*, reference_number: str, timeout: float = 120.0, poll_interval: float = 2.0) -> InvoicePackage

Returns

InvoicePackage

Parameters

reference_number str
required / keyword-only
timeout float
default 120.0 / keyword-only
poll_interval float
default 2.0 / keyword-only
Called on auth.invoices
Source src/ksef2/services/async_invoices.py:283 Authored source
await auth.invoices.wait_for_export_package
await auth.invoices.wait_for_export_package(*, reference_number: str, timeout: float = 120.0, poll_interval: float = 2.0) -> InvoicePackage

Returns

InvoicePackage

Parameters

reference_number str
required / keyword-only
timeout float
default 120.0 / keyword-only
poll_interval float
default 2.0 / keyword-only