Invoices
Create a draft invoice from a worksheet
Snapshots the referenced worksheet's totals and line items into a new draft invoice. The worksheet MUST belong to the authenticated user's company; cross-tenant requests return 404 (same as direct invoice access).
payment_due_at is optional. When omitted the server computes today + the company's default payment term (e.g. 30_days), matching the web flow.
The response includes the materialized line_items array.
post/v1/invoices
Request
- Base URL: https://api.officina.it
- URL: https://api.officina.it/v1/invoices
- Auth: HTTP bearer
Request body
Response
Invoice created.
Example response
{
"id": "4412e7b9-0c35-4a18-92d7-5b6ea1f38c04"
}Changes
No recorded changes to this operation across all 1 revision of this API.