autopilot

Write Invoice

Replace one draft wholesale — the editor holds the whole document.

A PUT with an unknown id is a 404 and never an upsert (see write_client), and so is a PUT at an invoice already handed to SdI: its content is frozen by law, and the write is refused in SQL rather than here. The row stays readable through GET, which is how a client tells "frozen" from "gone".

put/api/autopilot/invoices/{invoice_id}

Request

  • Base URL: https://api.taxcompass.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.taxcompass.it/api/autopilot/invoices/{invoice_id}
  • Auth: HTTP bearer

Path parameters

invoice_idstring uuid required

Request body

client_idstring uuid nullable
atecostring nullable
issue_datestring date nullable
due_datestring date nullable
causalestring nullable

Response

Successful Response

client_idstring uuid nullable
atecostring nullable
issue_datestring date nullable
due_datestring date nullable
causalestring nullable
idstring uuid required
yearinteger required
numberinteger nullable
doc_typestring
status'draft' | 'sending' | 'issued' | 'delivered' | 'not_delivered' | 'rejected' | 'error' | 'imported'
total_amountstring
bollo_appliedboolean
credit_note_ofstring uuid nullable
client_labelstring nullable
created_atstring date-time nullable
updated_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.