iFirma: Issue invoice
ifirma_issue_invoiceiFirma: Issue a domestic invoice for a contractor with one or more lines. Issues the invoice with the next number in the series, the same as "Wystaw". Lines need name, quantity, unit, unit price and VAT rate; a line that is not exempt may also need a PKWiU code. The invoice is not sent to KSeF or to the buyer until you call send_invoice_to_ksef or send_invoice_email. By default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Lines: {name, quantity, unit, unit_price, vat_rate}. vat_rate is 23, 8, 5, 0 or exempt. | |
| notes | No | Remarks printed on the invoice, up to 1000 characters. | |
| due_date | No | YYYY-MM-DD. | |
| sale_date | No | YYYY-MM-DD. Default: issue date. | |
| issue_date | No | YYYY-MM-DD. Default: today. | |
| contractor_id | Yes | Contractor ID from list_contractors or create_contractor. | |
| calculate_from | No | net or gross: which price you give. Default: net. | |
| payment_method | No | transfer, cash or card. |