Transferência com confirmação
https://host/webservice/v1/requisicao_devolucao_material
🟢Listar
{
"qtype" : "requisicao_devolucao_material.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" : "requisicao_devolucao_material.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/requisicao_devolucao_material' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"qtype" : "requisicao_devolucao_material.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "2000",
"sortname" : "requisicao_devolucao_material.id",
"sortorder" : "desc"
}'🟠Inserir
{
"id_funcionario":"",
"id_almox_origem":"",
"id_funcionario_destino":"",
"id_almox_destino":"",
"data":""
} {
"id_filial_origem": "0",
"id_filial_destino": "2",
"id_funcionario": "40",
"id_almox_origem": "1",
"id_almox_destino": "2",
"data": "2024-02-16 00:00:00",
"status": "2",
"observacao": "",
"id_funcionario_destino": "7"
}curl --location 'https://host/webservice/v1/requisicao_devolucao_material' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data ' {
"id_filial_origem": "0",
"id_filial_destino": "2",
"id_funcionario": "40",
"id_almox_origem": "1",
"id_almox_destino": "2",
"data": "2024-02-16 00:00:00",
"status": "2",
"observacao": "",
"id_funcionario_destino": "7"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/requisicao_devolucao_material/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"id_filial_origem": "0",
"id_filial_destino": "2",
"id_funcionario": "40",
"id_almox_origem": "1",
"id_almox_destino": "2",
"data": "2024-02-16 00:00:00",
"status": "2",
"observacao": "",
"id_funcionario_destino": "7"
}curl --location --request PUT 'https://host/webservice/v1/requisicao_devolucao_material' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data ' {
"id_filial_origem": "0",
"id_filial_destino": "2",
"id_funcionario": "40",
"id_almox_origem": "1",
"id_almox_destino": "2",
"data": "2024-02-16 00:00:00",
"status": "2",
"observacao": "",
"id_funcionario_destino": "7"
}'Last updated