Financeiro (Protected)

Criar movimento com divisão por centros de custo

Create a cost movement split across multiple PVs as cost centers.

post/api/financeiro/movements/cost-center

Headers

x-api-tokenstring nullable

Request body

ValorTotalnumber required

Can be negative (cost) or positive (profit)

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

Invoice ID (Faturas.ID) to link to this movement

lucrointeger nullable

Override lucro value (0 or 1). If None, backend auto-calculates based on vehicle status.

Pagointeger nullable

0 = parent registered but not yet paid, 1 = paid. When omitted, backend derives from MétodoPagamento.

include_own_splitboolean

Also create a child movement in the ORIGIN PV for its own remaining share. Its value is derived by the backend from the total minus the destinations — never sent by the client.

Response

Successful Response

{"stackTrail":"paths:/api/financeiro/movements/cost-center:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

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