hostkit_add_invoice_line
Add a line item to an open invoice by specifying product, quantity, price, discount, VAT rate, and exemption reason code.
Instructions
Add a line to an open invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoicing_nif | No | Invoicing VAT ID. | |
| series | No | Document series. Defaults to the configured default series in Hostkit. | |
| id | Yes | Document ID. | |
| invoice_type | No | Invoice type. Defaults to FR in Hostkit. | |
| product_id | Yes | Product ID. | |
| custom_descr | Yes | Line description. | |
| qty | Yes | Quantity. | |
| price | Yes | Unit price. | |
| discount | Yes | Line discount. | |
| vat | Yes | VAT rate. | |
| reason_code | Yes | VAT exemption reason code, or empty string. | |
| region | No | VAT region for auto-created products. | |
| type | No | Product type for auto-created products. |