⚪Adiantamento de salários
https://host/webservice/v1/fl_adto_salario
🟢Listar
{
"qtype" : "fl_adto_salario.id",//campo de filtro
"query" : "1",//valor para consultar
"oper" : ">=",//operador da consulta
"page" : "1",//página a ser mostrada
"rp" : "2000",//quantidade de registros por página
"sortname" : "fl_adto_salario.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/fl_adto_salario' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"qtype" : "fl_adto_salario.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "2000",
"sortname" : "fl_adto_salario.id",
"sortorder" : "desc"
}'🟠Inserir
{
"id_funcionario":"",
"descricao":"",
"data":"",//00/00/0000
"tipo_pagamento":"",//Dinheiro ou Cheque
"conta_":""
}{
"conta_": "2",
"data": "2024-02-20",
"id_funcionario": "1",
"descricao": "teste",
"valor": "40.00",
"tipo_pagamento": "Dinheiro",
"id_conta": "2",
"documento": "",
"filial_id": "1"
}curl --location 'https://host/webservice/v1/fl_adto_salario' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"conta_": "2",
"data": "2024-02-20",
"id_funcionario": "1",
"descricao": "teste",
"valor": "40.00",
"tipo_pagamento": "Dinheiro",
"id_conta": "2",
"documento": "",
"filial_id": "1"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/fl_adto_salario/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"conta_": "2",
"data": "2024-02-20",
"id_funcionario": "1",
"descricao": "teste",
"valor": "40.00",
"tipo_pagamento": "Dinheiro",
"id_conta": "2",
"documento": "",
"filial_id": "1"
}curl --location --request PUT 'https://host/webservice/v1/fl_adto_salario/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"conta_": "2",
"data": "2024-02-20",
"id_funcionario": "1",
"descricao": "teste",
"valor": "40.00",
"tipo_pagamento": "Dinheiro",
"id_conta": "2",
"documento": "",
"filial_id": "1"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/fl_adto_salario/5
curl --location --request DELETE 'https://host/webservice/v1/fl_adto_salario/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data ''Last updated