Create an invoice from a proforma
smartbill_create_invoice_from_estimateDestructive
Create an invoice from an existing proforma (client and lines are copied from it). Default is a DRAFT; with draft=false the invoice is ISSUED with the next number of the series and may be transmitted to e-Factura / ANAF. Stock is not discharged. POST /invoice/v2 (useEstimateDetails).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Default TRUE: the document is saved as a draft without a number, to be finalized in SmartBill Cloud. Pass false ONLY when the user explicitly wants it ISSUED now: that takes the next number of the series, cannot be undone from the API, and may be transmitted to e-Factura / ANAF depending on the account setup. | |
| issue_date | No | Issue date yyyy-mm-dd (default today). | |
| series_name | Yes | Invoice series to issue on. | |
| estimate_number | Yes | Number of the source proforma as text. | |
| estimate_series | Yes | Series of the source proforma. |