Generate FA(3) correction XML
generate_correction_xmlBuild an FA(3) correction invoice (RodzajFaktury KOR). Header amounts are the difference versus the original. Pass beforeLines to emit state-before (StanPrzed) and state-after rows; otherwise lines are the delta. Does not send the invoice to KSeF. Callable without an API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gv | No | Buyer is in a VAT group: 1 yes, 2 no (default). | |
| jst | No | Buyer is a local-government unit: 1 yes, 2 no (default). | |
| iban | No | Polish NRB, 26 digits or PL IBAN. | |
| note | No | ||
| paid | No | ||
| buyer | Yes | ||
| lines | Yes | ||
| place | No | ||
| number | Yes | ||
| reason | Yes | ||
| seller | Yes | ||
| dueDate | No | ||
| currency | No | ISO 4217, default PLN. | |
| paidDate | No | ||
| saleDate | No | ||
| corrected | Yes | ||
| issueDate | Yes | ||
| beforeLines | No | State before correction, same length as lines. Omit to send lines as the difference. | |
| splitPayment | No | Set true to mark MPP (P_18A). | |
| correctionType | No | FA(3) TypKorekty. Default 2. | |
| exemptionBasis | No | Required when any line uses vatRate zw. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||