Generate FA(3) invoice XML
generate_fa3_xmlBuild a sales invoice XML in the FA(3) schema (kodSystemowy FA (3), variant 3) from seller, buyer and line items. Header VAT is computed from the summed net base of each rate. Does not send the invoice to KSeF and does not store it. 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 | ||
| seller | Yes | ||
| dueDate | No | ||
| currency | No | ISO 4217, default PLN. | |
| paidDate | No | ||
| saleDate | No | ||
| issueDate | Yes | ||
| splitPayment | No | Set true to mark MPP (P_18A). | |
| exemptionBasis | No | Required when any line uses vatRate zw. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||