{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bancomat/main/json-schema/bancomat-pago-pafield-less-schema.json",
  "title": "pagoPAFieldLess",
  "description": "PagoPA payment information",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bancomat-pagopa-api-openapi.yml#/components/schemas/pagoPAFieldLess",
  "properties": {
    "ec": {
      "$ref": "#/$defs/CompanyVATNumber",
      "description": "Public administration VAT number"
    },
    "fingerprint": {
      "$ref": "#/$defs/Fingerprint",
      "description": "Fingerprint generated for the document"
    },
    "noticeNumber": {
      "description": "Notice number emitted by pagoPA",
      "pattern": "^d{11}",
      "type": "string"
    },
    "remittance": {
      "description": "Remittance information",
      "type": "string"
    },
    "id": {
      "description": "Identificativo univoco del documento PagoPA su flowpay",
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "fingerprint",
    "ec",
    "noticeNumber"
  ],
  "type": "object",
  "$defs": {
    "CompanyVATNumber": {
      "description": "VAT number of the company, full european format",
      "pattern": "/^((AT)(U\\d{8})|(BE)(0\\d{9})|(BG)(\\d{9,10})|(CY)(\\d{8}[LX])|(CZ)(\\d{8,10})|(DE)(\\d{9})|(DK)(\\d{8})|(EE)(\\d{9})|(EL|GR)(\\d{9})|(ES)([\\dA-Z]\\d{7}[\\dA-Z])|(FI)(\\d{8})|(FR)([\\dA-Z]{2}\\d{9})|(HU)(\\d{8})|(IE)(\\d{7}[A-Z]{2})|(IT)(\\d{11})|(LT)(\\d{9}|\\d{12})|(LU)(\\d{8})|(LV)(\\d{11})|(MT)(\\d{8})|(NL)(\\d{9}(B\\d{2}|BO2))|(PL)(\\d{10})|(PT)(\\d{9})|(RO)(\\d{2,10})|(SE)(\\d{12})|(SI)(\\d{8})|(SK)(\\d{10}))$",
      "type": "string",
      "x-faker": "finance.vat"
    },
    "Fingerprint": {
      "description": "Fingerprint del documento",
      "type": "string"
    }
  }
}