dolibarr_create_invoice
Create a draft invoice header for a client by providing their ID. Optionally link it to a proposal or set payment terms. Add line items separately.
Instructions
Create a new invoice header (draft). Add line items afterwards with dolibarr_add_invoice_line, then validate it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| socid | Yes | Thirdparty (client) ID | |
| date | No | Unix timestamp; defaults to now if omitted | |
| note_public | No | ||
| note_private | No | ||
| cond_reglement_code | No | ||
| fk_proposal | No | Source proposal ID, if converting a quote to invoice |