{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beel-es/json-schema/beel-es-invoice-pdf-response-schema.json",
  "title": "InvoicePdfResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beel-es-companyinvoicedelivery-api-openapi.yml#/components/schemas/InvoicePdfResponse",
  "type": "object",
  "required": [
    "success",
    "data",
    "meta"
  ],
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "required": [
        "download_url",
        "expires_in_seconds",
        "file_name"
      ],
      "properties": {
        "download_url": {
          "type": "string",
          "format": "uri",
          "description": "Pre-signed URL to download the PDF (valid for 5 minutes)"
        },
        "expires_in_seconds": {
          "type": "integer",
          "description": "Seconds until the URL expires",
          "minimum": 1
        },
        "file_name": {
          "type": "string",
          "description": "Suggested filename for download",
          "pattern": "^factura_.+\\.pdf$"
        }
      }
    },
    "meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "$defs": {
    "ResponseMeta": {
      "type": "object",
      "properties": {
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "request_id": {
          "type": "string"
        }
      }
    }
  }
}