⚪Almoxarifados
https://host/webservice/v1/almox
🟢Listar
{
"qtype" : "almox.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" : "almox.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/almox' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"qtype" : "almox.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "2000",
"sortname" : "almox.id",
"sortorder" : "desc"
}'🟠Inserir
Todos os Campos são obrigatórios!{
"descricao": "Almoxarifado Principal",
"id_filial": "1",
"ativo": "S",//S ou N
"requisitar_preferencialmente_de": "0"
}curl --location 'https://host/webservice/v1/almox' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"descricao": "Almoxarifado Principal",
"id_filial": "1",
"ativo": "S",
"requisitar_preferencialmente_de": "0"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL:
https://host/webservice/v1/almox/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"descricao": "Almoxarifado Principal",
"id_filial": "1",
"ativo": "S",//S ou N
"requisitar_preferencialmente_de": "0"
}curl --location --request PUT 'https://host/webservice/v1/almox/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"descricao": "Almoxarifado Principal",
"id_filial": "1",
"ativo": "S",
"requisitar_preferencialmente_de": "0"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL:
https://host/webservice/v1/almox/5
curl --location --request DELETE 'https://host/webservice/v1/almox/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data ''Last updated