Financeiro (Protected)

Criar movimento de custo

Criar um movimento de custo.

O campo lucro é determinado automaticamente pelo estado do veículo.

post/api/financeiro/movements/cost

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.

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

Changes

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