Acréscimos
http://host/webservice/v1/cliente_contrato_acrescimos
🟢Listar
{
"qtype": "cliente_contrato_acrescimos.id",
"query": "1",
"oper": ">=",
"page": "1",
"rp": "1000",
"sortname": "cliente_contrato_acrescimos.id",
"sortorder": "desc"
}curl --location --request GET 'https://host/webservice/v1/cliente_contrato_acrescimos/' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzoxYWVmZWRiNTkzZjczZjYxNDM3NTI4ZWQ3OGViMjQ3ODFjYTAxNjczZDkxYWM2ODg2ZWM1MDZlNjlhMTQxY2Qz' \
--header 'Cookie: Path=/; Path=/; IXC_Session=ovssjds1qe7bmebrsrrh285m64' \
--data '{
"qtype": "cliente_contrato_acrescimos.id",
"query": "1",
"oper": ">=",
"page": "1",
"rp": "1000",
"sortname": "cliente_contrato_acrescimos.id",
"sortorder": "desc"
}'🟠Inserir
{
"id_contrato":"",
"id_vd_contrato_produtos":"",//ID do planos por contrato
"descricao":""
}{
"descricao": "",
"valor": "",
"percentual": "",
"data": "DD/MM/AAAA",
"data_validade": "DD/MM/AAAA",
"id_contrato": "",
"id_vd_contrato_produtos": "",
"id_reajuste": ""
}curl --location 'https://192.168.32.161/webservice/v1/cliente_contrato_acrescimos' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzoxYWVmZWRiNTkzZjczZjYxNDM3NTI4ZWQ3OGViMjQ3ODFjYTAxNjczZDkxYWM2ODg2ZWM1MDZlNjlhMTQxY2Qz' \
--header 'Cookie: Path=/; Path=/; IXC_Session=ovssjds1qe7bmebrsrrh285m64' \
--data '{
"descricao": "",
"valor": "",
"percentual": "",
"data": "DD/MM/AAAA",
"data_validade": "DD/MM/AAAA",
"id_contrato": "",
"id_vd_contrato_produtos": "",
"id_reajuste": ""
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/cliente_contrato_acrescimos/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"descricao": "",
"valor": "",
"percentual": "",
"data": "DD/MM/AAAA",
"data_validade": "DD/MM/AAAA",
"id_contrato": "",
"id_vd_contrato_produtos": "",
"id_reajuste": ""
}curl --location --request PUT 'https://host/webservice/v1/cliente_contrato_acrescimos/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzoxYWVmZWRiNTkzZjczZjYxNDM3NTI4ZWQ3OGViMjQ3ODFjYTAxNjczZDkxYWM2ODg2ZWM1MDZlNjlhMTQxY2Qz' \
--header 'Cookie: Path=/; Path=/; IXC_Session=ovssjds1qe7bmebrsrrh285m64' \
--data '{
"descricao": "",
"valor": "",
"percentual": "",
"data": "DD/MM/AAAA",
"data_validade": "DD/MM/AAAA",
"id_contrato": "",
"id_vd_contrato_produtos": "",
"id_reajuste": ""
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/cliente_contrato_acrescimos/5
curl --location --request DELETE 'https://host/webservice/v1/cliente_contrato_acrescimos/5' \
--header 'Authorization: Basic MzoxYWVmZWRiNTkzZjczZjYxNDM3NTI4ZWQ3OGViMjQ3ODFjYTAxNjczZDkxYWM2ODg2ZWM1MDZlNjlhMTQxY2Qz' \
--header 'Cookie: Path=/; Path=/; IXC_Session=ovssjds1qe7bmebrsrrh285m64' \
--data ''Last updated