# Ver estado certificado

`GET /api/v1/billing/empresa/certificado`

Retorna el estado del certificado digital de firma (vigencia, RUT del firmante) sin exponer claves privadas.

- Autenticación: header `X-Api-Key: sk_simplo_...` (o `Authorization: Bearer <jwt>` para sesiones de la plataforma).
- operationId: `estadoCertificado` — contrato completo en https://docs.simplo.cl/openapi.yaml
- Versión HTML: https://docs.simplo.cl/api/operations/estadocertificado/

## Ejemplo (curl)

```sh
curl -X GET "https://api.simplo.cl/api/v1/billing/empresa/certificado" \
  -H "X-Api-Key: $SIMPLO_API_KEY"
```

## Respuestas

### 200 — Estado del certificado

Schema: `CertificadoStatusResponse`

| Campo | Tipo | Requerido | Descripción |
| --- | --- | --- | --- |
| `has_certificado` | boolean | sí |  |
| `rut_firmante` | string | no |  |
| `fecha_vencimiento` | string (date) | no |  |
| `dias_para_vencimiento` | integer | no | Días restantes hasta vencimiento |
| `is_active` | boolean | no |  |
| `uploaded_at` | string (date-time) | no |  |

### 401 — Token o API key inválido o ausente

Schema: `ErrorResponse`

### 404 — No hay certificado cargado

Schema: `ErrorResponse`
