Skip to content

Batch service: Open session

Open a batch session for an already prepared package.

Called on auth.batch
Source src/ksef2/services/batch.py:131 Generated from async source src/ksef2/services/async_batch.py
auth.batch.open_session
auth.batch.open_session(*, prepared_batch: PreparedBatch) -> BatchSessionClient

Returns

BatchSessionClient

Parameters

prepared_batch PreparedBatch
required / keyword-only
Called on auth.batch
Source src/ksef2/services/async_batch.py:133 Authored source
auth.batch.open_session
auth.batch.open_session(*, prepared_batch: PreparedBatch) -> _AwaitableSession[AsyncBatchSessionClient]

Returns

_AwaitableSession[AsyncBatchSessionClient]

Parameters

prepared_batch PreparedBatch
required / keyword-only