{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zertidox-com/json-schema/zertidox-com-lista-solicitudes-schema.json",
  "title": "ListaSolicitudes",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zertidox-com-openapi.yml#/components/schemas/ListaSolicitudes",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SolicitudResumen"
      }
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "modoPrueba": {
      "type": "boolean",
      "description": "Present (true) only for test-mode accounts."
    }
  },
  "$defs": {
    "Estado": {
      "type": "string",
      "enum": [
        "PENDIENTE_PAGO",
        "PAGADA",
        "ENVIADA_AL_MJ",
        "ESPERANDO_CERTIFICADO",
        "ENTREGADA",
        "REEMBOLSADA",
        "REQUIERE_REVISION",
        "RECHAZADA",
        "REQUIERE_FIRMA",
        "FIRMADA",
        "REVISION_ABOGADO",
        "REVISADA",
        "EN_PROCESO",
        "CADUCADA"
      ],
      "description": "Request status."
    },
    "SolicitudResumen": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "referencia": {
          "type": "string",
          "description": "Public reference (CD-… live, PR-… test mode)."
        },
        "tipo": {
          "type": "string",
          "description": "Request type, as listed in `GET /catalogo`."
        },
        "estado": {
          "$ref": "#/$defs/Estado"
        },
        "precio": {
          "type": [
            "string",
            "number"
          ],
          "description": "Amount charged in EUR (decimal string). 0 when covered by the Business balance."
        },
        "pagado": {
          "type": "boolean"
        },
        "clienteNombre": {
          "type": [
            "string",
            "null"
          ],
          "description": "Your internal reference for the end client."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}