Official data and documents API

API for retrieving the IRPF tax certificate (certificado tributario de IRPF)

Official name: Certificado tributario de IRPF

The income tax certificate that banks and public authorities typically require, retrieved from the Agencia Tributaria when the data subject authorises it with Cl@ve. You receive it as data and as the original PDF.

Available Individuals

What data it retrieves

The response includes the certificate for the most recent tax year with return data:

  • Certificate: tax year, form of taxation, issue date and verification code.
  • Persons: the data subject and the other persons who appear on the certificate, with their identification.
  • Amounts: general and savings taxable bases and net taxable bases, payments on account and the result of the return, as well as the boxes the certificate contains.
  • Original document: the PDF issued by the Agencia Tributaria, encoded in Base64 and with its SHA-256 hash.
{
  "success": true,
  "payload": {
    "tax_certificates": [
      {
        "document_type": "irpf_tax_certificate",
        "fiscal_year": 2025,
        "taxation_mode": "individual",
        "issued_at": "2026-11-10",
        "verification_code": "K7QD2MXW9TLP4HVR",
        "summary": {
          "general_taxable_base": 38250.17,
          "savings_taxable_base": 412.6,
          "return_result": -1284.36
        },
        "pdf_filename": "certificado_irpf_2025.pdf",
        "pdf_file": "JVBERi0xLjcK…"
      }
    ]
  }
}

Excerpt from the response. The values are illustrative.

What it is used for

  • Mortgages and loans. Retrieve at source the certificate your risk policy requires as proof of income.

  • Rental. Evidence a tenant’s income with a document issued by the Agencia Tributaria.

  • File and audit. Keep the original PDF with its verification code.

How to integrate it through an API

The flow is the same for every document in the catalogue, on the Wealthreader API.

  1. Your system calls the API with your API key and the document code.

  2. The data subject identifies themselves and authorises the request.

  3. Your system repeats the call with the same session and collects the data and the original document.

View the integration guide
curl https://api.wealthreader.com/entities/ \
  -d api_key=$API_KEY \
  -d code=certificado_irpf

What authorisation is required

The data subject scans a QR code with the Cl@ve app and approves the request. They share no passwords with you or with Govreader.

View security and compliance

Points to note

  • The certificate issued is for the most recent tax year that has return data.
  • It is not the filed return (modelo 100): it is a document issued by the Agencia Tributaria and reflects the position on the issue date.

See how Govreader fits your process

We review your use case and available coverage to show you the identification, retrieval and response flow you need.

Request a demo