{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/astranexo-com/json-schema/astranexo-com-exonet-authorization-schema.json",
  "title": "ExonetAuthorization",
  "description": "Autorización de exoneración de EXONET.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aster-openapi.yaml#/components/schemas/ExonetAuthorization",
  "type": "object",
  "properties": {
    "number": {
      "type": "string"
    },
    "holder_id": {
      "type": "string",
      "description": "Identificación del titular (comprador)."
    },
    "points": {
      "type": "number",
      "description": "Puntos de IVA exonerados (13 = todo el 13 %). Es el tope de `exoneration.percentage` en las líneas."
    },
    "issued_on": {
      "type": "string",
      "format": "date",
      "description": "Debe coincidir con `exoneration.emission_date`."
    },
    "expires_on": {
      "type": "string",
      "format": "date",
      "description": "Vacío si no vence."
    },
    "covers_all_cabys": {
      "type": "boolean"
    },
    "cabys": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "CABYS cubiertos cuando `covers_all_cabys` es `false`."
    },
    "authorization_type": {
      "type": "string"
    },
    "document_type": {
      "type": "string",
      "description": "Tipo de documento de exoneración (FE 4.4)",
      "normalmente `04`.": null
    },
    "document_type_description": {
      "type": "string"
    },
    "institution_code": {
      "type": "string"
    },
    "institution_name": {
      "type": "string"
    },
    "cfia_project": {
      "type": "integer",
      "description": "Proyecto CFIA",
      "cuando la autorización es de construcción.": null
    },
    "in_force": {
      "type": "boolean",
      "description": "Vigente hoy (hora de Costa Rica)."
    }
  }
}