Financeiro (Protected)

Atualizar movimento

Changed on

Atualizar dados de um movimento existente.

Plain def, NOT async def: the body is blocking pyodbc, which on the event loop stalls every other request on this worker (the 2026-07-08 reconnect-herd incident — docs/claude/10-api-patterns.md; same note on get_vehicles above and routes/toc.py::create_invoice). FastAPI runs def handlers in a threadpool. Became load-bearing when the #931 counterparty check added two more round-trips to the invoice-attach path.

put/api/financeiro/movements/{movement_id}

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/financeiro/movements/{movement_id}
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Path parameters

movement_idinteger required

Headers

x-api-tokenstring nullable

Request body

ValorTotalnumber nullable
ValorIvanumber nullable
Descriçãostring nullable
Matrículainteger nullable
Fornecedorinteger nullable
MétodoPagamentointeger nullable
NrFaturastring nullable
DataFaturastring date-time nullable
Rubricainteger nullable
ATCUDinteger nullable
Pagointeger nullable
lucrointeger nullable

Override lucro (0 or 1). Sent only when the user explicitly confirms via the Lucros e Despesas prompt.

remove_document_idsinteger[] nullable

Documentos.ID values to remove when this update commits (max 10).

row_versioninteger nullable

row_version lido com o movimento (deteção de alterações concorrentes).

Response

Successful Response

IDinteger required
ValorTotalnumber required
ValorIvanumber nullable required
Descriçãostring required
Matrículainteger nullable required
Fornecedorinteger nullable required
MétodoPagamentointeger nullable required
Pagoboolean required
DataPagamentostring date-time nullable required
NrFaturastring nullable required
DataFaturastring date-time nullable required
Rubricainteger required
ATCUDinteger nullable required
IgnoraAtcudboolean nullable required
maininteger nullable required
lucroboolean nullable required
DataRegistostring date-time nullable required
RubricaDescricaostring nullable required
ViaturaMatriculastring nullable required
ViaturaIDinteger nullable required
MetodoPagamentoDescricaostring nullable required
FaturaGstring nullable required
ClienteNomestring nullable required
ClienteIDinteger nullable required
DocumentoIDinteger nullable required
DocumentoNomestring nullable
invoice_split_syncobject nullable
counterparty_warningobject nullable
documents_removedinteger[] nullable
invoice_linksobject[] nullable
split_parent_idinteger nullable
split_parent_pagoboolean nullable
split_children_countinteger nullable
split_children_totalnumber nullable
row_versioninteger nullable

Changes

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status