# Últimas solicitudes de folios al SII

`GET /api/v1/partner/tenants/{tenant_id}/caf/requests/` · Partner · Fuente: https://api.sharkpos.cl/docs/api/list-tenant-caf-requests/

## Parámetros

| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| `tenant_id` | path · string (uuid) | sí |  |
| `document_type` | query · integer (uno de 39, 41, 33, 34, 56, 61, 52, 46) |  |  |
| `limit` | query · integer (por defecto 20) |  |  |

## Ejemplo en el sandbox

```bash
curl -X GET https://sandbox.sharkpos.cl/api/v1/partner/tenants/<tenant_id>/caf/requests/ \
  -H "Authorization: Bearer $SHARKPOS_API_KEY"
```

## Respuestas

| HTTP | Qué significa | Esquema |
|---|---|---|
| 200 | Solicitudes, la más reciente primero. |  |
| 400 | Solicitud inválida (`INVALID_REQUEST`, `INVALID_RECEPTOR_RUT`, `CONSUMIDOR_FINAL_NOT_ALLOWED`, `IDEMPOTENCY_KEY_REQUIRED`, `CAF_NOT_FOUND`...). | Error |
| 401 | Credencial ausente o inválida (`AUTHENTICATION_REQUIRED`, `INVALID_API_KEY`). | Error |
| 404 | No existe para esta credencial (`DTE_NOT_FOUND`, `TENANT_NOT_FOUND`, `WEBHOOK_NOT_FOUND`, `CAF_REQUEST_NOT_FOUND`, `BRANCH_NOT_FOUND`, `DEVICE_NOT_FOUND`...). | Error |

Contrato completo: https://api.sharkpos.cl/docs/openapi.yaml
