Vendedor
https://host/webservice/v1/vendedor
🟢Listar
{
"qtype" : "vendedor.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" : "vendedor.id",//campo para ordenar a consulta
"sortorder" : "asc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/vendedor' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=hhtp4sge08ddovcq5v176803od' \
--data '{
"qtype" : "vendedor.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "2000",
"sortname" : "vendedor.id",
"sortorder" : "asc"
}'🟠Inserir
{
"nome":"",
"comissao":"",
"id_cidade":"",
"status":""
}{
"pipe_id_usuario": "0",
"nome": "MILENA",
"comissao_perc_recebimento": "3.00",
"comissao": "5.00",
"endereco": "",
"comissao_v": "10.00",
"bairro": "",
"status": "A",
"id_cidade": "4376",
"telefone": "",
"celular": "",
"cnpj_cpf": "",
"ie_rg": "",
"email": "",
"ultima_atualizacao": "2024-02-05 14:06:54"
}curl --location 'https://host/webservice/v1/vendedor' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=hhtp4sge08ddovcq5v176803od' \
--data '{
"pipe_id_usuario": "0",
"nome": "MILENA",
"comissao_perc_recebimento": "3.00",
"comissao": "5.00",
"endereco": "",
"comissao_v": "10.00",
"bairro": "",
"status": "A",
"id_cidade": "4376",
"telefone": "",
"celular": "",
"cnpj_cpf": "",
"ie_rg": "",
"email": "",
"ultima_atualizacao": "2024-02-05 14:06:54"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/vendedor/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"pipe_id_usuario": "0",
"nome": "MILENA",
"comissao_perc_recebimento": "3.00",
"comissao": "5.00",
"endereco": "",
"comissao_v": "10.00",
"bairro": "",
"status": "A",
"id_cidade": "4376",
"telefone": "",
"celular": "",
"cnpj_cpf": "",
"ie_rg": "",
"email": "",
"ultima_atualizacao": "2024-02-05 14:06:54"
}curl --location --request PUT 'https://host/webservice/v1/vendedor/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=hhtp4sge08ddovcq5v176803od' \
--data '{
"pipe_id_usuario": "0",
"nome": "MILENA",
"comissao_perc_recebimento": "3.00",
"comissao": "5.00",
"endereco": "",
"comissao_v": "10.00",
"bairro": "",
"status": "A",
"id_cidade": "4376",
"telefone": "",
"celular": "",
"cnpj_cpf": "",
"ie_rg": "",
"email": "",
"ultima_atualizacao": "2024-02-05 14:06:54"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/vendedor/5
curl --location --request DELETE 'https://host/webservice/v1/fr_faturamento_classificacoes/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=hhtp4sge08ddovcq5v176803od' \
--data ''Last updated