ksef_batch_open
Open a batch session to upload multiple invoices to KSeF. Provide file size, SHA-256 hash, and part list to receive a reference number and pre-signed upload URLs.
Instructions
Otwórz sesję batch do wysyłania wielu faktur jednocześnie (API v2). Wymaga aktywnej sesji KSeF. Podaj rozmiar pliku, hash i listę części. Zwraca numer referencyjny i pre-signed URLs do uploadu części.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fileSize": "<fileSize>",
"fileHash": "<fileHash>",
"fileParts": "<fileParts>"
},
"name": "ksef_batch_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileHash | Yes | SHA-256 Base64 hash pliku paczki | |
| fileSize | Yes | Rozmiar pliku paczki w bajtach | |
| formCode | No | Kod formularza (domyślnie 'FA') | |
| fileParts | Yes | Lista części pliku paczki |