Convert a draft fattura into a scontrino
Swaps a non-emessa, worksheet-backed draft invoice for a draft scontrino on the same scheda lavoro — the same conversion the web performs (POST /hx/private/invoices/{id}/convert-to-scontrino).
Payments move onto the new receipt; the source invoice is soft-deleted; worksheets.fiscal_document_type flips to scontrino. Line items are not copied (both documents project the worksheet).
No request body. Server re-validates every convertibility guard: draft only, worksheet-backed, no blocking e-invoice (past draft), no linked nota di credito, no ritenuta d'acconto.
Returns 422 when any guard fails. The invoice is gone after a successful conversion — navigate to the returned receipt.
Request
- Base URL: https://api.officina.it
- URL: https://api.officina.it/v1/invoices/{id}/convert-to-scontrino
- Auth: HTTP bearer
Response
The freshly created draft scontrino (full detail shape).
Changes
No recorded changes to this operation across all 1 revision of this API.