Przejdź do głównej zawartości

Batch service: Submit batch

Ta treść nie jest jeszcze dostępna w Twoim języku.

Prepare and submit a batch in one call.

Called on auth.batch
Source src/ksef2/services/batch.py:236 Generated from async source src/ksef2/services/async_batch.py
auth.batch.submit_batch
auth.batch.submit_batch(*, invoices: Iterable[BatchInvoice], form_code: FormSchema = FormSchema.FA3, offline_mode: bool = False, max_part_size: int = MAX_BATCH_PART_SIZE) -> BatchSessionState

Returns

BatchSessionState

Parameters

invoices Iterable[BatchInvoice]
required / keyword-only
form_code FormSchema
default FormSchema.FA3 / keyword-only
offline_mode bool
default False / keyword-only
max_part_size int
default MAX_BATCH_PART_SIZE / keyword-only
Called on auth.batch
Source src/ksef2/services/async_batch.py:238 Authored source
await auth.batch.submit_batch
await auth.batch.submit_batch(*, invoices: Iterable[BatchInvoice], form_code: FormSchema = FormSchema.FA3, offline_mode: bool = False, max_part_size: int = MAX_BATCH_PART_SIZE) -> BatchSessionState

Returns

BatchSessionState

Parameters

invoices Iterable[BatchInvoice]
required / keyword-only
form_code FormSchema
default FormSchema.FA3 / keyword-only
offline_mode bool
default False / keyword-only
max_part_size int
default MAX_BATCH_PART_SIZE / keyword-only