⚪Compra
https://host/webservice/v1/entrada
🟢Listar
{
"qtype" : "entrada.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" : "entrada.id",//campo para ordenar a consulta
"sortorder" : "asc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/entrada' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"qtype" : "entrada.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "2000",
"sortname" : "entrada.id",
"sortorder" : "asc"
}'🟠Inserir
{
"tipo_documento":"",
"id_fornecedor":"",
"condicoes_pagamento":"",
"filial_id":"",
"data_emissao":"",
"data_entrada":"",
"gera_estoque":"",
"status":"",
"nfe_emitida":"",
"tipo_frete":""
} {
"gera_estoque": "S",
"nfe_chave": "",
"voutro": "0.00",
"realizar_rateio_outras_despesas": "N",
"fcp_bc_st": "",
"fcp_valor_st": "",
"filial_id": "1",
"transportadora": "0",
"numero_nf": "0",
"vfrete": "0.00",
"modelo_nf": "",
"vipi_frete": "0.00",
"serie": "",
"documento": "",
"tipo_documento": "201",
"tipo_frete": "9",
"data_emissao": "2018-04-17",
"data_entrada": "2018-04-17",
"id_fornecedor": "3",
"valor_total": "100.00",
"status": "A",
"condicoes_pagamento": "1",
"icms_bc": "100.00",
"icms_valor": "0.00",
"icms_bc_st": "0.00",
"icms_valor_st": "0.00",
"ipi_valor": "0.00",
"arquivo_xml": "",
"frete_volumes": "0",
"frete_especie": "",
"frete_peso_bruto": "0.000",
"frete_peso_liquido": "0.000",
"vpis": "0.000000000",
"vcofins": "0.000000000",
"tipo_calculo_tributacao": "SIST",
"nfe_emitida": "N"
}curl --location 'https://host/webservice/v1/entrada' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ' {
"gera_estoque": "S",
"nfe_chave": "",
"voutro": "0.00",
"realizar_rateio_outras_despesas": "N",
"fcp_bc_st": "",
"fcp_valor_st": "",
"filial_id": "1",
"transportadora": "0",
"numero_nf": "0",
"vfrete": "0.00",
"modelo_nf": "",
"vipi_frete": "0.00",
"serie": "",
"documento": "",
"tipo_documento": "201",
"tipo_frete": "9",
"data_emissao": "2018-04-17",
"data_entrada": "2018-04-17",
"id_fornecedor": "3",
"valor_total": "100.00",
"status": "A",
"condicoes_pagamento": "1",
"icms_bc": "100.00",
"icms_valor": "0.00",
"icms_bc_st": "0.00",
"icms_valor_st": "0.00",
"ipi_valor": "0.00",
"arquivo_xml": "",
"frete_volumes": "0",
"frete_especie": "",
"frete_peso_bruto": "0.000",
"frete_peso_liquido": "0.000",
"vpis": "0.000000000",
"vcofins": "0.000000000",
"tipo_calculo_tributacao": "SIST",
"nfe_emitida": "N"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/entrada/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"gera_estoque": "S",
"nfe_chave": "",
"voutro": "0.00",
"realizar_rateio_outras_despesas": "N",
"fcp_bc_st": "",
"fcp_valor_st": "",
"filial_id": "1",
"transportadora": "0",
"numero_nf": "0",
"vfrete": "0.00",
"modelo_nf": "",
"vipi_frete": "0.00",
"serie": "",
"documento": "",
"tipo_documento": "201",
"tipo_frete": "9",
"data_emissao": "2018-04-17",
"data_entrada": "2018-04-17",
"id_fornecedor": "3",
"valor_total": "100.00",
"status": "A",
"condicoes_pagamento": "1",
"icms_bc": "100.00",
"icms_valor": "0.00",
"icms_bc_st": "0.00",
"icms_valor_st": "0.00",
"ipi_valor": "0.00",
"arquivo_xml": "",
"frete_volumes": "0",
"frete_especie": "",
"frete_peso_bruto": "0.000",
"frete_peso_liquido": "0.000",
"vpis": "0.000000000",
"vcofins": "0.000000000",
"tipo_calculo_tributacao": "SIST",
"nfe_emitida": "N"
}curl --location --request PUT 'https://host/webservice/v1/entrada/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ' {
"gera_estoque": "S",
"nfe_chave": "",
"voutro": "0.00",
"realizar_rateio_outras_despesas": "N",
"fcp_bc_st": "",
"fcp_valor_st": "",
"filial_id": "1",
"transportadora": "0",
"numero_nf": "0",
"vfrete": "0.00",
"modelo_nf": "",
"vipi_frete": "0.00",
"serie": "",
"documento": "",
"tipo_documento": "201",
"tipo_frete": "9",
"data_emissao": "2018-04-17",
"data_entrada": "2018-04-17",
"id_fornecedor": "3",
"valor_total": "100.00",
"status": "A",
"condicoes_pagamento": "1",
"icms_bc": "100.00",
"icms_valor": "0.00",
"icms_bc_st": "0.00",
"icms_valor_st": "0.00",
"ipi_valor": "0.00",
"arquivo_xml": "",
"frete_volumes": "0",
"frete_especie": "",
"frete_peso_bruto": "0.000",
"frete_peso_liquido": "0.000",
"vpis": "0.000000000",
"vcofins": "0.000000000",
"tipo_calculo_tributacao": "SIST",
"nfe_emitida": "N"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/entrada/5
curl --location --request DELETE 'https://host/webservice/v1/entrada/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ''Last updated