## SEFAZ / CE / IPVA
Pesquisa dados de Imposto sobre Propriedades de Veículos Automotores (IPVA), através do número de renavam e placa ou chassi, para o Estado do Ceará (CE).


### Site URL
- https://ipva.sefaz.ce.gov.br/#/impostos/emitir-dae

### Request
POST endpoint: `https://api.infosimples.com/api/v2/consultas/sefaz/ce/ipva`



| Parameter | Description                                                 |
| --------- | ----------------------------------------------------------- |
| token*    | The token that will authenticate and authorize the request. |
| placa**   | License plate of the vehicle to be queried.                 |
| renavam** | RENAVAM of the vehicle to be queried.                       |
| chassi**  | Chassis number of the vehicle to be queried.                |

> * Required parameter.

> ** Optional parameter. Sometimes it is necessary to set at least one of the optional parameters for the service to work properly.


### Response examples (OK)
```json
{
  "code": 200,
  "code_message": "A requisição foi processada com sucesso.",
  "errors": [],
  "header": {
    "api_version": "v2",
    "product": "Consultas",
    "service": "sefaz/ce/ipva",
    "parameters": {
      "chassi": "1AA11111AA1111111"
    },
    "client_name": "Minha Empresa",
    "token_name": "Token de Produção",
    "billable": true,
    "price": "0.2",
    "requested_at": "2022-01-25T13:01:06.000-03:00",
    "elapsed_time_in_milliseconds": 124,
    "remote_ip": "111.111.111.111",
    "signature": "U2FsdGVkX19z+fWmuqaXM8tFR2qnlMBNYSWhQovhiB00KE11s6L3YE/ilbmo/u4vDTvcytJg/Q2AfH2fTD4YpA=="
  },
  "data_count": 1,
  "data": [
    {
      "debitos_ipva": [
        {
          "parcela": "Única",
          "valor_principal": "R$ 1.352,73",
          "valor_multa": null,
          "valor_juros": null,
          "valor_desconto": "R$ 135,27",
          "valor_desconto_sua_nota_tem_valor": "R$ 0,00",
          "valor_a_pagar": "R$ 1.217,46",
          "normalizado_valor_multa": 0.0,
          "normalizado_valor_juros": 0.0,
          "normalizado_valor_principal": 1352.73,
          "normalizado_valor_desconto": 135.27,
          "normalizado_valor_desconto_sua_nota_tem_valor": 0,
          "normalizado_valor_a_pagar": 1217.46,
          "situacao": null,
          "ano_exercicio": 2022,
          "boleto_linha_digitavel": "123456789012345678901234567890123456789012345678",
          "boleto_pdf_url": "https://www.exemplo.com/exemplo-de-url",
          "data_vencimento": "11/11/1111",
          "porcentagem_desconto": "10"
        },
        {
          "parcela": "1",
          "valor_principal": "R$ 270,55",
          "valor_multa": "R$ 0,00",
          "valor_juros": "R$ 0,00",
          "valor_desconto": "R$ 13,53",
          "valor_desconto_sua_nota_tem_valor": "R$ 0,00",
          "valor_a_pagar": "R$ 257,02",
          "normalizado_valor_multa": 0.0,
          "normalizado_valor_juros": 0.0,
          "normalizado_valor_principal": 270.55,
          "normalizado_valor_desconto": 13.53,
          "normalizado_valor_desconto_sua_nota_tem_valor": 0,
          "normalizado_valor_a_pagar": 257.02,
          "situacao": "Em aberto",
          "ano_exercicio": 2022,
          "boleto_linha_digitavel": "123456789012345678901234567890123456789012345678",
          "boleto_pdf_url": "https://www.exemplo.com/exemplo-de-url",
          "data_vencimento": "11/11/1111",
          "porcentagem_desconto": "5"
        },
        {
          "parcela": "2",
          "valor_principal": "R$ 270,55",
          "valor_multa": "R$ 0,00",
          "valor_juros": "R$ 0,00",
          "valor_desconto": "R$ 13,53",
          "valor_desconto_sua_nota_tem_valor": "R$ 0,00",
          "valor_a_pagar": "R$ 257,02",
          "normalizado_valor_multa": 0.0,
          "normalizado_valor_juros": 0.0,
          "normalizado_valor_principal": 270.55,
          "normalizado_valor_desconto": 13.53,
          "normalizado_valor_desconto_sua_nota_tem_valor": 0,
          "normalizado_valor_a_pagar": 257.02,
          "situacao": "Em aberto",
          "ano_exercicio": 2022,
          "boleto_linha_digitavel": "123456789012345678901234567890123456789012345678",
          "boleto_pdf_url": "https://www.exemplo.com/exemplo-de-url",
          "data_vencimento": "11/11/1111",
          "porcentagem_desconto": "5"
        },
        {
          "parcela": "3",
          "valor_principal": "R$ 270,55",
          "valor_multa": "R$ 0,00",
          "valor_juros": "R$ 0,00",
          "valor_desconto": "R$ 13,53",
          "valor_desconto_sua_nota_tem_valor": "R$ 0,00",
          "valor_a_pagar": "R$ 257,02",
          "normalizado_valor_multa": 0.0,
          "normalizado_valor_juros": 0.0,
          "normalizado_valor_principal": 270.55,
          "normalizado_valor_desconto": 13.53,
          "normalizado_valor_desconto_sua_nota_tem_valor": 0,
          "normalizado_valor_a_pagar": 257.02,
          "situacao": "Em aberto",
          "ano_exercicio": 2022,
          "boleto_linha_digitavel": "123456789012345678901234567890123456789012345678",
          "boleto_pdf_url": "https://www.exemplo.com/exemplo-de-url",
          "data_vencimento": "11/11/1111",
          "porcentagem_desconto": "5"
        },
        {
          "parcela": "4",
          "valor_principal": "R$ 270,55",
          "valor_multa": "R$ 0,00",
          "valor_juros": "R$ 0,00",
          "valor_desconto": "R$ 13,53",
          "valor_desconto_sua_nota_tem_valor": "R$ 0,00",
          "valor_a_pagar": "R$ 257,02",
          "normalizado_valor_multa": 0.0,
          "normalizado_valor_juros": 0.0,
          "normalizado_valor_principal": 270.55,
          "normalizado_valor_desconto": 13.53,
          "normalizado_valor_desconto_sua_nota_tem_valor": 0,
          "normalizado_valor_a_pagar": 257.02,
          "situacao": "Em aberto",
          "ano_exercicio": 2022,
          "boleto_linha_digitavel": "123456789012345678901234567890123456789012345678",
          "boleto_pdf_url": "https://www.exemplo.com/exemplo-de-url",
          "data_vencimento": "11/11/1111",
          "porcentagem_desconto": "5"
        },
        {
          "parcela": "5",
          "valor_principal": "R$ 270,53",
          "valor_multa": "R$ 0,00",
          "valor_juros": "R$ 0,00",
          "valor_desconto": "R$ 13,53",
          "valor_desconto_sua_nota_tem_valor": "R$ 0,00",
          "valor_a_pagar": "R$ 257,00",
          "normalizado_valor_multa": 0.0,
          "normalizado_valor_juros": 0.0,
          "normalizado_valor_principal": 270.53,
          "normalizado_valor_desconto": 13.53,
          "normalizado_valor_desconto_sua_nota_tem_valor": 0,
          "normalizado_valor_a_pagar": 257.0,
          "situacao": "Em aberto",
          "ano_exercicio": 2022,
          "boleto_linha_digitavel": "123456789012345678901234567890123456789012345678",
          "boleto_pdf_url": "https://www.exemplo.com/exemplo-de-url",
          "data_vencimento": "11/11/1111",
          "porcentagem_desconto": "5"
        }
      ],
      "debitos_ipva_anteriores": [
        {
          "parcela": "Única",
          "valor_principal": "R$ 986,30",
          "valor_multa": "R$ 147,90",
          "valor_juros": "R$ 155,46",
          "valor_desconto": null,
          "valor_desconto_sua_nota_tem_valor": null,
          "valor_a_pagar": "R$ 1.289,66",
          "normalizado_valor_multa": 147.9,
          "normalizado_valor_juros": 155.46,
          "normalizado_valor_principal": 986.3,
          "normalizado_valor_desconto": null,
          "normalizado_valor_desconto_sua_nota_tem_valor": null,
          "normalizado_valor_a_pagar": 1289.66,
          "situacao": null,
          "ano_exercicio": "2024 - 2025",
          "boleto_linha_digitavel": "123456789012345678901234567890123456789012345678",
          "boleto_pdf_url": "https://www.exemplo.com/exemplo-de-url",
          "data_vencimento": "10/06/2025",
          "data_limite_pagamento": "13/01/2026",
          "porcentagem_desconto": null
        }
      ],
      "veiculo": {
        "ano_fabricacao": 2011,
        "ano_modelo": 2012,
        "chassi": "1AA11111AA1111111",
        "placa": "AAA1111",
        "renavam": "1111111111",
        "municipio": "SAO PAULO / SP",
        "marca_modelo": "TOYOTA/COROLLA GLI FLEX"
      },
      "site_receipt": "https://www.exemplo.com/exemplo-de-url"
    }
  ],
  "site_receipts": [
    "https://www.exemplo.com/exemplo-de-url"
  ]
}
```


### Preview file

The preview file (`site_receipts`) in the response JSON may be **synthesized by Infosimples** using data from the source (website/app) that processed the automation if the file generated by the source is not suitable for viewing.

### Code snippets


#### Python
```python
# Tested with: Python 3.10.19, Python 3.14.0
import requests

url = 'https://api.infosimples.com/api/v2/consultas/sefaz/ce/ipva'
args = {
  "placa":   "VALUE_OF_PARAMETER_PLACA",
  "renavam": "VALUE_OF_PARAMETER_RENAVAM",
  "chassi":  "VALUE_OF_PARAMETER_CHASSI",
  "token":   "WRITE_YOUR_TOKEN_HERE",
  "timeout": "300"
}

response = requests.post(url, args)
response_json = response.json()
response.close()

if response_json['code'] == 200:
  print("Retorno com sucesso: ", response_json['data'])
elif response_json['code'] in range(600, 799):
  mensagem = "Resultado sem sucesso. Leia para saber mais: \n"
  mensagem += "Código: {} ({})\n".format(response_json['code'], response_json['code_message'])
  mensagem += "; ".join(response_json['errors'])
  print(mensagem)

print("Cabeçalho da consulta: ", response_json['header'])
print("URLs com arquivos de visualização (HTML/PDF): ", response_json['site_receipts'])
```


## We are here to help
Do you still need to figure something out? Reach us at [suporte@infosimples.com.br](mailto:suporte@infosimples.com.br) and our highly qualified support team will be happy to help.
