ksef_correction_zero
Create a zero-value correction invoice from KSeF data by setting all item quantities to zero. Eliminates the need for an original local draft.
Instructions
Utwórz korektę zerującą na podstawie danych faktury z KSeF. Zeruje wszystkie pozycje (ilość → 0). Nie wymaga lokalnego draftu oryginału.
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": {
"ksefNumber": "<ksefNumber>",
"invoiceNumber": "<invoiceNumber>",
"issueDate": "<issueDate>",
"sellerNip": "<sellerNip>",
"sellerName": "<sellerName>",
"buyerNip": "<buyerNip>",
"buyerName": "<buyerName>",
"correctionReason": "<correctionReason>",
"items": "<items>"
},
"name": "ksef_correction_zero"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Pozycje oryginalnej faktury | |
| buyerNip | Yes | NIP nabywcy | |
| currency | No | Waluta (domyślnie PLN) | |
| sellDate | No | Data sprzedaży oryginału (YYYY-MM-DD) | |
| buyerName | Yes | Nazwa nabywcy | |
| issueDate | Yes | Data wystawienia oryginału (YYYY-MM-DD) | |
| sellerNip | Yes | NIP sprzedawcy | |
| ksefNumber | Yes | Numer KSeF faktury korygowanej | |
| sellerName | Yes | Nazwa sprzedawcy | |
| buyerAddress | No | Adres nabywcy | |
| exchangeRate | No | Kurs waluty (PLN za 1 jednostkę) — wymagany dla faktur walutowych, generuje P_14_xW | |
| forcedVatPln | No | Ręczne nadpisanie P_14_xW wg stawki VAT, np. {"1": -3197.74} → P_14_1W=-3197.74. Dla KOR-do-KOR. | |
| invoiceNumber | Yes | Numer oryginalnej faktury | |
| sellerAddress | No | Adres sprzedawcy | |
| correctionReason | Yes | Powód korekty (min. 3 znaki) |