Contabilidade
https://host/webservice/v1/fn_movim_finan
🟢Listar
{
"qtype" : "fn_movim_finan.id",//campo de filtro
"query" : "1",//valor para consultar
"oper" : ">=",//operador da consulta
"page" : "1",//página a ser mostrada
"rp" : "200",//quantidade de registros por página
"sortname" : "fn_movim_finan.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/fn_movim_finan' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=bg0l9866m8hlsl3s4toh4tcp1e' \
--data '{
"qtype" : "fn_movim_finan.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "100",
"sortname" : "fn_movim_finan.id",
"sortorder" : "desc"
}'🟠Inserir
{
"id_conta":"",
"data": "",
"historico": "",
"id_entrada":""
}{
"filial_id": "",
"id_conta": "",
"data": "",
"documento": "",
"id_movim_finan": "",
"debito": "",
"credito": "",
"historico": "",
"tipo_lanc": "",
"id_entrada": "",
"id_saida": "",
"ultima_atualizacao": ""
}curl --location 'https://host/webservice/v1/fn_movim_finan' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=bg0l9866m8hlsl3s4toh4tcp1e' \
--data '{
"filial_id": "",
"id_conta": "",
"data": "DD/MM/AAAA",
"documento": "",
"id_movim_finan": "",
"debito": "",
"credito": "",
"historico": "",
"tipo_lanc": "",
"id_entrada": "",
"id_saida": "",
"ultima_atualizacao": ""
}'{
//Tipo de Lançamento (oculto)
"tipo_lanc": "C",//Crédito
"tipo_lanc": "R",//Receita
"tipo_lanc": "M",//Movimentação
"tipo_lanc": "D",//Despesa
//Filial (oculto)
"filial_id": "",
}🔵Editar
Deve ser informado o id, a ser editado, na URL:
https://host/webservice/v1/fn_movim_finan/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"filial_id": "",
"id_conta": "",
"data": "",
"documento": "",
"id_movim_finan": "",
"debito": "",
"credito": "",
"historico": "",
"tipo_lanc": "",
"id_entrada": "",
"id_saida": "",
"ultima_atualizacao": ""
}curl --location --request PUT 'https://host/webservice/v1/fn_movim_finan/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=bg0l9866m8hlsl3s4toh4tcp1e' \
--data '{
"filial_id": "",
"id_conta": "",
"data": "DD/MM/AAAA",
"documento": "",
"id_movim_finan": "",
"debito": "",
"credito": "",
"historico": "",
"tipo_lanc": "",
"id_entrada": "",
"id_saida": "",
"ultima_atualizacao": ""
}'// Some code🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/fn_movim_finan/5
curl --location --request DELETE 'https://host/webservice/v1/fn_movim_finan/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=bg0l9866m8hlsl3s4toh4tcp1e' \
--data ''Last updated