Offline Batch Send
POST /invoices/{environment}/offline/send-batch​
Sends all signed/pending offline invoices as a batch to KSeF. Requires KSeF to be available again (outage ended).
Path Parameters​
| Parameter | Type | Required | Description |
|---|---|---|---|
environment | string | ✅ | test, demo or prod |
Response 200​
{
"referenceNumber": "20260115-BATCH-XXXXXXXX",
"totalCount": 5,
"status": "processing"
}
| Field | Type | Description |
|---|---|---|
referenceNumber | string | KSeF batch reference number |
totalCount | integer | Number of invoices in the batch |
status | string | Batch status (typically processing) |
Error Codes​
| Code | Description |
|---|---|
| 401 | Unauthorized |
| 404 | No invoices to send (queue empty) |
| 409 | KSeF still unavailable (outage/simulation active) |
| 502 | KSeF error |