Skip to main content

Update a document state

Update a document state

Path Parameters
id string REQUIRED
Request Body REQUIRED
transition string REQUIRED

Possible values: [to_created, to_canceled, to_draft, to_accepted, to_negotiation, to_unpaid, to_delivery, to_received]

Invoice transition states: (to_unpaid, to_canceled, to_draft ) || Estimates transition states: (to_created, to_canceled, to_draft, to_accepted, to_negotiation) || delivery notes transition states: (to_created, to_canceled, to_draft, to_delivery) || Supplier delivery notes transition states: ( to_created, to_canceled, to_draft, to_received )

Responses
200

Returns the updated document

Schema OPTIONAL
reference string OPTIONAL

Document number

version integer OPTIONAL

Document version

state_transitions array OPTIONAL

Possible states transitions for a document

400

Document not valid