{
  "openapi": "3.0.1",
  "info": {
    "title": "FatturaPA Invoice Generator",
    "description": "Generate FPR12 or FPA12 FatturaPA 1.2.3 XML with advanced tax, reference, payment, and attachment support plus offline SdI technical checks.",
    "version": "1.0",
    "x-build-id": "x6gEpCJffrriCYmg4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kamerozkan~fatturapa-invoice-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kamerozkan-fatturapa-invoice-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/kamerozkan~fatturapa-invoice-generator/runs": {
      "post": {
        "operationId": "runs-sync-kamerozkan-fatturapa-invoice-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/kamerozkan~fatturapa-invoice-generator/run-sync": {
      "post": {
        "operationId": "run-sync-kamerozkan-fatturapa-invoice-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "invoice": {
            "title": "Invoice JSON",
            "required": [
              "invoice_number",
              "issue_date",
              "seller",
              "buyer",
              "lines"
            ],
            "type": "object",
            "description": "One invoice for FatturaPA FPR12 / FPA12 1.2.3.",
            "properties": {
              "invoice_number": {
                "maxLength": 60,
                "minLength": 1,
                "title": "Invoice Number",
                "type": "string",
                "description": "Invoice Number used to generate and validate the invoice."
              },
              "document_kind": {
                "default": "invoice",
                "enum": [
                  "invoice",
                  "credit_note"
                ],
                "title": "Document Kind",
                "type": "string",
                "description": "Document Kind used to generate and validate the invoice."
              },
              "issue_date": {
                "title": "Issue Date",
                "type": "string",
                "description": "Issue Date used to generate and validate the invoice.",
                "editor": "datepicker",
                "dateType": "absolute"
              },
              "due_date": {
                "type": "string",
                "title": "Due Date",
                "nullable": true,
                "description": "Due Date used to generate and validate the invoice.",
                "editor": "datepicker",
                "dateType": "absolute"
              },
              "tax_point_date": {
                "type": "string",
                "title": "Tax Point Date",
                "nullable": true,
                "description": "Tax Point Date used to generate and validate the invoice.",
                "editor": "datepicker",
                "dateType": "absolute"
              },
              "tax_point_date_code": {
                "maxLength": 35,
                "minLength": 1,
                "type": "string",
                "title": "Tax Point Date Code",
                "nullable": true,
                "description": "Tax Point Date Code used to generate and validate the invoice."
              },
              "delivery_date": {
                "type": "string",
                "title": "Delivery Date",
                "nullable": true,
                "description": "Delivery Date used to generate and validate the invoice.",
                "editor": "datepicker",
                "dateType": "absolute"
              },
              "invoice_period": {
                "additionalProperties": false,
                "properties": {
                  "start_date": {
                    "type": "string",
                    "title": "Start Date",
                    "nullable": true,
                    "description": "Start Date used to generate and validate the invoice.",
                    "editor": "datepicker",
                    "dateType": "absolute"
                  },
                  "end_date": {
                    "type": "string",
                    "title": "End Date",
                    "nullable": true,
                    "description": "End Date used to generate and validate the invoice.",
                    "editor": "datepicker",
                    "dateType": "absolute"
                  },
                  "description_code": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Description Code",
                    "nullable": true,
                    "description": "Description Code used to generate and validate the invoice."
                  }
                },
                "title": "Period",
                "type": "object",
                "nullable": true,
                "description": "Period used to generate and validate the invoice."
              },
              "delivery_period": {
                "additionalProperties": false,
                "properties": {
                  "start_date": {
                    "type": "string",
                    "title": "Start Date",
                    "nullable": true,
                    "description": "Start Date used to generate and validate the invoice.",
                    "editor": "datepicker",
                    "dateType": "absolute"
                  },
                  "end_date": {
                    "type": "string",
                    "title": "End Date",
                    "nullable": true,
                    "description": "End Date used to generate and validate the invoice.",
                    "editor": "datepicker",
                    "dateType": "absolute"
                  },
                  "description_code": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Description Code",
                    "nullable": true,
                    "description": "Description Code used to generate and validate the invoice."
                  }
                },
                "title": "Period",
                "type": "object",
                "nullable": true,
                "description": "Period used to generate and validate the invoice."
              },
              "currency": {
                "default": "EUR",
                "maxLength": 3,
                "minLength": 3,
                "title": "Currency",
                "type": "string",
                "description": "Currency used to generate and validate the invoice."
              },
              "tax_currency": {
                "maxLength": 3,
                "minLength": 3,
                "type": "string",
                "title": "Tax Currency",
                "nullable": true,
                "description": "Tax Currency used to generate and validate the invoice."
              },
              "tax_currency_tax_amount": {
                "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                "type": "string",
                "title": "Tax Currency Tax Amount",
                "nullable": true,
                "description": "Tax Currency Tax Amount used to generate and validate the invoice."
              },
              "invoice_type_code": {
                "default": "380",
                "maxLength": 3,
                "minLength": 2,
                "title": "Invoice Type Code",
                "type": "string",
                "description": "Invoice Type Code used to generate and validate the invoice."
              },
              "buyer_reference": {
                "maxLength": 100,
                "type": "string",
                "title": "Buyer Reference",
                "nullable": true,
                "description": "Buyer Reference used to generate and validate the invoice."
              },
              "purchase_order_reference": {
                "maxLength": 100,
                "type": "string",
                "title": "Purchase Order Reference",
                "nullable": true,
                "description": "Purchase Order Reference used to generate and validate the invoice."
              },
              "sales_order_reference": {
                "maxLength": 100,
                "type": "string",
                "title": "Sales Order Reference",
                "nullable": true,
                "description": "Sales Order Reference used to generate and validate the invoice."
              },
              "contract_reference": {
                "maxLength": 100,
                "type": "string",
                "title": "Contract Reference",
                "nullable": true,
                "description": "Contract Reference used to generate and validate the invoice."
              },
              "project_reference": {
                "maxLength": 100,
                "type": "string",
                "title": "Project Reference",
                "nullable": true,
                "description": "Project Reference used to generate and validate the invoice."
              },
              "project_name": {
                "maxLength": 200,
                "type": "string",
                "title": "Project Name",
                "nullable": true,
                "description": "Project Name used to generate and validate the invoice."
              },
              "tender_reference": {
                "maxLength": 100,
                "type": "string",
                "title": "Tender Reference",
                "nullable": true,
                "description": "Tender Reference used to generate and validate the invoice."
              },
              "receiving_advice_reference": {
                "maxLength": 100,
                "type": "string",
                "title": "Receiving Advice Reference",
                "nullable": true,
                "description": "Receiving Advice Reference used to generate and validate the invoice."
              },
              "despatch_advice_reference": {
                "maxLength": 100,
                "type": "string",
                "title": "Despatch Advice Reference",
                "nullable": true,
                "description": "Despatch Advice Reference used to generate and validate the invoice."
              },
              "accounting_cost": {
                "maxLength": 200,
                "type": "string",
                "title": "Accounting Cost",
                "nullable": true,
                "description": "Accounting Cost used to generate and validate the invoice."
              },
              "seller": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "maxLength": 200,
                    "minLength": 1,
                    "title": "Name",
                    "type": "string",
                    "description": "Name used to generate and validate the invoice."
                  },
                  "address": {
                    "additionalProperties": false,
                    "properties": {
                      "line1": {
                        "maxLength": 100,
                        "minLength": 1,
                        "title": "Line1",
                        "type": "string",
                        "description": "Line1 used to generate and validate the invoice."
                      },
                      "line2": {
                        "maxLength": 100,
                        "type": "string",
                        "title": "Line2",
                        "nullable": true,
                        "description": "Line2 used to generate and validate the invoice."
                      },
                      "line3": {
                        "maxLength": 100,
                        "type": "string",
                        "title": "Line3",
                        "nullable": true,
                        "description": "Line3 used to generate and validate the invoice."
                      },
                      "city": {
                        "maxLength": 60,
                        "minLength": 1,
                        "title": "City",
                        "type": "string",
                        "description": "City used to generate and validate the invoice."
                      },
                      "postal_code": {
                        "maxLength": 20,
                        "minLength": 1,
                        "title": "Postal Code",
                        "type": "string",
                        "description": "Postal Code used to generate and validate the invoice."
                      },
                      "country_code": {
                        "maxLength": 2,
                        "minLength": 2,
                        "title": "Country Code",
                        "type": "string",
                        "description": "Country Code used to generate and validate the invoice."
                      },
                      "region": {
                        "maxLength": 60,
                        "type": "string",
                        "title": "Region",
                        "nullable": true,
                        "description": "Region used to generate and validate the invoice."
                      }
                    },
                    "required": [
                      "line1",
                      "city",
                      "postal_code",
                      "country_code"
                    ],
                    "title": "Address",
                    "type": "object",
                    "description": "Address used to generate and validate the invoice."
                  },
                  "trading_name": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string",
                    "title": "Trading Name",
                    "nullable": true,
                    "description": "Trading Name used to generate and validate the invoice."
                  },
                  "vat_id": {
                    "maxLength": 30,
                    "minLength": 2,
                    "type": "string",
                    "title": "Vat Id",
                    "nullable": true,
                    "description": "Vat Id used to generate and validate the invoice."
                  },
                  "tax_id": {
                    "maxLength": 40,
                    "minLength": 2,
                    "type": "string",
                    "title": "Tax Id",
                    "nullable": true,
                    "description": "Tax Id used to generate and validate the invoice."
                  },
                  "registration_id": {
                    "maxLength": 60,
                    "minLength": 1,
                    "type": "string",
                    "title": "Registration Id",
                    "nullable": true,
                    "description": "Registration Id used to generate and validate the invoice."
                  },
                  "registration_scheme": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Registration Scheme",
                    "nullable": true,
                    "description": "Registration Scheme used to generate and validate the invoice."
                  },
                  "additional_identifiers": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "value": {
                          "maxLength": 200,
                          "minLength": 1,
                          "title": "Value",
                          "type": "string",
                          "description": "Value used to generate and validate the invoice."
                        },
                        "scheme_id": {
                          "maxLength": 35,
                          "minLength": 1,
                          "type": "string",
                          "title": "Scheme Id",
                          "nullable": true,
                          "description": "Scheme Id used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "value"
                      ],
                      "type": "object"
                    },
                    "maxItems": 20,
                    "title": "Additional Identifiers",
                    "type": "array",
                    "description": "Additional Identifiers used to generate and validate the invoice."
                  },
                  "endpoint_id": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string",
                    "title": "Endpoint Id",
                    "nullable": true,
                    "description": "Endpoint Id used to generate and validate the invoice."
                  },
                  "endpoint_scheme": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Endpoint Scheme",
                    "nullable": true,
                    "description": "Endpoint Scheme used to generate and validate the invoice."
                  },
                  "legal_information": {
                    "maxLength": 500,
                    "minLength": 1,
                    "type": "string",
                    "title": "Legal Information",
                    "nullable": true,
                    "description": "Legal Information used to generate and validate the invoice."
                  },
                  "contact_name": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Contact Name",
                    "nullable": true,
                    "description": "Contact Name used to generate and validate the invoice."
                  },
                  "contact_department": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Contact Department",
                    "nullable": true,
                    "description": "Contact Department used to generate and validate the invoice."
                  },
                  "phone": {
                    "maxLength": 50,
                    "minLength": 3,
                    "type": "string",
                    "title": "Phone",
                    "nullable": true,
                    "description": "Phone used to generate and validate the invoice."
                  },
                  "email": {
                    "maxLength": 254,
                    "minLength": 3,
                    "type": "string",
                    "title": "Email",
                    "nullable": true,
                    "description": "Email used to generate and validate the invoice."
                  }
                },
                "required": [
                  "name",
                  "address"
                ],
                "title": "Party",
                "type": "object",
                "description": "Party used to generate and validate the invoice."
              },
              "buyer": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "maxLength": 200,
                    "minLength": 1,
                    "title": "Name",
                    "type": "string",
                    "description": "Name used to generate and validate the invoice."
                  },
                  "address": {
                    "additionalProperties": false,
                    "properties": {
                      "line1": {
                        "maxLength": 100,
                        "minLength": 1,
                        "title": "Line1",
                        "type": "string",
                        "description": "Line1 used to generate and validate the invoice."
                      },
                      "line2": {
                        "maxLength": 100,
                        "type": "string",
                        "title": "Line2",
                        "nullable": true,
                        "description": "Line2 used to generate and validate the invoice."
                      },
                      "line3": {
                        "maxLength": 100,
                        "type": "string",
                        "title": "Line3",
                        "nullable": true,
                        "description": "Line3 used to generate and validate the invoice."
                      },
                      "city": {
                        "maxLength": 60,
                        "minLength": 1,
                        "title": "City",
                        "type": "string",
                        "description": "City used to generate and validate the invoice."
                      },
                      "postal_code": {
                        "maxLength": 20,
                        "minLength": 1,
                        "title": "Postal Code",
                        "type": "string",
                        "description": "Postal Code used to generate and validate the invoice."
                      },
                      "country_code": {
                        "maxLength": 2,
                        "minLength": 2,
                        "title": "Country Code",
                        "type": "string",
                        "description": "Country Code used to generate and validate the invoice."
                      },
                      "region": {
                        "maxLength": 60,
                        "type": "string",
                        "title": "Region",
                        "nullable": true,
                        "description": "Region used to generate and validate the invoice."
                      }
                    },
                    "required": [
                      "line1",
                      "city",
                      "postal_code",
                      "country_code"
                    ],
                    "title": "Address",
                    "type": "object",
                    "description": "Address used to generate and validate the invoice."
                  },
                  "trading_name": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string",
                    "title": "Trading Name",
                    "nullable": true,
                    "description": "Trading Name used to generate and validate the invoice."
                  },
                  "vat_id": {
                    "maxLength": 30,
                    "minLength": 2,
                    "type": "string",
                    "title": "Vat Id",
                    "nullable": true,
                    "description": "Vat Id used to generate and validate the invoice."
                  },
                  "tax_id": {
                    "maxLength": 40,
                    "minLength": 2,
                    "type": "string",
                    "title": "Tax Id",
                    "nullable": true,
                    "description": "Tax Id used to generate and validate the invoice."
                  },
                  "registration_id": {
                    "maxLength": 60,
                    "minLength": 1,
                    "type": "string",
                    "title": "Registration Id",
                    "nullable": true,
                    "description": "Registration Id used to generate and validate the invoice."
                  },
                  "registration_scheme": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Registration Scheme",
                    "nullable": true,
                    "description": "Registration Scheme used to generate and validate the invoice."
                  },
                  "additional_identifiers": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "value": {
                          "maxLength": 200,
                          "minLength": 1,
                          "title": "Value",
                          "type": "string",
                          "description": "Value used to generate and validate the invoice."
                        },
                        "scheme_id": {
                          "maxLength": 35,
                          "minLength": 1,
                          "type": "string",
                          "title": "Scheme Id",
                          "nullable": true,
                          "description": "Scheme Id used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "value"
                      ],
                      "type": "object"
                    },
                    "maxItems": 20,
                    "title": "Additional Identifiers",
                    "type": "array",
                    "description": "Additional Identifiers used to generate and validate the invoice."
                  },
                  "endpoint_id": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string",
                    "title": "Endpoint Id",
                    "nullable": true,
                    "description": "Endpoint Id used to generate and validate the invoice."
                  },
                  "endpoint_scheme": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Endpoint Scheme",
                    "nullable": true,
                    "description": "Endpoint Scheme used to generate and validate the invoice."
                  },
                  "legal_information": {
                    "maxLength": 500,
                    "minLength": 1,
                    "type": "string",
                    "title": "Legal Information",
                    "nullable": true,
                    "description": "Legal Information used to generate and validate the invoice."
                  },
                  "contact_name": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Contact Name",
                    "nullable": true,
                    "description": "Contact Name used to generate and validate the invoice."
                  },
                  "contact_department": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Contact Department",
                    "nullable": true,
                    "description": "Contact Department used to generate and validate the invoice."
                  },
                  "phone": {
                    "maxLength": 50,
                    "minLength": 3,
                    "type": "string",
                    "title": "Phone",
                    "nullable": true,
                    "description": "Phone used to generate and validate the invoice."
                  },
                  "email": {
                    "maxLength": 254,
                    "minLength": 3,
                    "type": "string",
                    "title": "Email",
                    "nullable": true,
                    "description": "Email used to generate and validate the invoice."
                  }
                },
                "required": [
                  "name",
                  "address"
                ],
                "title": "Party",
                "type": "object",
                "description": "Party used to generate and validate the invoice."
              },
              "payee": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "maxLength": 200,
                    "minLength": 1,
                    "title": "Name",
                    "type": "string",
                    "description": "Name used to generate and validate the invoice."
                  },
                  "address": {
                    "additionalProperties": false,
                    "properties": {
                      "line1": {
                        "maxLength": 100,
                        "minLength": 1,
                        "title": "Line1",
                        "type": "string",
                        "description": "Line1 used to generate and validate the invoice."
                      },
                      "line2": {
                        "maxLength": 100,
                        "type": "string",
                        "title": "Line2",
                        "nullable": true,
                        "description": "Line2 used to generate and validate the invoice."
                      },
                      "line3": {
                        "maxLength": 100,
                        "type": "string",
                        "title": "Line3",
                        "nullable": true,
                        "description": "Line3 used to generate and validate the invoice."
                      },
                      "city": {
                        "maxLength": 60,
                        "minLength": 1,
                        "title": "City",
                        "type": "string",
                        "description": "City used to generate and validate the invoice."
                      },
                      "postal_code": {
                        "maxLength": 20,
                        "minLength": 1,
                        "title": "Postal Code",
                        "type": "string",
                        "description": "Postal Code used to generate and validate the invoice."
                      },
                      "country_code": {
                        "maxLength": 2,
                        "minLength": 2,
                        "title": "Country Code",
                        "type": "string",
                        "description": "Country Code used to generate and validate the invoice."
                      },
                      "region": {
                        "maxLength": 60,
                        "type": "string",
                        "title": "Region",
                        "nullable": true,
                        "description": "Region used to generate and validate the invoice."
                      }
                    },
                    "required": [
                      "line1",
                      "city",
                      "postal_code",
                      "country_code"
                    ],
                    "title": "Address",
                    "type": "object",
                    "description": "Address used to generate and validate the invoice."
                  },
                  "trading_name": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string",
                    "title": "Trading Name",
                    "nullable": true,
                    "description": "Trading Name used to generate and validate the invoice."
                  },
                  "vat_id": {
                    "maxLength": 30,
                    "minLength": 2,
                    "type": "string",
                    "title": "Vat Id",
                    "nullable": true,
                    "description": "Vat Id used to generate and validate the invoice."
                  },
                  "tax_id": {
                    "maxLength": 40,
                    "minLength": 2,
                    "type": "string",
                    "title": "Tax Id",
                    "nullable": true,
                    "description": "Tax Id used to generate and validate the invoice."
                  },
                  "registration_id": {
                    "maxLength": 60,
                    "minLength": 1,
                    "type": "string",
                    "title": "Registration Id",
                    "nullable": true,
                    "description": "Registration Id used to generate and validate the invoice."
                  },
                  "registration_scheme": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Registration Scheme",
                    "nullable": true,
                    "description": "Registration Scheme used to generate and validate the invoice."
                  },
                  "additional_identifiers": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "value": {
                          "maxLength": 200,
                          "minLength": 1,
                          "title": "Value",
                          "type": "string",
                          "description": "Value used to generate and validate the invoice."
                        },
                        "scheme_id": {
                          "maxLength": 35,
                          "minLength": 1,
                          "type": "string",
                          "title": "Scheme Id",
                          "nullable": true,
                          "description": "Scheme Id used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "value"
                      ],
                      "type": "object"
                    },
                    "maxItems": 20,
                    "title": "Additional Identifiers",
                    "type": "array",
                    "description": "Additional Identifiers used to generate and validate the invoice."
                  },
                  "endpoint_id": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string",
                    "title": "Endpoint Id",
                    "nullable": true,
                    "description": "Endpoint Id used to generate and validate the invoice."
                  },
                  "endpoint_scheme": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Endpoint Scheme",
                    "nullable": true,
                    "description": "Endpoint Scheme used to generate and validate the invoice."
                  },
                  "legal_information": {
                    "maxLength": 500,
                    "minLength": 1,
                    "type": "string",
                    "title": "Legal Information",
                    "nullable": true,
                    "description": "Legal Information used to generate and validate the invoice."
                  },
                  "contact_name": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Contact Name",
                    "nullable": true,
                    "description": "Contact Name used to generate and validate the invoice."
                  },
                  "contact_department": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Contact Department",
                    "nullable": true,
                    "description": "Contact Department used to generate and validate the invoice."
                  },
                  "phone": {
                    "maxLength": 50,
                    "minLength": 3,
                    "type": "string",
                    "title": "Phone",
                    "nullable": true,
                    "description": "Phone used to generate and validate the invoice."
                  },
                  "email": {
                    "maxLength": 254,
                    "minLength": 3,
                    "type": "string",
                    "title": "Email",
                    "nullable": true,
                    "description": "Email used to generate and validate the invoice."
                  }
                },
                "required": [
                  "name",
                  "address"
                ],
                "title": "Party",
                "type": "object",
                "nullable": true,
                "description": "Party used to generate and validate the invoice."
              },
              "seller_tax_representative": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "maxLength": 200,
                    "minLength": 1,
                    "title": "Name",
                    "type": "string",
                    "description": "Name used to generate and validate the invoice."
                  },
                  "address": {
                    "additionalProperties": false,
                    "properties": {
                      "line1": {
                        "maxLength": 100,
                        "minLength": 1,
                        "title": "Line1",
                        "type": "string",
                        "description": "Line1 used to generate and validate the invoice."
                      },
                      "line2": {
                        "maxLength": 100,
                        "type": "string",
                        "title": "Line2",
                        "nullable": true,
                        "description": "Line2 used to generate and validate the invoice."
                      },
                      "line3": {
                        "maxLength": 100,
                        "type": "string",
                        "title": "Line3",
                        "nullable": true,
                        "description": "Line3 used to generate and validate the invoice."
                      },
                      "city": {
                        "maxLength": 60,
                        "minLength": 1,
                        "title": "City",
                        "type": "string",
                        "description": "City used to generate and validate the invoice."
                      },
                      "postal_code": {
                        "maxLength": 20,
                        "minLength": 1,
                        "title": "Postal Code",
                        "type": "string",
                        "description": "Postal Code used to generate and validate the invoice."
                      },
                      "country_code": {
                        "maxLength": 2,
                        "minLength": 2,
                        "title": "Country Code",
                        "type": "string",
                        "description": "Country Code used to generate and validate the invoice."
                      },
                      "region": {
                        "maxLength": 60,
                        "type": "string",
                        "title": "Region",
                        "nullable": true,
                        "description": "Region used to generate and validate the invoice."
                      }
                    },
                    "required": [
                      "line1",
                      "city",
                      "postal_code",
                      "country_code"
                    ],
                    "title": "Address",
                    "type": "object",
                    "description": "Address used to generate and validate the invoice."
                  },
                  "trading_name": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string",
                    "title": "Trading Name",
                    "nullable": true,
                    "description": "Trading Name used to generate and validate the invoice."
                  },
                  "vat_id": {
                    "maxLength": 30,
                    "minLength": 2,
                    "type": "string",
                    "title": "Vat Id",
                    "nullable": true,
                    "description": "Vat Id used to generate and validate the invoice."
                  },
                  "tax_id": {
                    "maxLength": 40,
                    "minLength": 2,
                    "type": "string",
                    "title": "Tax Id",
                    "nullable": true,
                    "description": "Tax Id used to generate and validate the invoice."
                  },
                  "registration_id": {
                    "maxLength": 60,
                    "minLength": 1,
                    "type": "string",
                    "title": "Registration Id",
                    "nullable": true,
                    "description": "Registration Id used to generate and validate the invoice."
                  },
                  "registration_scheme": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Registration Scheme",
                    "nullable": true,
                    "description": "Registration Scheme used to generate and validate the invoice."
                  },
                  "additional_identifiers": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "value": {
                          "maxLength": 200,
                          "minLength": 1,
                          "title": "Value",
                          "type": "string",
                          "description": "Value used to generate and validate the invoice."
                        },
                        "scheme_id": {
                          "maxLength": 35,
                          "minLength": 1,
                          "type": "string",
                          "title": "Scheme Id",
                          "nullable": true,
                          "description": "Scheme Id used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "value"
                      ],
                      "type": "object"
                    },
                    "maxItems": 20,
                    "title": "Additional Identifiers",
                    "type": "array",
                    "description": "Additional Identifiers used to generate and validate the invoice."
                  },
                  "endpoint_id": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string",
                    "title": "Endpoint Id",
                    "nullable": true,
                    "description": "Endpoint Id used to generate and validate the invoice."
                  },
                  "endpoint_scheme": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Endpoint Scheme",
                    "nullable": true,
                    "description": "Endpoint Scheme used to generate and validate the invoice."
                  },
                  "legal_information": {
                    "maxLength": 500,
                    "minLength": 1,
                    "type": "string",
                    "title": "Legal Information",
                    "nullable": true,
                    "description": "Legal Information used to generate and validate the invoice."
                  },
                  "contact_name": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Contact Name",
                    "nullable": true,
                    "description": "Contact Name used to generate and validate the invoice."
                  },
                  "contact_department": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Contact Department",
                    "nullable": true,
                    "description": "Contact Department used to generate and validate the invoice."
                  },
                  "phone": {
                    "maxLength": 50,
                    "minLength": 3,
                    "type": "string",
                    "title": "Phone",
                    "nullable": true,
                    "description": "Phone used to generate and validate the invoice."
                  },
                  "email": {
                    "maxLength": 254,
                    "minLength": 3,
                    "type": "string",
                    "title": "Email",
                    "nullable": true,
                    "description": "Email used to generate and validate the invoice."
                  }
                },
                "required": [
                  "name",
                  "address"
                ],
                "title": "Party",
                "type": "object",
                "nullable": true,
                "description": "Party used to generate and validate the invoice."
              },
              "delivery_address": {
                "additionalProperties": false,
                "properties": {
                  "line1": {
                    "maxLength": 100,
                    "minLength": 1,
                    "title": "Line1",
                    "type": "string",
                    "description": "Line1 used to generate and validate the invoice."
                  },
                  "line2": {
                    "maxLength": 100,
                    "type": "string",
                    "title": "Line2",
                    "nullable": true,
                    "description": "Line2 used to generate and validate the invoice."
                  },
                  "line3": {
                    "maxLength": 100,
                    "type": "string",
                    "title": "Line3",
                    "nullable": true,
                    "description": "Line3 used to generate and validate the invoice."
                  },
                  "city": {
                    "maxLength": 60,
                    "minLength": 1,
                    "title": "City",
                    "type": "string",
                    "description": "City used to generate and validate the invoice."
                  },
                  "postal_code": {
                    "maxLength": 20,
                    "minLength": 1,
                    "title": "Postal Code",
                    "type": "string",
                    "description": "Postal Code used to generate and validate the invoice."
                  },
                  "country_code": {
                    "maxLength": 2,
                    "minLength": 2,
                    "title": "Country Code",
                    "type": "string",
                    "description": "Country Code used to generate and validate the invoice."
                  },
                  "region": {
                    "maxLength": 60,
                    "type": "string",
                    "title": "Region",
                    "nullable": true,
                    "description": "Region used to generate and validate the invoice."
                  }
                },
                "required": [
                  "line1",
                  "city",
                  "postal_code",
                  "country_code"
                ],
                "title": "Address",
                "type": "object",
                "nullable": true,
                "description": "Address used to generate and validate the invoice."
              },
              "delivery_location_id": {
                "additionalProperties": false,
                "properties": {
                  "value": {
                    "maxLength": 200,
                    "minLength": 1,
                    "title": "Value",
                    "type": "string",
                    "description": "Value used to generate and validate the invoice."
                  },
                  "scheme_id": {
                    "maxLength": 35,
                    "minLength": 1,
                    "type": "string",
                    "title": "Scheme Id",
                    "nullable": true,
                    "description": "Scheme Id used to generate and validate the invoice."
                  }
                },
                "required": [
                  "value"
                ],
                "title": "Identifier",
                "type": "object",
                "nullable": true,
                "description": "Identifier used to generate and validate the invoice."
              },
              "delivery_party_name": {
                "maxLength": 200,
                "minLength": 1,
                "type": "string",
                "title": "Delivery Party Name",
                "nullable": true,
                "description": "Delivery Party Name used to generate and validate the invoice."
              },
              "lines": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Id",
                      "nullable": true,
                      "description": "Id used to generate and validate the invoice."
                    },
                    "name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Name",
                      "nullable": true,
                      "description": "Name used to generate and validate the invoice."
                    },
                    "description": {
                      "maxLength": 1000,
                      "minLength": 1,
                      "title": "Description",
                      "type": "string",
                      "description": "Description used to generate and validate the invoice."
                    },
                    "note": {
                      "maxLength": 500,
                      "minLength": 1,
                      "type": "string",
                      "title": "Note",
                      "nullable": true,
                      "description": "Note used to generate and validate the invoice."
                    },
                    "quantity": {
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                      "type": "string",
                      "title": "Quantity",
                      "description": "Quantity used to generate and validate the invoice."
                    },
                    "unit_code": {
                      "default": "C62",
                      "maxLength": 3,
                      "minLength": 2,
                      "title": "Unit Code",
                      "type": "string",
                      "description": "Unit Code used to generate and validate the invoice."
                    },
                    "unit_price": {
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                      "type": "string",
                      "title": "Unit Price",
                      "description": "Unit Price used to generate and validate the invoice."
                    },
                    "price_base_quantity": {
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                      "type": "string",
                      "default": "1",
                      "title": "Price Base Quantity",
                      "description": "Price Base Quantity used to generate and validate the invoice."
                    },
                    "price_base_unit_code": {
                      "maxLength": 3,
                      "minLength": 2,
                      "type": "string",
                      "title": "Price Base Unit Code",
                      "nullable": true,
                      "description": "Price Base Unit Code used to generate and validate the invoice."
                    },
                    "gross_unit_price": {
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                      "type": "string",
                      "title": "Gross Unit Price",
                      "nullable": true,
                      "description": "Gross Unit Price used to generate and validate the invoice."
                    },
                    "gross_price_discount": {
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                      "type": "string",
                      "title": "Gross Price Discount",
                      "nullable": true,
                      "description": "Gross Price Discount used to generate and validate the invoice."
                    },
                    "tax_rate": {
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                      "type": "string",
                      "title": "Tax Rate",
                      "description": "Tax Rate used to generate and validate the invoice."
                    },
                    "tax_category": {
                      "default": "S",
                      "maxLength": 3,
                      "minLength": 1,
                      "title": "Tax Category",
                      "type": "string",
                      "description": "Tax Category used to generate and validate the invoice."
                    },
                    "tax_exemption_reason": {
                      "maxLength": 500,
                      "type": "string",
                      "title": "Tax Exemption Reason",
                      "nullable": true,
                      "description": "Tax Exemption Reason used to generate and validate the invoice."
                    },
                    "tax_exemption_reason_code": {
                      "maxLength": 35,
                      "type": "string",
                      "title": "Tax Exemption Reason Code",
                      "nullable": true,
                      "description": "Tax Exemption Reason Code used to generate and validate the invoice."
                    },
                    "allowances_charges": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "is_charge": {
                            "title": "Is Charge",
                            "type": "boolean",
                            "description": "Is Charge used to generate and validate the invoice."
                          },
                          "amount": {
                            "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "type": "string",
                            "title": "Amount",
                            "description": "Amount used to generate and validate the invoice."
                          },
                          "base_amount": {
                            "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "type": "string",
                            "title": "Base Amount",
                            "nullable": true,
                            "description": "Base Amount used to generate and validate the invoice."
                          },
                          "percentage": {
                            "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "type": "string",
                            "title": "Percentage",
                            "nullable": true,
                            "description": "Percentage used to generate and validate the invoice."
                          },
                          "reason": {
                            "maxLength": 500,
                            "minLength": 1,
                            "title": "Reason",
                            "type": "string",
                            "description": "Reason used to generate and validate the invoice."
                          },
                          "reason_code": {
                            "maxLength": 35,
                            "minLength": 1,
                            "type": "string",
                            "title": "Reason Code",
                            "nullable": true,
                            "description": "Reason Code used to generate and validate the invoice."
                          },
                          "tax_category": {
                            "maxLength": 3,
                            "minLength": 1,
                            "type": "string",
                            "title": "Tax Category",
                            "nullable": true,
                            "description": "Tax Category used to generate and validate the invoice."
                          },
                          "tax_rate": {
                            "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "type": "string",
                            "title": "Tax Rate",
                            "nullable": true,
                            "description": "Tax Rate used to generate and validate the invoice."
                          },
                          "tax_exemption_reason": {
                            "maxLength": 500,
                            "minLength": 1,
                            "type": "string",
                            "title": "Tax Exemption Reason",
                            "nullable": true,
                            "description": "Tax Exemption Reason used to generate and validate the invoice."
                          },
                          "tax_exemption_reason_code": {
                            "maxLength": 35,
                            "minLength": 1,
                            "type": "string",
                            "title": "Tax Exemption Reason Code",
                            "nullable": true,
                            "description": "Tax Exemption Reason Code used to generate and validate the invoice."
                          }
                        },
                        "required": [
                          "is_charge",
                          "amount",
                          "reason"
                        ],
                        "type": "object"
                      },
                      "maxItems": 100,
                      "title": "Allowances Charges",
                      "type": "array",
                      "description": "Allowances Charges used to generate and validate the invoice."
                    },
                    "period": {
                      "additionalProperties": false,
                      "properties": {
                        "start_date": {
                          "type": "string",
                          "title": "Start Date",
                          "nullable": true,
                          "description": "Start Date used to generate and validate the invoice.",
                          "editor": "datepicker",
                          "dateType": "absolute"
                        },
                        "end_date": {
                          "type": "string",
                          "title": "End Date",
                          "nullable": true,
                          "description": "End Date used to generate and validate the invoice.",
                          "editor": "datepicker",
                          "dateType": "absolute"
                        },
                        "description_code": {
                          "maxLength": 35,
                          "minLength": 1,
                          "type": "string",
                          "title": "Description Code",
                          "nullable": true,
                          "description": "Description Code used to generate and validate the invoice."
                        }
                      },
                      "title": "Period",
                      "type": "object",
                      "nullable": true,
                      "description": "Period used to generate and validate the invoice."
                    },
                    "accounting_cost": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Accounting Cost",
                      "nullable": true,
                      "description": "Accounting Cost used to generate and validate the invoice."
                    },
                    "purchase_order_line_reference": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Purchase Order Line Reference",
                      "nullable": true,
                      "description": "Purchase Order Line Reference used to generate and validate the invoice."
                    },
                    "object_identifier": {
                      "additionalProperties": false,
                      "properties": {
                        "value": {
                          "maxLength": 200,
                          "minLength": 1,
                          "title": "Value",
                          "type": "string",
                          "description": "Value used to generate and validate the invoice."
                        },
                        "scheme_id": {
                          "maxLength": 35,
                          "minLength": 1,
                          "type": "string",
                          "title": "Scheme Id",
                          "nullable": true,
                          "description": "Scheme Id used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "value"
                      ],
                      "title": "Identifier",
                      "type": "object",
                      "nullable": true,
                      "description": "Identifier used to generate and validate the invoice."
                    },
                    "seller_item_id": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Seller Item Id",
                      "nullable": true,
                      "description": "Seller Item Id used to generate and validate the invoice."
                    },
                    "buyer_item_id": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Buyer Item Id",
                      "nullable": true,
                      "description": "Buyer Item Id used to generate and validate the invoice."
                    },
                    "standard_item_id": {
                      "additionalProperties": false,
                      "properties": {
                        "value": {
                          "maxLength": 200,
                          "minLength": 1,
                          "title": "Value",
                          "type": "string",
                          "description": "Value used to generate and validate the invoice."
                        },
                        "scheme_id": {
                          "maxLength": 35,
                          "minLength": 1,
                          "type": "string",
                          "title": "Scheme Id",
                          "nullable": true,
                          "description": "Scheme Id used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "value"
                      ],
                      "title": "Identifier",
                      "type": "object",
                      "nullable": true,
                      "description": "Identifier used to generate and validate the invoice."
                    },
                    "classifications": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "value": {
                            "maxLength": 200,
                            "minLength": 1,
                            "title": "Value",
                            "type": "string",
                            "description": "Value used to generate and validate the invoice."
                          },
                          "scheme_id": {
                            "maxLength": 35,
                            "minLength": 1,
                            "title": "Scheme Id",
                            "type": "string",
                            "description": "Scheme Id used to generate and validate the invoice."
                          },
                          "scheme_version": {
                            "maxLength": 35,
                            "minLength": 1,
                            "type": "string",
                            "title": "Scheme Version",
                            "nullable": true,
                            "description": "Scheme Version used to generate and validate the invoice."
                          }
                        },
                        "required": [
                          "value",
                          "scheme_id"
                        ],
                        "type": "object"
                      },
                      "maxItems": 20,
                      "title": "Classifications",
                      "type": "array",
                      "description": "Classifications used to generate and validate the invoice."
                    },
                    "attributes": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "name": {
                            "maxLength": 100,
                            "minLength": 1,
                            "title": "Name",
                            "type": "string",
                            "description": "Name used to generate and validate the invoice."
                          },
                          "value": {
                            "maxLength": 500,
                            "minLength": 1,
                            "title": "Value",
                            "type": "string",
                            "description": "Value used to generate and validate the invoice."
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "maxItems": 50,
                      "title": "Attributes",
                      "type": "array",
                      "description": "Attributes used to generate and validate the invoice."
                    },
                    "origin_country_code": {
                      "maxLength": 2,
                      "minLength": 2,
                      "type": "string",
                      "title": "Origin Country Code",
                      "nullable": true,
                      "description": "Origin Country Code used to generate and validate the invoice."
                    }
                  },
                  "required": [
                    "description",
                    "quantity",
                    "unit_price",
                    "tax_rate"
                  ],
                  "type": "object"
                },
                "maxItems": 1000,
                "minItems": 1,
                "title": "Lines",
                "type": "array",
                "description": "Lines used to generate and validate the invoice."
              },
              "document_allowances_charges": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "is_charge": {
                      "title": "Is Charge",
                      "type": "boolean",
                      "description": "Is Charge used to generate and validate the invoice."
                    },
                    "amount": {
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                      "type": "string",
                      "title": "Amount",
                      "description": "Amount used to generate and validate the invoice."
                    },
                    "base_amount": {
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                      "type": "string",
                      "title": "Base Amount",
                      "nullable": true,
                      "description": "Base Amount used to generate and validate the invoice."
                    },
                    "percentage": {
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                      "type": "string",
                      "title": "Percentage",
                      "nullable": true,
                      "description": "Percentage used to generate and validate the invoice."
                    },
                    "reason": {
                      "maxLength": 500,
                      "minLength": 1,
                      "title": "Reason",
                      "type": "string",
                      "description": "Reason used to generate and validate the invoice."
                    },
                    "reason_code": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Reason Code",
                      "nullable": true,
                      "description": "Reason Code used to generate and validate the invoice."
                    },
                    "tax_category": {
                      "maxLength": 3,
                      "minLength": 1,
                      "type": "string",
                      "title": "Tax Category",
                      "nullable": true,
                      "description": "Tax Category used to generate and validate the invoice."
                    },
                    "tax_rate": {
                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                      "type": "string",
                      "title": "Tax Rate",
                      "nullable": true,
                      "description": "Tax Rate used to generate and validate the invoice."
                    },
                    "tax_exemption_reason": {
                      "maxLength": 500,
                      "minLength": 1,
                      "type": "string",
                      "title": "Tax Exemption Reason",
                      "nullable": true,
                      "description": "Tax Exemption Reason used to generate and validate the invoice."
                    },
                    "tax_exemption_reason_code": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Tax Exemption Reason Code",
                      "nullable": true,
                      "description": "Tax Exemption Reason Code used to generate and validate the invoice."
                    }
                  },
                  "required": [
                    "is_charge",
                    "amount",
                    "reason"
                  ],
                  "type": "object"
                },
                "maxItems": 100,
                "title": "Document Allowances Charges",
                "type": "array",
                "description": "Document Allowances Charges used to generate and validate the invoice."
              },
              "payment": {
                "additionalProperties": false,
                "properties": {
                  "means_code": {
                    "default": "30",
                    "maxLength": 3,
                    "minLength": 1,
                    "title": "Means Code",
                    "type": "string",
                    "description": "Means Code used to generate and validate the invoice."
                  },
                  "means_text": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Means Text",
                    "nullable": true,
                    "description": "Means Text used to generate and validate the invoice."
                  },
                  "reference": {
                    "maxLength": 140,
                    "type": "string",
                    "title": "Reference",
                    "nullable": true,
                    "description": "Reference used to generate and validate the invoice."
                  },
                  "account_id": {
                    "maxLength": 70,
                    "minLength": 1,
                    "type": "string",
                    "title": "Account Id",
                    "nullable": true,
                    "description": "Account Id used to generate and validate the invoice."
                  },
                  "account_name": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string",
                    "title": "Account Name",
                    "nullable": true,
                    "description": "Account Name used to generate and validate the invoice."
                  },
                  "iban": {
                    "maxLength": 34,
                    "minLength": 5,
                    "type": "string",
                    "title": "Iban",
                    "nullable": true,
                    "description": "Iban used to generate and validate the invoice."
                  },
                  "bic": {
                    "maxLength": 11,
                    "minLength": 8,
                    "type": "string",
                    "title": "Bic",
                    "nullable": true,
                    "description": "Bic used to generate and validate the invoice."
                  },
                  "bank_name": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string",
                    "title": "Bank Name",
                    "nullable": true,
                    "description": "Bank Name used to generate and validate the invoice."
                  },
                  "mandate_reference": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Mandate Reference",
                    "nullable": true,
                    "description": "Mandate Reference used to generate and validate the invoice."
                  },
                  "creditor_identifier": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Creditor Identifier",
                    "nullable": true,
                    "description": "Creditor Identifier used to generate and validate the invoice."
                  },
                  "payer_account_id": {
                    "maxLength": 70,
                    "minLength": 1,
                    "type": "string",
                    "title": "Payer Account Id",
                    "nullable": true,
                    "description": "Payer Account Id used to generate and validate the invoice."
                  },
                  "card_primary_account_number": {
                    "maxLength": 6,
                    "minLength": 4,
                    "type": "string",
                    "title": "Card Primary Account Number",
                    "nullable": true,
                    "description": "Card Primary Account Number used to generate and validate the invoice."
                  },
                  "card_holder_name": {
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string",
                    "title": "Card Holder Name",
                    "nullable": true,
                    "description": "Card Holder Name used to generate and validate the invoice."
                  }
                },
                "title": "Payment",
                "type": "object",
                "description": "Payment used to generate and validate the invoice."
              },
              "payment_terms": {
                "maxLength": 1000,
                "minLength": 1,
                "type": "string",
                "title": "Payment Terms",
                "nullable": true,
                "description": "Payment Terms used to generate and validate the invoice."
              },
              "prepaid_amount": {
                "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                "type": "string",
                "default": "0",
                "title": "Prepaid Amount",
                "description": "Prepaid Amount used to generate and validate the invoice."
              },
              "rounding_amount": {
                "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                "type": "string",
                "default": "0",
                "title": "Rounding Amount",
                "description": "Rounding Amount used to generate and validate the invoice."
              },
              "notes": {
                "items": {
                  "type": "string"
                },
                "maxItems": 20,
                "title": "Notes",
                "type": "array",
                "description": "Notes used to generate and validate the invoice."
              },
              "preceding_invoices": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Id",
                      "type": "string",
                      "description": "Id used to generate and validate the invoice."
                    },
                    "issue_date": {
                      "type": "string",
                      "title": "Issue Date",
                      "nullable": true,
                      "description": "Issue Date used to generate and validate the invoice.",
                      "editor": "datepicker",
                      "dateType": "absolute"
                    },
                    "type_code": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Type Code",
                      "nullable": true,
                      "description": "Type Code used to generate and validate the invoice."
                    },
                    "description": {
                      "maxLength": 500,
                      "minLength": 1,
                      "type": "string",
                      "title": "Description",
                      "nullable": true,
                      "description": "Description used to generate and validate the invoice."
                    },
                    "id_scheme": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Id Scheme",
                      "nullable": true,
                      "description": "Id Scheme used to generate and validate the invoice."
                    },
                    "attachment": {
                      "additionalProperties": false,
                      "properties": {
                        "filename": {
                          "maxLength": 200,
                          "minLength": 1,
                          "type": "string",
                          "title": "Filename",
                          "nullable": true,
                          "description": "Filename used to generate and validate the invoice."
                        },
                        "mime_type": {
                          "maxLength": 100,
                          "minLength": 3,
                          "type": "string",
                          "title": "Mime Type",
                          "nullable": true,
                          "description": "Mime Type used to generate and validate the invoice."
                        },
                        "description": {
                          "maxLength": 500,
                          "minLength": 1,
                          "type": "string",
                          "title": "Description",
                          "nullable": true,
                          "description": "Description used to generate and validate the invoice."
                        },
                        "content_base64": {
                          "type": "string",
                          "title": "Content Base64",
                          "nullable": true,
                          "description": "Content Base64 used to generate and validate the invoice."
                        },
                        "external_uri": {
                          "maxLength": 2000,
                          "minLength": 1,
                          "type": "string",
                          "title": "External Uri",
                          "nullable": true,
                          "description": "External Uri used to generate and validate the invoice."
                        }
                      },
                      "title": "Attachment",
                      "type": "object",
                      "nullable": true,
                      "description": "Attachment used to generate and validate the invoice."
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "type": "object"
                },
                "maxItems": 100,
                "title": "Preceding Invoices",
                "type": "array",
                "description": "Preceding Invoices used to generate and validate the invoice."
              },
              "supporting_documents": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "id": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Id",
                      "type": "string",
                      "description": "Id used to generate and validate the invoice."
                    },
                    "issue_date": {
                      "type": "string",
                      "title": "Issue Date",
                      "nullable": true,
                      "description": "Issue Date used to generate and validate the invoice.",
                      "editor": "datepicker",
                      "dateType": "absolute"
                    },
                    "type_code": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Type Code",
                      "nullable": true,
                      "description": "Type Code used to generate and validate the invoice."
                    },
                    "description": {
                      "maxLength": 500,
                      "minLength": 1,
                      "type": "string",
                      "title": "Description",
                      "nullable": true,
                      "description": "Description used to generate and validate the invoice."
                    },
                    "id_scheme": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Id Scheme",
                      "nullable": true,
                      "description": "Id Scheme used to generate and validate the invoice."
                    },
                    "attachment": {
                      "additionalProperties": false,
                      "properties": {
                        "filename": {
                          "maxLength": 200,
                          "minLength": 1,
                          "type": "string",
                          "title": "Filename",
                          "nullable": true,
                          "description": "Filename used to generate and validate the invoice."
                        },
                        "mime_type": {
                          "maxLength": 100,
                          "minLength": 3,
                          "type": "string",
                          "title": "Mime Type",
                          "nullable": true,
                          "description": "Mime Type used to generate and validate the invoice."
                        },
                        "description": {
                          "maxLength": 500,
                          "minLength": 1,
                          "type": "string",
                          "title": "Description",
                          "nullable": true,
                          "description": "Description used to generate and validate the invoice."
                        },
                        "content_base64": {
                          "type": "string",
                          "title": "Content Base64",
                          "nullable": true,
                          "description": "Content Base64 used to generate and validate the invoice."
                        },
                        "external_uri": {
                          "maxLength": 2000,
                          "minLength": 1,
                          "type": "string",
                          "title": "External Uri",
                          "nullable": true,
                          "description": "External Uri used to generate and validate the invoice."
                        }
                      },
                      "title": "Attachment",
                      "type": "object",
                      "nullable": true,
                      "description": "Attachment used to generate and validate the invoice."
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "type": "object"
                },
                "maxItems": 100,
                "title": "Supporting Documents",
                "type": "array",
                "description": "Supporting Documents used to generate and validate the invoice."
              },
              "extensions": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "fatturapa": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "transmission_format": {
                        "type": "string",
                        "enum": [
                          "FPR12",
                          "FPA12"
                        ],
                        "title": "Transmission format",
                        "description": "Transmission format used to generate and validate the invoice."
                      },
                      "document_type": {
                        "type": "string",
                        "enum": [
                          "TD01",
                          "TD04",
                          "TD05"
                        ],
                        "title": "Document type",
                        "description": "Document type used to generate and validate the invoice."
                      },
                      "recipient_code": {
                        "type": "string",
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9]{6,7}$",
                        "title": "Recipient code",
                        "description": "Recipient code used to generate and validate the invoice."
                      },
                      "recipient_pec": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256,
                        "title": "Recipient pec",
                        "description": "Recipient pec used to generate and validate the invoice."
                      },
                      "transmission_progressive": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10,
                        "title": "Transmission progressive",
                        "description": "Transmission progressive used to generate and validate the invoice."
                      },
                      "seller_tax_regime": {
                        "type": "string",
                        "enum": [
                          "RF01",
                          "RF02",
                          "RF04",
                          "RF05",
                          "RF06",
                          "RF07",
                          "RF08",
                          "RF09",
                          "RF10",
                          "RF11",
                          "RF12",
                          "RF13",
                          "RF14",
                          "RF15",
                          "RF16",
                          "RF17",
                          "RF18",
                          "RF19",
                          "RF20"
                        ],
                        "title": "Seller tax regime",
                        "description": "Seller tax regime used to generate and validate the invoice."
                      },
                      "system_issuer": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10,
                        "title": "System issuer",
                        "description": "System issuer used to generate and validate the invoice."
                      },
                      "transmitter": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "vat_id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 30,
                            "title": "Vat id",
                            "description": "Vat id used to generate and validate the invoice."
                          },
                          "country_code": {
                            "type": "string",
                            "minLength": 1,
                            "pattern": "^[A-Za-z]{2}$",
                            "title": "Country code",
                            "description": "Country code used to generate and validate the invoice."
                          },
                          "phone": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 12,
                            "title": "Phone",
                            "description": "Phone used to generate and validate the invoice."
                          },
                          "email": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256,
                            "title": "Email",
                            "description": "Email used to generate and validate the invoice."
                          }
                        },
                        "required": [
                          "vat_id",
                          "country_code"
                        ],
                        "title": "Transmitter",
                        "description": "Transmitter used to generate and validate the invoice."
                      },
                      "natura": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "E": {
                            "type": "string",
                            "enum": [
                              "N1",
                              "N2.1",
                              "N2.2",
                              "N3.1",
                              "N3.2",
                              "N3.3",
                              "N3.4",
                              "N3.5",
                              "N3.6",
                              "N4",
                              "N5",
                              "N6.1",
                              "N6.2",
                              "N6.3",
                              "N6.4",
                              "N6.5",
                              "N6.6",
                              "N6.7",
                              "N6.8",
                              "N6.9",
                              "N7"
                            ],
                            "title": "E",
                            "description": "E used to generate and validate the invoice."
                          },
                          "G": {
                            "type": "string",
                            "enum": [
                              "N1",
                              "N2.1",
                              "N2.2",
                              "N3.1",
                              "N3.2",
                              "N3.3",
                              "N3.4",
                              "N3.5",
                              "N3.6",
                              "N4",
                              "N5",
                              "N6.1",
                              "N6.2",
                              "N6.3",
                              "N6.4",
                              "N6.5",
                              "N6.6",
                              "N6.7",
                              "N6.8",
                              "N6.9",
                              "N7"
                            ],
                            "title": "G",
                            "description": "G used to generate and validate the invoice."
                          },
                          "O": {
                            "type": "string",
                            "enum": [
                              "N1",
                              "N2.1",
                              "N2.2",
                              "N3.1",
                              "N3.2",
                              "N3.3",
                              "N3.4",
                              "N3.5",
                              "N3.6",
                              "N4",
                              "N5",
                              "N6.1",
                              "N6.2",
                              "N6.3",
                              "N6.4",
                              "N6.5",
                              "N6.6",
                              "N6.7",
                              "N6.8",
                              "N6.9",
                              "N7"
                            ],
                            "title": "O",
                            "description": "O used to generate and validate the invoice."
                          },
                          "Z": {
                            "type": "string",
                            "enum": [
                              "N1",
                              "N2.1",
                              "N2.2",
                              "N3.1",
                              "N3.2",
                              "N3.3",
                              "N3.4",
                              "N3.5",
                              "N3.6",
                              "N4",
                              "N5",
                              "N6.1",
                              "N6.2",
                              "N6.3",
                              "N6.4",
                              "N6.5",
                              "N6.6",
                              "N6.7",
                              "N6.8",
                              "N6.9",
                              "N7"
                            ],
                            "title": "Z",
                            "description": "Z used to generate and validate the invoice."
                          },
                          "AE": {
                            "type": "string",
                            "enum": [
                              "N1",
                              "N2.1",
                              "N2.2",
                              "N3.1",
                              "N3.2",
                              "N3.3",
                              "N3.4",
                              "N3.5",
                              "N3.6",
                              "N4",
                              "N5",
                              "N6.1",
                              "N6.2",
                              "N6.3",
                              "N6.4",
                              "N6.5",
                              "N6.6",
                              "N6.7",
                              "N6.8",
                              "N6.9",
                              "N7"
                            ],
                            "title": "Ae",
                            "description": "Ae used to generate and validate the invoice."
                          },
                          "K": {
                            "type": "string",
                            "enum": [
                              "N1",
                              "N2.1",
                              "N2.2",
                              "N3.1",
                              "N3.2",
                              "N3.3",
                              "N3.4",
                              "N3.5",
                              "N3.6",
                              "N4",
                              "N5",
                              "N6.1",
                              "N6.2",
                              "N6.3",
                              "N6.4",
                              "N6.5",
                              "N6.6",
                              "N6.7",
                              "N6.8",
                              "N6.9",
                              "N7"
                            ],
                            "title": "K",
                            "description": "K used to generate and validate the invoice."
                          },
                          "L": {
                            "type": "string",
                            "enum": [
                              "N1",
                              "N2.1",
                              "N2.2",
                              "N3.1",
                              "N3.2",
                              "N3.3",
                              "N3.4",
                              "N3.5",
                              "N3.6",
                              "N4",
                              "N5",
                              "N6.1",
                              "N6.2",
                              "N6.3",
                              "N6.4",
                              "N6.5",
                              "N6.6",
                              "N6.7",
                              "N6.8",
                              "N6.9",
                              "N7"
                            ],
                            "title": "L",
                            "description": "L used to generate and validate the invoice."
                          },
                          "M": {
                            "type": "string",
                            "enum": [
                              "N1",
                              "N2.1",
                              "N2.2",
                              "N3.1",
                              "N3.2",
                              "N3.3",
                              "N3.4",
                              "N3.5",
                              "N3.6",
                              "N4",
                              "N5",
                              "N6.1",
                              "N6.2",
                              "N6.3",
                              "N6.4",
                              "N6.5",
                              "N6.6",
                              "N6.7",
                              "N6.8",
                              "N6.9",
                              "N7"
                            ],
                            "title": "M",
                            "description": "M used to generate and validate the invoice."
                          }
                        },
                        "title": "Natura",
                        "description": "Natura used to generate and validate the invoice."
                      },
                      "withholdings": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "RT01",
                                "RT02",
                                "RT03",
                                "RT04",
                                "RT05",
                                "RT06"
                              ],
                              "title": "Type",
                              "description": "Type used to generate and validate the invoice."
                            },
                            "amount": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "description": "Decimal string. JSON floating-point numbers are rejected.",
                              "title": "Amount"
                            },
                            "rate": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "description": "Decimal string. JSON floating-point numbers are rejected.",
                              "title": "Rate"
                            },
                            "payment_reason": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2,
                              "title": "Payment reason",
                              "description": "Payment reason used to generate and validate the invoice."
                            }
                          },
                          "required": [
                            "type",
                            "amount",
                            "rate",
                            "payment_reason"
                          ]
                        },
                        "maxItems": 20,
                        "title": "Withholdings",
                        "description": "Withholdings used to generate and validate the invoice."
                      },
                      "stamp_duty": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "amount": {
                            "type": "string",
                            "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                            "description": "Decimal string. JSON floating-point numbers are rejected.",
                            "title": "Amount"
                          },
                          "include_in_payable": {
                            "type": "boolean",
                            "title": "Include in payable",
                            "description": "Include in payable used to generate and validate the invoice."
                          }
                        },
                        "title": "Stamp duty",
                        "description": "Stamp duty used to generate and validate the invoice."
                      },
                      "social_security": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "fund_type": {
                              "type": "string",
                              "enum": [
                                "TC01",
                                "TC02",
                                "TC03",
                                "TC04",
                                "TC05",
                                "TC06",
                                "TC07",
                                "TC08",
                                "TC09",
                                "TC10",
                                "TC11",
                                "TC12",
                                "TC13",
                                "TC14",
                                "TC15",
                                "TC16",
                                "TC17",
                                "TC18",
                                "TC19",
                                "TC20",
                                "TC21",
                                "TC22"
                              ],
                              "title": "Fund type",
                              "description": "Fund type used to generate and validate the invoice."
                            },
                            "rate": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "description": "Decimal string. JSON floating-point numbers are rejected.",
                              "title": "Rate"
                            },
                            "amount": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "description": "Decimal string. JSON floating-point numbers are rejected.",
                              "title": "Amount"
                            },
                            "taxable_base": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "description": "Decimal string. JSON floating-point numbers are rejected.",
                              "title": "Taxable base"
                            },
                            "vat_rate": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "description": "Decimal string. JSON floating-point numbers are rejected.",
                              "title": "Vat rate"
                            },
                            "withholding": {
                              "type": "boolean",
                              "title": "Withholding",
                              "description": "Withholding used to generate and validate the invoice."
                            },
                            "natura": {
                              "type": "string",
                              "enum": [
                                "N1",
                                "N2.1",
                                "N2.2",
                                "N3.1",
                                "N3.2",
                                "N3.3",
                                "N3.4",
                                "N3.5",
                                "N3.6",
                                "N4",
                                "N5",
                                "N6.1",
                                "N6.2",
                                "N6.3",
                                "N6.4",
                                "N6.5",
                                "N6.6",
                                "N6.7",
                                "N6.8",
                                "N6.9",
                                "N7"
                              ],
                              "title": "Natura",
                              "description": "Natura used to generate and validate the invoice."
                            },
                            "administrative_reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 20,
                              "title": "Administrative reference",
                              "description": "Administrative reference used to generate and validate the invoice."
                            }
                          },
                          "required": [
                            "fund_type",
                            "rate",
                            "amount",
                            "vat_rate"
                          ]
                        },
                        "maxItems": 20,
                        "title": "Social security",
                        "description": "Social security used to generate and validate the invoice."
                      },
                      "vat_collectability": {
                        "type": "string",
                        "enum": [
                          "D",
                          "I",
                          "S"
                        ],
                        "title": "Vat collectability",
                        "description": "Vat collectability used to generate and validate the invoice."
                      },
                      "payment_terms": {
                        "type": "string",
                        "enum": [
                          "TP01",
                          "TP02",
                          "TP03"
                        ],
                        "title": "Payment terms",
                        "description": "Payment terms used to generate and validate the invoice."
                      },
                      "payments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "beneficiary": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "title": "Beneficiary",
                              "description": "Beneficiary used to generate and validate the invoice."
                            },
                            "method": {
                              "type": "string",
                              "enum": [
                                "MP01",
                                "MP02",
                                "MP03",
                                "MP04",
                                "MP05",
                                "MP06",
                                "MP07",
                                "MP08",
                                "MP09",
                                "MP10",
                                "MP11",
                                "MP12",
                                "MP13",
                                "MP14",
                                "MP15",
                                "MP16",
                                "MP17",
                                "MP18",
                                "MP19",
                                "MP20",
                                "MP21",
                                "MP22",
                                "MP23"
                              ],
                              "title": "Method",
                              "description": "Method used to generate and validate the invoice."
                            },
                            "reference_date": {
                              "type": "string",
                              "title": "Reference date",
                              "description": "Reference date used to generate and validate the invoice.",
                              "editor": "datepicker",
                              "dateType": "absolute"
                            },
                            "days": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 999,
                              "title": "Days",
                              "description": "Days used to generate and validate the invoice."
                            },
                            "due_date": {
                              "type": "string",
                              "title": "Due date",
                              "description": "Due date used to generate and validate the invoice.",
                              "editor": "datepicker",
                              "dateType": "absolute"
                            },
                            "amount": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "description": "Decimal string. JSON floating-point numbers are rejected.",
                              "title": "Amount"
                            },
                            "bank_name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80,
                              "title": "Bank name",
                              "description": "Bank name used to generate and validate the invoice."
                            },
                            "iban": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 34,
                              "title": "Iban",
                              "description": "Iban used to generate and validate the invoice."
                            },
                            "abi": {
                              "type": "string",
                              "minLength": 1,
                              "pattern": "^[0-9]{5}$",
                              "title": "Abi",
                              "description": "Abi used to generate and validate the invoice."
                            },
                            "cab": {
                              "type": "string",
                              "minLength": 1,
                              "pattern": "^[0-9]{5}$",
                              "title": "Cab",
                              "description": "Cab used to generate and validate the invoice."
                            },
                            "bic": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 11,
                              "title": "Bic",
                              "description": "Bic used to generate and validate the invoice."
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 60,
                              "title": "Code",
                              "description": "Code used to generate and validate the invoice."
                            }
                          },
                          "required": [
                            "method",
                            "amount"
                          ]
                        },
                        "maxItems": 100,
                        "minItems": 1,
                        "title": "Payments",
                        "description": "Payments used to generate and validate the invoice."
                      },
                      "references": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "orders": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "line_numbers": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 9999
                                  },
                                  "maxItems": 1000,
                                  "title": "Line numbers",
                                  "description": "Line numbers used to generate and validate the invoice."
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "title": "Id",
                                  "description": "Id used to generate and validate the invoice."
                                },
                                "date": {
                                  "type": "string",
                                  "title": "Date",
                                  "description": "Date used to generate and validate the invoice.",
                                  "editor": "datepicker",
                                  "dateType": "absolute"
                                },
                                "item_number": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "title": "Item number",
                                  "description": "Item number used to generate and validate the invoice."
                                },
                                "project_code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "title": "Project code",
                                  "description": "Project code used to generate and validate the invoice."
                                },
                                "cup": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 15,
                                  "title": "Cup",
                                  "description": "Cup used to generate and validate the invoice."
                                },
                                "cig": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 15,
                                  "title": "Cig",
                                  "description": "Cig used to generate and validate the invoice."
                                }
                              },
                              "required": [
                                "id"
                              ]
                            },
                            "maxItems": 100,
                            "title": "Orders",
                            "description": "Orders used to generate and validate the invoice."
                          },
                          "contracts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "line_numbers": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 9999
                                  },
                                  "maxItems": 1000,
                                  "title": "Line numbers",
                                  "description": "Line numbers used to generate and validate the invoice."
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "title": "Id",
                                  "description": "Id used to generate and validate the invoice."
                                },
                                "date": {
                                  "type": "string",
                                  "title": "Date",
                                  "description": "Date used to generate and validate the invoice.",
                                  "editor": "datepicker",
                                  "dateType": "absolute"
                                },
                                "item_number": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "title": "Item number",
                                  "description": "Item number used to generate and validate the invoice."
                                },
                                "project_code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "title": "Project code",
                                  "description": "Project code used to generate and validate the invoice."
                                },
                                "cup": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 15,
                                  "title": "Cup",
                                  "description": "Cup used to generate and validate the invoice."
                                },
                                "cig": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 15,
                                  "title": "Cig",
                                  "description": "Cig used to generate and validate the invoice."
                                }
                              },
                              "required": [
                                "id"
                              ]
                            },
                            "maxItems": 100,
                            "title": "Contracts",
                            "description": "Contracts used to generate and validate the invoice."
                          },
                          "agreements": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "line_numbers": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 9999
                                  },
                                  "maxItems": 1000,
                                  "title": "Line numbers",
                                  "description": "Line numbers used to generate and validate the invoice."
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "title": "Id",
                                  "description": "Id used to generate and validate the invoice."
                                },
                                "date": {
                                  "type": "string",
                                  "title": "Date",
                                  "description": "Date used to generate and validate the invoice.",
                                  "editor": "datepicker",
                                  "dateType": "absolute"
                                },
                                "item_number": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "title": "Item number",
                                  "description": "Item number used to generate and validate the invoice."
                                },
                                "project_code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "title": "Project code",
                                  "description": "Project code used to generate and validate the invoice."
                                },
                                "cup": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 15,
                                  "title": "Cup",
                                  "description": "Cup used to generate and validate the invoice."
                                },
                                "cig": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 15,
                                  "title": "Cig",
                                  "description": "Cig used to generate and validate the invoice."
                                }
                              },
                              "required": [
                                "id"
                              ]
                            },
                            "maxItems": 100,
                            "title": "Agreements",
                            "description": "Agreements used to generate and validate the invoice."
                          },
                          "receipts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "line_numbers": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 9999
                                  },
                                  "maxItems": 1000,
                                  "title": "Line numbers",
                                  "description": "Line numbers used to generate and validate the invoice."
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "title": "Id",
                                  "description": "Id used to generate and validate the invoice."
                                },
                                "date": {
                                  "type": "string",
                                  "title": "Date",
                                  "description": "Date used to generate and validate the invoice.",
                                  "editor": "datepicker",
                                  "dateType": "absolute"
                                },
                                "item_number": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "title": "Item number",
                                  "description": "Item number used to generate and validate the invoice."
                                },
                                "project_code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "title": "Project code",
                                  "description": "Project code used to generate and validate the invoice."
                                },
                                "cup": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 15,
                                  "title": "Cup",
                                  "description": "Cup used to generate and validate the invoice."
                                },
                                "cig": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 15,
                                  "title": "Cig",
                                  "description": "Cig used to generate and validate the invoice."
                                }
                              },
                              "required": [
                                "id"
                              ]
                            },
                            "maxItems": 100,
                            "title": "Receipts",
                            "description": "Receipts used to generate and validate the invoice."
                          },
                          "linked_invoices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "line_numbers": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 9999
                                  },
                                  "maxItems": 1000,
                                  "title": "Line numbers",
                                  "description": "Line numbers used to generate and validate the invoice."
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "title": "Id",
                                  "description": "Id used to generate and validate the invoice."
                                },
                                "date": {
                                  "type": "string",
                                  "title": "Date",
                                  "description": "Date used to generate and validate the invoice.",
                                  "editor": "datepicker",
                                  "dateType": "absolute"
                                },
                                "item_number": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 20,
                                  "title": "Item number",
                                  "description": "Item number used to generate and validate the invoice."
                                },
                                "project_code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "title": "Project code",
                                  "description": "Project code used to generate and validate the invoice."
                                },
                                "cup": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 15,
                                  "title": "Cup",
                                  "description": "Cup used to generate and validate the invoice."
                                },
                                "cig": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 15,
                                  "title": "Cig",
                                  "description": "Cig used to generate and validate the invoice."
                                }
                              },
                              "required": [
                                "id"
                              ]
                            },
                            "maxItems": 100,
                            "title": "Linked invoices",
                            "description": "Linked invoices used to generate and validate the invoice."
                          }
                        },
                        "title": "References",
                        "description": "References used to generate and validate the invoice."
                      },
                      "line_options": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "line_number": {
                              "type": "integer",
                              "minimum": 1,
                              "title": "Line number",
                              "description": "Line number used to generate and validate the invoice."
                            },
                            "supply_type": {
                              "type": "string",
                              "enum": [
                                "SC",
                                "PR",
                                "AB",
                                "AC"
                              ],
                              "title": "Supply type",
                              "description": "Supply type used to generate and validate the invoice."
                            },
                            "withholding": {
                              "type": "boolean",
                              "title": "Withholding",
                              "description": "Withholding used to generate and validate the invoice."
                            },
                            "administrative_reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 20,
                              "title": "Administrative reference",
                              "description": "Administrative reference used to generate and validate the invoice."
                            },
                            "article_codes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 35,
                                    "title": "Type",
                                    "description": "Type used to generate and validate the invoice."
                                  },
                                  "value": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 35,
                                    "title": "Value",
                                    "description": "Value used to generate and validate the invoice."
                                  }
                                },
                                "required": [
                                  "type",
                                  "value"
                                ]
                              },
                              "maxItems": 20,
                              "title": "Article codes",
                              "description": "Article codes used to generate and validate the invoice."
                            },
                            "management_data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 10,
                                    "title": "Type",
                                    "description": "Type used to generate and validate the invoice."
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 60,
                                    "title": "Text",
                                    "description": "Text used to generate and validate the invoice."
                                  },
                                  "number": {
                                    "type": "string",
                                    "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                    "description": "Decimal string. JSON floating-point numbers are rejected.",
                                    "title": "Number"
                                  },
                                  "date": {
                                    "type": "string",
                                    "title": "Date",
                                    "description": "Date used to generate and validate the invoice.",
                                    "editor": "datepicker",
                                    "dateType": "absolute"
                                  }
                                },
                                "required": [
                                  "type"
                                ]
                              },
                              "maxItems": 20,
                              "title": "Management data",
                              "description": "Management data used to generate and validate the invoice."
                            }
                          },
                          "required": [
                            "line_number"
                          ]
                        },
                        "maxItems": 1000,
                        "title": "Line options",
                        "description": "Line options used to generate and validate the invoice."
                      },
                      "attachments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "filename": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 60,
                              "title": "Filename",
                              "description": "Filename used to generate and validate the invoice."
                            },
                            "media_type": {
                              "type": "string",
                              "enum": [
                                "application/pdf",
                                "image/png",
                                "image/jpeg",
                                "text/plain",
                                "text/csv",
                                "application/zip",
                                "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
                                "application/vnd.oasis.opendocument.spreadsheet"
                              ],
                              "title": "Media type",
                              "description": "Media type used to generate and validate the invoice."
                            },
                            "content_base64": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 8000000,
                              "title": "Content base64",
                              "description": "Content base64 used to generate and validate the invoice."
                            },
                            "compression": {
                              "type": "string",
                              "enum": [
                                "ZIP"
                              ],
                              "title": "Compression",
                              "description": "Compression used to generate and validate the invoice."
                            },
                            "format": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 10,
                              "title": "Format",
                              "description": "Format used to generate and validate the invoice."
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "title": "Description",
                              "description": "Description used to generate and validate the invoice."
                            }
                          },
                          "required": [
                            "filename",
                            "media_type",
                            "content_base64"
                          ]
                        },
                        "maxItems": 50,
                        "title": "Attachments",
                        "description": "Attachments used to generate and validate the invoice."
                      }
                    },
                    "required": [
                      "recipient_code"
                    ],
                    "description": "Strict FatturaPA-specific options. Unknown nested fields are rejected.",
                    "title": "Fatturapa"
                  }
                },
                "required": [
                  "fatturapa"
                ],
                "description": "Product-specific options. Unknown fields are rejected.",
                "title": "Extensions"
              }
            },
            "additionalProperties": false
          },
          "invoices": {
            "title": "Batch invoices",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Optional batch of up to 100 invoices. Do not use with invoice.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "invoice_number": {
                  "maxLength": 60,
                  "minLength": 1,
                  "title": "Invoice Number",
                  "type": "string",
                  "description": "Invoice Number used to generate and validate the invoice."
                },
                "document_kind": {
                  "default": "invoice",
                  "enum": [
                    "invoice",
                    "credit_note"
                  ],
                  "title": "Document Kind",
                  "type": "string",
                  "description": "Document Kind used to generate and validate the invoice."
                },
                "issue_date": {
                  "title": "Issue Date",
                  "type": "string",
                  "description": "Issue Date used to generate and validate the invoice.",
                  "editor": "datepicker",
                  "dateType": "absolute"
                },
                "due_date": {
                  "type": "string",
                  "title": "Due Date",
                  "nullable": true,
                  "description": "Due Date used to generate and validate the invoice.",
                  "editor": "datepicker",
                  "dateType": "absolute"
                },
                "tax_point_date": {
                  "type": "string",
                  "title": "Tax Point Date",
                  "nullable": true,
                  "description": "Tax Point Date used to generate and validate the invoice.",
                  "editor": "datepicker",
                  "dateType": "absolute"
                },
                "tax_point_date_code": {
                  "maxLength": 35,
                  "minLength": 1,
                  "type": "string",
                  "title": "Tax Point Date Code",
                  "nullable": true,
                  "description": "Tax Point Date Code used to generate and validate the invoice."
                },
                "delivery_date": {
                  "type": "string",
                  "title": "Delivery Date",
                  "nullable": true,
                  "description": "Delivery Date used to generate and validate the invoice.",
                  "editor": "datepicker",
                  "dateType": "absolute"
                },
                "invoice_period": {
                  "additionalProperties": false,
                  "properties": {
                    "start_date": {
                      "type": "string",
                      "title": "Start Date",
                      "nullable": true,
                      "description": "Start Date used to generate and validate the invoice.",
                      "editor": "datepicker",
                      "dateType": "absolute"
                    },
                    "end_date": {
                      "type": "string",
                      "title": "End Date",
                      "nullable": true,
                      "description": "End Date used to generate and validate the invoice.",
                      "editor": "datepicker",
                      "dateType": "absolute"
                    },
                    "description_code": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Description Code",
                      "nullable": true,
                      "description": "Description Code used to generate and validate the invoice."
                    }
                  },
                  "title": "Period",
                  "type": "object",
                  "nullable": true,
                  "description": "Period used to generate and validate the invoice."
                },
                "delivery_period": {
                  "additionalProperties": false,
                  "properties": {
                    "start_date": {
                      "type": "string",
                      "title": "Start Date",
                      "nullable": true,
                      "description": "Start Date used to generate and validate the invoice.",
                      "editor": "datepicker",
                      "dateType": "absolute"
                    },
                    "end_date": {
                      "type": "string",
                      "title": "End Date",
                      "nullable": true,
                      "description": "End Date used to generate and validate the invoice.",
                      "editor": "datepicker",
                      "dateType": "absolute"
                    },
                    "description_code": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Description Code",
                      "nullable": true,
                      "description": "Description Code used to generate and validate the invoice."
                    }
                  },
                  "title": "Period",
                  "type": "object",
                  "nullable": true,
                  "description": "Period used to generate and validate the invoice."
                },
                "currency": {
                  "default": "EUR",
                  "maxLength": 3,
                  "minLength": 3,
                  "title": "Currency",
                  "type": "string",
                  "description": "Currency used to generate and validate the invoice."
                },
                "tax_currency": {
                  "maxLength": 3,
                  "minLength": 3,
                  "type": "string",
                  "title": "Tax Currency",
                  "nullable": true,
                  "description": "Tax Currency used to generate and validate the invoice."
                },
                "tax_currency_tax_amount": {
                  "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                  "type": "string",
                  "title": "Tax Currency Tax Amount",
                  "nullable": true,
                  "description": "Tax Currency Tax Amount used to generate and validate the invoice."
                },
                "invoice_type_code": {
                  "default": "380",
                  "maxLength": 3,
                  "minLength": 2,
                  "title": "Invoice Type Code",
                  "type": "string",
                  "description": "Invoice Type Code used to generate and validate the invoice."
                },
                "buyer_reference": {
                  "maxLength": 100,
                  "type": "string",
                  "title": "Buyer Reference",
                  "nullable": true,
                  "description": "Buyer Reference used to generate and validate the invoice."
                },
                "purchase_order_reference": {
                  "maxLength": 100,
                  "type": "string",
                  "title": "Purchase Order Reference",
                  "nullable": true,
                  "description": "Purchase Order Reference used to generate and validate the invoice."
                },
                "sales_order_reference": {
                  "maxLength": 100,
                  "type": "string",
                  "title": "Sales Order Reference",
                  "nullable": true,
                  "description": "Sales Order Reference used to generate and validate the invoice."
                },
                "contract_reference": {
                  "maxLength": 100,
                  "type": "string",
                  "title": "Contract Reference",
                  "nullable": true,
                  "description": "Contract Reference used to generate and validate the invoice."
                },
                "project_reference": {
                  "maxLength": 100,
                  "type": "string",
                  "title": "Project Reference",
                  "nullable": true,
                  "description": "Project Reference used to generate and validate the invoice."
                },
                "project_name": {
                  "maxLength": 200,
                  "type": "string",
                  "title": "Project Name",
                  "nullable": true,
                  "description": "Project Name used to generate and validate the invoice."
                },
                "tender_reference": {
                  "maxLength": 100,
                  "type": "string",
                  "title": "Tender Reference",
                  "nullable": true,
                  "description": "Tender Reference used to generate and validate the invoice."
                },
                "receiving_advice_reference": {
                  "maxLength": 100,
                  "type": "string",
                  "title": "Receiving Advice Reference",
                  "nullable": true,
                  "description": "Receiving Advice Reference used to generate and validate the invoice."
                },
                "despatch_advice_reference": {
                  "maxLength": 100,
                  "type": "string",
                  "title": "Despatch Advice Reference",
                  "nullable": true,
                  "description": "Despatch Advice Reference used to generate and validate the invoice."
                },
                "accounting_cost": {
                  "maxLength": 200,
                  "type": "string",
                  "title": "Accounting Cost",
                  "nullable": true,
                  "description": "Accounting Cost used to generate and validate the invoice."
                },
                "seller": {
                  "additionalProperties": false,
                  "properties": {
                    "name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Name",
                      "type": "string",
                      "description": "Name used to generate and validate the invoice."
                    },
                    "address": {
                      "additionalProperties": false,
                      "properties": {
                        "line1": {
                          "maxLength": 100,
                          "minLength": 1,
                          "title": "Line1",
                          "type": "string",
                          "description": "Line1 used to generate and validate the invoice."
                        },
                        "line2": {
                          "maxLength": 100,
                          "type": "string",
                          "title": "Line2",
                          "nullable": true,
                          "description": "Line2 used to generate and validate the invoice."
                        },
                        "line3": {
                          "maxLength": 100,
                          "type": "string",
                          "title": "Line3",
                          "nullable": true,
                          "description": "Line3 used to generate and validate the invoice."
                        },
                        "city": {
                          "maxLength": 60,
                          "minLength": 1,
                          "title": "City",
                          "type": "string",
                          "description": "City used to generate and validate the invoice."
                        },
                        "postal_code": {
                          "maxLength": 20,
                          "minLength": 1,
                          "title": "Postal Code",
                          "type": "string",
                          "description": "Postal Code used to generate and validate the invoice."
                        },
                        "country_code": {
                          "maxLength": 2,
                          "minLength": 2,
                          "title": "Country Code",
                          "type": "string",
                          "description": "Country Code used to generate and validate the invoice."
                        },
                        "region": {
                          "maxLength": 60,
                          "type": "string",
                          "title": "Region",
                          "nullable": true,
                          "description": "Region used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "line1",
                        "city",
                        "postal_code",
                        "country_code"
                      ],
                      "title": "Address",
                      "type": "object",
                      "description": "Address used to generate and validate the invoice."
                    },
                    "trading_name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Trading Name",
                      "nullable": true,
                      "description": "Trading Name used to generate and validate the invoice."
                    },
                    "vat_id": {
                      "maxLength": 30,
                      "minLength": 2,
                      "type": "string",
                      "title": "Vat Id",
                      "nullable": true,
                      "description": "Vat Id used to generate and validate the invoice."
                    },
                    "tax_id": {
                      "maxLength": 40,
                      "minLength": 2,
                      "type": "string",
                      "title": "Tax Id",
                      "nullable": true,
                      "description": "Tax Id used to generate and validate the invoice."
                    },
                    "registration_id": {
                      "maxLength": 60,
                      "minLength": 1,
                      "type": "string",
                      "title": "Registration Id",
                      "nullable": true,
                      "description": "Registration Id used to generate and validate the invoice."
                    },
                    "registration_scheme": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Registration Scheme",
                      "nullable": true,
                      "description": "Registration Scheme used to generate and validate the invoice."
                    },
                    "additional_identifiers": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "value": {
                            "maxLength": 200,
                            "minLength": 1,
                            "title": "Value",
                            "type": "string",
                            "description": "Value used to generate and validate the invoice."
                          },
                          "scheme_id": {
                            "maxLength": 35,
                            "minLength": 1,
                            "type": "string",
                            "title": "Scheme Id",
                            "nullable": true,
                            "description": "Scheme Id used to generate and validate the invoice."
                          }
                        },
                        "required": [
                          "value"
                        ],
                        "type": "object"
                      },
                      "maxItems": 20,
                      "title": "Additional Identifiers",
                      "type": "array",
                      "description": "Additional Identifiers used to generate and validate the invoice."
                    },
                    "endpoint_id": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Endpoint Id",
                      "nullable": true,
                      "description": "Endpoint Id used to generate and validate the invoice."
                    },
                    "endpoint_scheme": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Endpoint Scheme",
                      "nullable": true,
                      "description": "Endpoint Scheme used to generate and validate the invoice."
                    },
                    "legal_information": {
                      "maxLength": 500,
                      "minLength": 1,
                      "type": "string",
                      "title": "Legal Information",
                      "nullable": true,
                      "description": "Legal Information used to generate and validate the invoice."
                    },
                    "contact_name": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Contact Name",
                      "nullable": true,
                      "description": "Contact Name used to generate and validate the invoice."
                    },
                    "contact_department": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Contact Department",
                      "nullable": true,
                      "description": "Contact Department used to generate and validate the invoice."
                    },
                    "phone": {
                      "maxLength": 50,
                      "minLength": 3,
                      "type": "string",
                      "title": "Phone",
                      "nullable": true,
                      "description": "Phone used to generate and validate the invoice."
                    },
                    "email": {
                      "maxLength": 254,
                      "minLength": 3,
                      "type": "string",
                      "title": "Email",
                      "nullable": true,
                      "description": "Email used to generate and validate the invoice."
                    }
                  },
                  "required": [
                    "name",
                    "address"
                  ],
                  "title": "Party",
                  "type": "object",
                  "description": "Party used to generate and validate the invoice."
                },
                "buyer": {
                  "additionalProperties": false,
                  "properties": {
                    "name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Name",
                      "type": "string",
                      "description": "Name used to generate and validate the invoice."
                    },
                    "address": {
                      "additionalProperties": false,
                      "properties": {
                        "line1": {
                          "maxLength": 100,
                          "minLength": 1,
                          "title": "Line1",
                          "type": "string",
                          "description": "Line1 used to generate and validate the invoice."
                        },
                        "line2": {
                          "maxLength": 100,
                          "type": "string",
                          "title": "Line2",
                          "nullable": true,
                          "description": "Line2 used to generate and validate the invoice."
                        },
                        "line3": {
                          "maxLength": 100,
                          "type": "string",
                          "title": "Line3",
                          "nullable": true,
                          "description": "Line3 used to generate and validate the invoice."
                        },
                        "city": {
                          "maxLength": 60,
                          "minLength": 1,
                          "title": "City",
                          "type": "string",
                          "description": "City used to generate and validate the invoice."
                        },
                        "postal_code": {
                          "maxLength": 20,
                          "minLength": 1,
                          "title": "Postal Code",
                          "type": "string",
                          "description": "Postal Code used to generate and validate the invoice."
                        },
                        "country_code": {
                          "maxLength": 2,
                          "minLength": 2,
                          "title": "Country Code",
                          "type": "string",
                          "description": "Country Code used to generate and validate the invoice."
                        },
                        "region": {
                          "maxLength": 60,
                          "type": "string",
                          "title": "Region",
                          "nullable": true,
                          "description": "Region used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "line1",
                        "city",
                        "postal_code",
                        "country_code"
                      ],
                      "title": "Address",
                      "type": "object",
                      "description": "Address used to generate and validate the invoice."
                    },
                    "trading_name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Trading Name",
                      "nullable": true,
                      "description": "Trading Name used to generate and validate the invoice."
                    },
                    "vat_id": {
                      "maxLength": 30,
                      "minLength": 2,
                      "type": "string",
                      "title": "Vat Id",
                      "nullable": true,
                      "description": "Vat Id used to generate and validate the invoice."
                    },
                    "tax_id": {
                      "maxLength": 40,
                      "minLength": 2,
                      "type": "string",
                      "title": "Tax Id",
                      "nullable": true,
                      "description": "Tax Id used to generate and validate the invoice."
                    },
                    "registration_id": {
                      "maxLength": 60,
                      "minLength": 1,
                      "type": "string",
                      "title": "Registration Id",
                      "nullable": true,
                      "description": "Registration Id used to generate and validate the invoice."
                    },
                    "registration_scheme": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Registration Scheme",
                      "nullable": true,
                      "description": "Registration Scheme used to generate and validate the invoice."
                    },
                    "additional_identifiers": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "value": {
                            "maxLength": 200,
                            "minLength": 1,
                            "title": "Value",
                            "type": "string",
                            "description": "Value used to generate and validate the invoice."
                          },
                          "scheme_id": {
                            "maxLength": 35,
                            "minLength": 1,
                            "type": "string",
                            "title": "Scheme Id",
                            "nullable": true,
                            "description": "Scheme Id used to generate and validate the invoice."
                          }
                        },
                        "required": [
                          "value"
                        ],
                        "type": "object"
                      },
                      "maxItems": 20,
                      "title": "Additional Identifiers",
                      "type": "array",
                      "description": "Additional Identifiers used to generate and validate the invoice."
                    },
                    "endpoint_id": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Endpoint Id",
                      "nullable": true,
                      "description": "Endpoint Id used to generate and validate the invoice."
                    },
                    "endpoint_scheme": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Endpoint Scheme",
                      "nullable": true,
                      "description": "Endpoint Scheme used to generate and validate the invoice."
                    },
                    "legal_information": {
                      "maxLength": 500,
                      "minLength": 1,
                      "type": "string",
                      "title": "Legal Information",
                      "nullable": true,
                      "description": "Legal Information used to generate and validate the invoice."
                    },
                    "contact_name": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Contact Name",
                      "nullable": true,
                      "description": "Contact Name used to generate and validate the invoice."
                    },
                    "contact_department": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Contact Department",
                      "nullable": true,
                      "description": "Contact Department used to generate and validate the invoice."
                    },
                    "phone": {
                      "maxLength": 50,
                      "minLength": 3,
                      "type": "string",
                      "title": "Phone",
                      "nullable": true,
                      "description": "Phone used to generate and validate the invoice."
                    },
                    "email": {
                      "maxLength": 254,
                      "minLength": 3,
                      "type": "string",
                      "title": "Email",
                      "nullable": true,
                      "description": "Email used to generate and validate the invoice."
                    }
                  },
                  "required": [
                    "name",
                    "address"
                  ],
                  "title": "Party",
                  "type": "object",
                  "description": "Party used to generate and validate the invoice."
                },
                "payee": {
                  "additionalProperties": false,
                  "properties": {
                    "name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Name",
                      "type": "string",
                      "description": "Name used to generate and validate the invoice."
                    },
                    "address": {
                      "additionalProperties": false,
                      "properties": {
                        "line1": {
                          "maxLength": 100,
                          "minLength": 1,
                          "title": "Line1",
                          "type": "string",
                          "description": "Line1 used to generate and validate the invoice."
                        },
                        "line2": {
                          "maxLength": 100,
                          "type": "string",
                          "title": "Line2",
                          "nullable": true,
                          "description": "Line2 used to generate and validate the invoice."
                        },
                        "line3": {
                          "maxLength": 100,
                          "type": "string",
                          "title": "Line3",
                          "nullable": true,
                          "description": "Line3 used to generate and validate the invoice."
                        },
                        "city": {
                          "maxLength": 60,
                          "minLength": 1,
                          "title": "City",
                          "type": "string",
                          "description": "City used to generate and validate the invoice."
                        },
                        "postal_code": {
                          "maxLength": 20,
                          "minLength": 1,
                          "title": "Postal Code",
                          "type": "string",
                          "description": "Postal Code used to generate and validate the invoice."
                        },
                        "country_code": {
                          "maxLength": 2,
                          "minLength": 2,
                          "title": "Country Code",
                          "type": "string",
                          "description": "Country Code used to generate and validate the invoice."
                        },
                        "region": {
                          "maxLength": 60,
                          "type": "string",
                          "title": "Region",
                          "nullable": true,
                          "description": "Region used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "line1",
                        "city",
                        "postal_code",
                        "country_code"
                      ],
                      "title": "Address",
                      "type": "object",
                      "description": "Address used to generate and validate the invoice."
                    },
                    "trading_name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Trading Name",
                      "nullable": true,
                      "description": "Trading Name used to generate and validate the invoice."
                    },
                    "vat_id": {
                      "maxLength": 30,
                      "minLength": 2,
                      "type": "string",
                      "title": "Vat Id",
                      "nullable": true,
                      "description": "Vat Id used to generate and validate the invoice."
                    },
                    "tax_id": {
                      "maxLength": 40,
                      "minLength": 2,
                      "type": "string",
                      "title": "Tax Id",
                      "nullable": true,
                      "description": "Tax Id used to generate and validate the invoice."
                    },
                    "registration_id": {
                      "maxLength": 60,
                      "minLength": 1,
                      "type": "string",
                      "title": "Registration Id",
                      "nullable": true,
                      "description": "Registration Id used to generate and validate the invoice."
                    },
                    "registration_scheme": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Registration Scheme",
                      "nullable": true,
                      "description": "Registration Scheme used to generate and validate the invoice."
                    },
                    "additional_identifiers": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "value": {
                            "maxLength": 200,
                            "minLength": 1,
                            "title": "Value",
                            "type": "string",
                            "description": "Value used to generate and validate the invoice."
                          },
                          "scheme_id": {
                            "maxLength": 35,
                            "minLength": 1,
                            "type": "string",
                            "title": "Scheme Id",
                            "nullable": true,
                            "description": "Scheme Id used to generate and validate the invoice."
                          }
                        },
                        "required": [
                          "value"
                        ],
                        "type": "object"
                      },
                      "maxItems": 20,
                      "title": "Additional Identifiers",
                      "type": "array",
                      "description": "Additional Identifiers used to generate and validate the invoice."
                    },
                    "endpoint_id": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Endpoint Id",
                      "nullable": true,
                      "description": "Endpoint Id used to generate and validate the invoice."
                    },
                    "endpoint_scheme": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Endpoint Scheme",
                      "nullable": true,
                      "description": "Endpoint Scheme used to generate and validate the invoice."
                    },
                    "legal_information": {
                      "maxLength": 500,
                      "minLength": 1,
                      "type": "string",
                      "title": "Legal Information",
                      "nullable": true,
                      "description": "Legal Information used to generate and validate the invoice."
                    },
                    "contact_name": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Contact Name",
                      "nullable": true,
                      "description": "Contact Name used to generate and validate the invoice."
                    },
                    "contact_department": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Contact Department",
                      "nullable": true,
                      "description": "Contact Department used to generate and validate the invoice."
                    },
                    "phone": {
                      "maxLength": 50,
                      "minLength": 3,
                      "type": "string",
                      "title": "Phone",
                      "nullable": true,
                      "description": "Phone used to generate and validate the invoice."
                    },
                    "email": {
                      "maxLength": 254,
                      "minLength": 3,
                      "type": "string",
                      "title": "Email",
                      "nullable": true,
                      "description": "Email used to generate and validate the invoice."
                    }
                  },
                  "required": [
                    "name",
                    "address"
                  ],
                  "title": "Party",
                  "type": "object",
                  "nullable": true,
                  "description": "Party used to generate and validate the invoice."
                },
                "seller_tax_representative": {
                  "additionalProperties": false,
                  "properties": {
                    "name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Name",
                      "type": "string",
                      "description": "Name used to generate and validate the invoice."
                    },
                    "address": {
                      "additionalProperties": false,
                      "properties": {
                        "line1": {
                          "maxLength": 100,
                          "minLength": 1,
                          "title": "Line1",
                          "type": "string",
                          "description": "Line1 used to generate and validate the invoice."
                        },
                        "line2": {
                          "maxLength": 100,
                          "type": "string",
                          "title": "Line2",
                          "nullable": true,
                          "description": "Line2 used to generate and validate the invoice."
                        },
                        "line3": {
                          "maxLength": 100,
                          "type": "string",
                          "title": "Line3",
                          "nullable": true,
                          "description": "Line3 used to generate and validate the invoice."
                        },
                        "city": {
                          "maxLength": 60,
                          "minLength": 1,
                          "title": "City",
                          "type": "string",
                          "description": "City used to generate and validate the invoice."
                        },
                        "postal_code": {
                          "maxLength": 20,
                          "minLength": 1,
                          "title": "Postal Code",
                          "type": "string",
                          "description": "Postal Code used to generate and validate the invoice."
                        },
                        "country_code": {
                          "maxLength": 2,
                          "minLength": 2,
                          "title": "Country Code",
                          "type": "string",
                          "description": "Country Code used to generate and validate the invoice."
                        },
                        "region": {
                          "maxLength": 60,
                          "type": "string",
                          "title": "Region",
                          "nullable": true,
                          "description": "Region used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "line1",
                        "city",
                        "postal_code",
                        "country_code"
                      ],
                      "title": "Address",
                      "type": "object",
                      "description": "Address used to generate and validate the invoice."
                    },
                    "trading_name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Trading Name",
                      "nullable": true,
                      "description": "Trading Name used to generate and validate the invoice."
                    },
                    "vat_id": {
                      "maxLength": 30,
                      "minLength": 2,
                      "type": "string",
                      "title": "Vat Id",
                      "nullable": true,
                      "description": "Vat Id used to generate and validate the invoice."
                    },
                    "tax_id": {
                      "maxLength": 40,
                      "minLength": 2,
                      "type": "string",
                      "title": "Tax Id",
                      "nullable": true,
                      "description": "Tax Id used to generate and validate the invoice."
                    },
                    "registration_id": {
                      "maxLength": 60,
                      "minLength": 1,
                      "type": "string",
                      "title": "Registration Id",
                      "nullable": true,
                      "description": "Registration Id used to generate and validate the invoice."
                    },
                    "registration_scheme": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Registration Scheme",
                      "nullable": true,
                      "description": "Registration Scheme used to generate and validate the invoice."
                    },
                    "additional_identifiers": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "value": {
                            "maxLength": 200,
                            "minLength": 1,
                            "title": "Value",
                            "type": "string",
                            "description": "Value used to generate and validate the invoice."
                          },
                          "scheme_id": {
                            "maxLength": 35,
                            "minLength": 1,
                            "type": "string",
                            "title": "Scheme Id",
                            "nullable": true,
                            "description": "Scheme Id used to generate and validate the invoice."
                          }
                        },
                        "required": [
                          "value"
                        ],
                        "type": "object"
                      },
                      "maxItems": 20,
                      "title": "Additional Identifiers",
                      "type": "array",
                      "description": "Additional Identifiers used to generate and validate the invoice."
                    },
                    "endpoint_id": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Endpoint Id",
                      "nullable": true,
                      "description": "Endpoint Id used to generate and validate the invoice."
                    },
                    "endpoint_scheme": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Endpoint Scheme",
                      "nullable": true,
                      "description": "Endpoint Scheme used to generate and validate the invoice."
                    },
                    "legal_information": {
                      "maxLength": 500,
                      "minLength": 1,
                      "type": "string",
                      "title": "Legal Information",
                      "nullable": true,
                      "description": "Legal Information used to generate and validate the invoice."
                    },
                    "contact_name": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Contact Name",
                      "nullable": true,
                      "description": "Contact Name used to generate and validate the invoice."
                    },
                    "contact_department": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Contact Department",
                      "nullable": true,
                      "description": "Contact Department used to generate and validate the invoice."
                    },
                    "phone": {
                      "maxLength": 50,
                      "minLength": 3,
                      "type": "string",
                      "title": "Phone",
                      "nullable": true,
                      "description": "Phone used to generate and validate the invoice."
                    },
                    "email": {
                      "maxLength": 254,
                      "minLength": 3,
                      "type": "string",
                      "title": "Email",
                      "nullable": true,
                      "description": "Email used to generate and validate the invoice."
                    }
                  },
                  "required": [
                    "name",
                    "address"
                  ],
                  "title": "Party",
                  "type": "object",
                  "nullable": true,
                  "description": "Party used to generate and validate the invoice."
                },
                "delivery_address": {
                  "additionalProperties": false,
                  "properties": {
                    "line1": {
                      "maxLength": 100,
                      "minLength": 1,
                      "title": "Line1",
                      "type": "string",
                      "description": "Line1 used to generate and validate the invoice."
                    },
                    "line2": {
                      "maxLength": 100,
                      "type": "string",
                      "title": "Line2",
                      "nullable": true,
                      "description": "Line2 used to generate and validate the invoice."
                    },
                    "line3": {
                      "maxLength": 100,
                      "type": "string",
                      "title": "Line3",
                      "nullable": true,
                      "description": "Line3 used to generate and validate the invoice."
                    },
                    "city": {
                      "maxLength": 60,
                      "minLength": 1,
                      "title": "City",
                      "type": "string",
                      "description": "City used to generate and validate the invoice."
                    },
                    "postal_code": {
                      "maxLength": 20,
                      "minLength": 1,
                      "title": "Postal Code",
                      "type": "string",
                      "description": "Postal Code used to generate and validate the invoice."
                    },
                    "country_code": {
                      "maxLength": 2,
                      "minLength": 2,
                      "title": "Country Code",
                      "type": "string",
                      "description": "Country Code used to generate and validate the invoice."
                    },
                    "region": {
                      "maxLength": 60,
                      "type": "string",
                      "title": "Region",
                      "nullable": true,
                      "description": "Region used to generate and validate the invoice."
                    }
                  },
                  "required": [
                    "line1",
                    "city",
                    "postal_code",
                    "country_code"
                  ],
                  "title": "Address",
                  "type": "object",
                  "nullable": true,
                  "description": "Address used to generate and validate the invoice."
                },
                "delivery_location_id": {
                  "additionalProperties": false,
                  "properties": {
                    "value": {
                      "maxLength": 200,
                      "minLength": 1,
                      "title": "Value",
                      "type": "string",
                      "description": "Value used to generate and validate the invoice."
                    },
                    "scheme_id": {
                      "maxLength": 35,
                      "minLength": 1,
                      "type": "string",
                      "title": "Scheme Id",
                      "nullable": true,
                      "description": "Scheme Id used to generate and validate the invoice."
                    }
                  },
                  "required": [
                    "value"
                  ],
                  "title": "Identifier",
                  "type": "object",
                  "nullable": true,
                  "description": "Identifier used to generate and validate the invoice."
                },
                "delivery_party_name": {
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string",
                  "title": "Delivery Party Name",
                  "nullable": true,
                  "description": "Delivery Party Name used to generate and validate the invoice."
                },
                "lines": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "maxLength": 100,
                        "minLength": 1,
                        "type": "string",
                        "title": "Id",
                        "nullable": true,
                        "description": "Id used to generate and validate the invoice."
                      },
                      "name": {
                        "maxLength": 200,
                        "minLength": 1,
                        "type": "string",
                        "title": "Name",
                        "nullable": true,
                        "description": "Name used to generate and validate the invoice."
                      },
                      "description": {
                        "maxLength": 1000,
                        "minLength": 1,
                        "title": "Description",
                        "type": "string",
                        "description": "Description used to generate and validate the invoice."
                      },
                      "note": {
                        "maxLength": 500,
                        "minLength": 1,
                        "type": "string",
                        "title": "Note",
                        "nullable": true,
                        "description": "Note used to generate and validate the invoice."
                      },
                      "quantity": {
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "type": "string",
                        "title": "Quantity",
                        "description": "Quantity used to generate and validate the invoice."
                      },
                      "unit_code": {
                        "default": "C62",
                        "maxLength": 3,
                        "minLength": 2,
                        "title": "Unit Code",
                        "type": "string",
                        "description": "Unit Code used to generate and validate the invoice."
                      },
                      "unit_price": {
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "type": "string",
                        "title": "Unit Price",
                        "description": "Unit Price used to generate and validate the invoice."
                      },
                      "price_base_quantity": {
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "type": "string",
                        "default": "1",
                        "title": "Price Base Quantity",
                        "description": "Price Base Quantity used to generate and validate the invoice."
                      },
                      "price_base_unit_code": {
                        "maxLength": 3,
                        "minLength": 2,
                        "type": "string",
                        "title": "Price Base Unit Code",
                        "nullable": true,
                        "description": "Price Base Unit Code used to generate and validate the invoice."
                      },
                      "gross_unit_price": {
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "type": "string",
                        "title": "Gross Unit Price",
                        "nullable": true,
                        "description": "Gross Unit Price used to generate and validate the invoice."
                      },
                      "gross_price_discount": {
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "type": "string",
                        "title": "Gross Price Discount",
                        "nullable": true,
                        "description": "Gross Price Discount used to generate and validate the invoice."
                      },
                      "tax_rate": {
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "type": "string",
                        "title": "Tax Rate",
                        "description": "Tax Rate used to generate and validate the invoice."
                      },
                      "tax_category": {
                        "default": "S",
                        "maxLength": 3,
                        "minLength": 1,
                        "title": "Tax Category",
                        "type": "string",
                        "description": "Tax Category used to generate and validate the invoice."
                      },
                      "tax_exemption_reason": {
                        "maxLength": 500,
                        "type": "string",
                        "title": "Tax Exemption Reason",
                        "nullable": true,
                        "description": "Tax Exemption Reason used to generate and validate the invoice."
                      },
                      "tax_exemption_reason_code": {
                        "maxLength": 35,
                        "type": "string",
                        "title": "Tax Exemption Reason Code",
                        "nullable": true,
                        "description": "Tax Exemption Reason Code used to generate and validate the invoice."
                      },
                      "allowances_charges": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "is_charge": {
                              "title": "Is Charge",
                              "type": "boolean",
                              "description": "Is Charge used to generate and validate the invoice."
                            },
                            "amount": {
                              "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "type": "string",
                              "title": "Amount",
                              "description": "Amount used to generate and validate the invoice."
                            },
                            "base_amount": {
                              "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "type": "string",
                              "title": "Base Amount",
                              "nullable": true,
                              "description": "Base Amount used to generate and validate the invoice."
                            },
                            "percentage": {
                              "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "type": "string",
                              "title": "Percentage",
                              "nullable": true,
                              "description": "Percentage used to generate and validate the invoice."
                            },
                            "reason": {
                              "maxLength": 500,
                              "minLength": 1,
                              "title": "Reason",
                              "type": "string",
                              "description": "Reason used to generate and validate the invoice."
                            },
                            "reason_code": {
                              "maxLength": 35,
                              "minLength": 1,
                              "type": "string",
                              "title": "Reason Code",
                              "nullable": true,
                              "description": "Reason Code used to generate and validate the invoice."
                            },
                            "tax_category": {
                              "maxLength": 3,
                              "minLength": 1,
                              "type": "string",
                              "title": "Tax Category",
                              "nullable": true,
                              "description": "Tax Category used to generate and validate the invoice."
                            },
                            "tax_rate": {
                              "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "type": "string",
                              "title": "Tax Rate",
                              "nullable": true,
                              "description": "Tax Rate used to generate and validate the invoice."
                            },
                            "tax_exemption_reason": {
                              "maxLength": 500,
                              "minLength": 1,
                              "type": "string",
                              "title": "Tax Exemption Reason",
                              "nullable": true,
                              "description": "Tax Exemption Reason used to generate and validate the invoice."
                            },
                            "tax_exemption_reason_code": {
                              "maxLength": 35,
                              "minLength": 1,
                              "type": "string",
                              "title": "Tax Exemption Reason Code",
                              "nullable": true,
                              "description": "Tax Exemption Reason Code used to generate and validate the invoice."
                            }
                          },
                          "required": [
                            "is_charge",
                            "amount",
                            "reason"
                          ],
                          "type": "object"
                        },
                        "maxItems": 100,
                        "title": "Allowances Charges",
                        "type": "array",
                        "description": "Allowances Charges used to generate and validate the invoice."
                      },
                      "period": {
                        "additionalProperties": false,
                        "properties": {
                          "start_date": {
                            "type": "string",
                            "title": "Start Date",
                            "nullable": true,
                            "description": "Start Date used to generate and validate the invoice.",
                            "editor": "datepicker",
                            "dateType": "absolute"
                          },
                          "end_date": {
                            "type": "string",
                            "title": "End Date",
                            "nullable": true,
                            "description": "End Date used to generate and validate the invoice.",
                            "editor": "datepicker",
                            "dateType": "absolute"
                          },
                          "description_code": {
                            "maxLength": 35,
                            "minLength": 1,
                            "type": "string",
                            "title": "Description Code",
                            "nullable": true,
                            "description": "Description Code used to generate and validate the invoice."
                          }
                        },
                        "title": "Period",
                        "type": "object",
                        "nullable": true,
                        "description": "Period used to generate and validate the invoice."
                      },
                      "accounting_cost": {
                        "maxLength": 200,
                        "minLength": 1,
                        "type": "string",
                        "title": "Accounting Cost",
                        "nullable": true,
                        "description": "Accounting Cost used to generate and validate the invoice."
                      },
                      "purchase_order_line_reference": {
                        "maxLength": 100,
                        "minLength": 1,
                        "type": "string",
                        "title": "Purchase Order Line Reference",
                        "nullable": true,
                        "description": "Purchase Order Line Reference used to generate and validate the invoice."
                      },
                      "object_identifier": {
                        "additionalProperties": false,
                        "properties": {
                          "value": {
                            "maxLength": 200,
                            "minLength": 1,
                            "title": "Value",
                            "type": "string",
                            "description": "Value used to generate and validate the invoice."
                          },
                          "scheme_id": {
                            "maxLength": 35,
                            "minLength": 1,
                            "type": "string",
                            "title": "Scheme Id",
                            "nullable": true,
                            "description": "Scheme Id used to generate and validate the invoice."
                          }
                        },
                        "required": [
                          "value"
                        ],
                        "title": "Identifier",
                        "type": "object",
                        "nullable": true,
                        "description": "Identifier used to generate and validate the invoice."
                      },
                      "seller_item_id": {
                        "maxLength": 100,
                        "minLength": 1,
                        "type": "string",
                        "title": "Seller Item Id",
                        "nullable": true,
                        "description": "Seller Item Id used to generate and validate the invoice."
                      },
                      "buyer_item_id": {
                        "maxLength": 100,
                        "minLength": 1,
                        "type": "string",
                        "title": "Buyer Item Id",
                        "nullable": true,
                        "description": "Buyer Item Id used to generate and validate the invoice."
                      },
                      "standard_item_id": {
                        "additionalProperties": false,
                        "properties": {
                          "value": {
                            "maxLength": 200,
                            "minLength": 1,
                            "title": "Value",
                            "type": "string",
                            "description": "Value used to generate and validate the invoice."
                          },
                          "scheme_id": {
                            "maxLength": 35,
                            "minLength": 1,
                            "type": "string",
                            "title": "Scheme Id",
                            "nullable": true,
                            "description": "Scheme Id used to generate and validate the invoice."
                          }
                        },
                        "required": [
                          "value"
                        ],
                        "title": "Identifier",
                        "type": "object",
                        "nullable": true,
                        "description": "Identifier used to generate and validate the invoice."
                      },
                      "classifications": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "value": {
                              "maxLength": 200,
                              "minLength": 1,
                              "title": "Value",
                              "type": "string",
                              "description": "Value used to generate and validate the invoice."
                            },
                            "scheme_id": {
                              "maxLength": 35,
                              "minLength": 1,
                              "title": "Scheme Id",
                              "type": "string",
                              "description": "Scheme Id used to generate and validate the invoice."
                            },
                            "scheme_version": {
                              "maxLength": 35,
                              "minLength": 1,
                              "type": "string",
                              "title": "Scheme Version",
                              "nullable": true,
                              "description": "Scheme Version used to generate and validate the invoice."
                            }
                          },
                          "required": [
                            "value",
                            "scheme_id"
                          ],
                          "type": "object"
                        },
                        "maxItems": 20,
                        "title": "Classifications",
                        "type": "array",
                        "description": "Classifications used to generate and validate the invoice."
                      },
                      "attributes": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "name": {
                              "maxLength": 100,
                              "minLength": 1,
                              "title": "Name",
                              "type": "string",
                              "description": "Name used to generate and validate the invoice."
                            },
                            "value": {
                              "maxLength": 500,
                              "minLength": 1,
                              "title": "Value",
                              "type": "string",
                              "description": "Value used to generate and validate the invoice."
                            }
                          },
                          "required": [
                            "name",
                            "value"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "title": "Attributes",
                        "type": "array",
                        "description": "Attributes used to generate and validate the invoice."
                      },
                      "origin_country_code": {
                        "maxLength": 2,
                        "minLength": 2,
                        "type": "string",
                        "title": "Origin Country Code",
                        "nullable": true,
                        "description": "Origin Country Code used to generate and validate the invoice."
                      }
                    },
                    "required": [
                      "description",
                      "quantity",
                      "unit_price",
                      "tax_rate"
                    ],
                    "type": "object"
                  },
                  "maxItems": 1000,
                  "minItems": 1,
                  "title": "Lines",
                  "type": "array",
                  "description": "Lines used to generate and validate the invoice."
                },
                "document_allowances_charges": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "is_charge": {
                        "title": "Is Charge",
                        "type": "boolean",
                        "description": "Is Charge used to generate and validate the invoice."
                      },
                      "amount": {
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "type": "string",
                        "title": "Amount",
                        "description": "Amount used to generate and validate the invoice."
                      },
                      "base_amount": {
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "type": "string",
                        "title": "Base Amount",
                        "nullable": true,
                        "description": "Base Amount used to generate and validate the invoice."
                      },
                      "percentage": {
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "type": "string",
                        "title": "Percentage",
                        "nullable": true,
                        "description": "Percentage used to generate and validate the invoice."
                      },
                      "reason": {
                        "maxLength": 500,
                        "minLength": 1,
                        "title": "Reason",
                        "type": "string",
                        "description": "Reason used to generate and validate the invoice."
                      },
                      "reason_code": {
                        "maxLength": 35,
                        "minLength": 1,
                        "type": "string",
                        "title": "Reason Code",
                        "nullable": true,
                        "description": "Reason Code used to generate and validate the invoice."
                      },
                      "tax_category": {
                        "maxLength": 3,
                        "minLength": 1,
                        "type": "string",
                        "title": "Tax Category",
                        "nullable": true,
                        "description": "Tax Category used to generate and validate the invoice."
                      },
                      "tax_rate": {
                        "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                        "type": "string",
                        "title": "Tax Rate",
                        "nullable": true,
                        "description": "Tax Rate used to generate and validate the invoice."
                      },
                      "tax_exemption_reason": {
                        "maxLength": 500,
                        "minLength": 1,
                        "type": "string",
                        "title": "Tax Exemption Reason",
                        "nullable": true,
                        "description": "Tax Exemption Reason used to generate and validate the invoice."
                      },
                      "tax_exemption_reason_code": {
                        "maxLength": 35,
                        "minLength": 1,
                        "type": "string",
                        "title": "Tax Exemption Reason Code",
                        "nullable": true,
                        "description": "Tax Exemption Reason Code used to generate and validate the invoice."
                      }
                    },
                    "required": [
                      "is_charge",
                      "amount",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "title": "Document Allowances Charges",
                  "type": "array",
                  "description": "Document Allowances Charges used to generate and validate the invoice."
                },
                "payment": {
                  "additionalProperties": false,
                  "properties": {
                    "means_code": {
                      "default": "30",
                      "maxLength": 3,
                      "minLength": 1,
                      "title": "Means Code",
                      "type": "string",
                      "description": "Means Code used to generate and validate the invoice."
                    },
                    "means_text": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Means Text",
                      "nullable": true,
                      "description": "Means Text used to generate and validate the invoice."
                    },
                    "reference": {
                      "maxLength": 140,
                      "type": "string",
                      "title": "Reference",
                      "nullable": true,
                      "description": "Reference used to generate and validate the invoice."
                    },
                    "account_id": {
                      "maxLength": 70,
                      "minLength": 1,
                      "type": "string",
                      "title": "Account Id",
                      "nullable": true,
                      "description": "Account Id used to generate and validate the invoice."
                    },
                    "account_name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Account Name",
                      "nullable": true,
                      "description": "Account Name used to generate and validate the invoice."
                    },
                    "iban": {
                      "maxLength": 34,
                      "minLength": 5,
                      "type": "string",
                      "title": "Iban",
                      "nullable": true,
                      "description": "Iban used to generate and validate the invoice."
                    },
                    "bic": {
                      "maxLength": 11,
                      "minLength": 8,
                      "type": "string",
                      "title": "Bic",
                      "nullable": true,
                      "description": "Bic used to generate and validate the invoice."
                    },
                    "bank_name": {
                      "maxLength": 200,
                      "minLength": 1,
                      "type": "string",
                      "title": "Bank Name",
                      "nullable": true,
                      "description": "Bank Name used to generate and validate the invoice."
                    },
                    "mandate_reference": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Mandate Reference",
                      "nullable": true,
                      "description": "Mandate Reference used to generate and validate the invoice."
                    },
                    "creditor_identifier": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Creditor Identifier",
                      "nullable": true,
                      "description": "Creditor Identifier used to generate and validate the invoice."
                    },
                    "payer_account_id": {
                      "maxLength": 70,
                      "minLength": 1,
                      "type": "string",
                      "title": "Payer Account Id",
                      "nullable": true,
                      "description": "Payer Account Id used to generate and validate the invoice."
                    },
                    "card_primary_account_number": {
                      "maxLength": 6,
                      "minLength": 4,
                      "type": "string",
                      "title": "Card Primary Account Number",
                      "nullable": true,
                      "description": "Card Primary Account Number used to generate and validate the invoice."
                    },
                    "card_holder_name": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string",
                      "title": "Card Holder Name",
                      "nullable": true,
                      "description": "Card Holder Name used to generate and validate the invoice."
                    }
                  },
                  "title": "Payment",
                  "type": "object",
                  "description": "Payment used to generate and validate the invoice."
                },
                "payment_terms": {
                  "maxLength": 1000,
                  "minLength": 1,
                  "type": "string",
                  "title": "Payment Terms",
                  "nullable": true,
                  "description": "Payment Terms used to generate and validate the invoice."
                },
                "prepaid_amount": {
                  "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                  "type": "string",
                  "default": "0",
                  "title": "Prepaid Amount",
                  "description": "Prepaid Amount used to generate and validate the invoice."
                },
                "rounding_amount": {
                  "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                  "type": "string",
                  "default": "0",
                  "title": "Rounding Amount",
                  "description": "Rounding Amount used to generate and validate the invoice."
                },
                "notes": {
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 20,
                  "title": "Notes",
                  "type": "array",
                  "description": "Notes used to generate and validate the invoice."
                },
                "preceding_invoices": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "maxLength": 200,
                        "minLength": 1,
                        "title": "Id",
                        "type": "string",
                        "description": "Id used to generate and validate the invoice."
                      },
                      "issue_date": {
                        "type": "string",
                        "title": "Issue Date",
                        "nullable": true,
                        "description": "Issue Date used to generate and validate the invoice.",
                        "editor": "datepicker",
                        "dateType": "absolute"
                      },
                      "type_code": {
                        "maxLength": 35,
                        "minLength": 1,
                        "type": "string",
                        "title": "Type Code",
                        "nullable": true,
                        "description": "Type Code used to generate and validate the invoice."
                      },
                      "description": {
                        "maxLength": 500,
                        "minLength": 1,
                        "type": "string",
                        "title": "Description",
                        "nullable": true,
                        "description": "Description used to generate and validate the invoice."
                      },
                      "id_scheme": {
                        "maxLength": 35,
                        "minLength": 1,
                        "type": "string",
                        "title": "Id Scheme",
                        "nullable": true,
                        "description": "Id Scheme used to generate and validate the invoice."
                      },
                      "attachment": {
                        "additionalProperties": false,
                        "properties": {
                          "filename": {
                            "maxLength": 200,
                            "minLength": 1,
                            "type": "string",
                            "title": "Filename",
                            "nullable": true,
                            "description": "Filename used to generate and validate the invoice."
                          },
                          "mime_type": {
                            "maxLength": 100,
                            "minLength": 3,
                            "type": "string",
                            "title": "Mime Type",
                            "nullable": true,
                            "description": "Mime Type used to generate and validate the invoice."
                          },
                          "description": {
                            "maxLength": 500,
                            "minLength": 1,
                            "type": "string",
                            "title": "Description",
                            "nullable": true,
                            "description": "Description used to generate and validate the invoice."
                          },
                          "content_base64": {
                            "type": "string",
                            "title": "Content Base64",
                            "nullable": true,
                            "description": "Content Base64 used to generate and validate the invoice."
                          },
                          "external_uri": {
                            "maxLength": 2000,
                            "minLength": 1,
                            "type": "string",
                            "title": "External Uri",
                            "nullable": true,
                            "description": "External Uri used to generate and validate the invoice."
                          }
                        },
                        "title": "Attachment",
                        "type": "object",
                        "nullable": true,
                        "description": "Attachment used to generate and validate the invoice."
                      }
                    },
                    "required": [
                      "id"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "title": "Preceding Invoices",
                  "type": "array",
                  "description": "Preceding Invoices used to generate and validate the invoice."
                },
                "supporting_documents": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "maxLength": 200,
                        "minLength": 1,
                        "title": "Id",
                        "type": "string",
                        "description": "Id used to generate and validate the invoice."
                      },
                      "issue_date": {
                        "type": "string",
                        "title": "Issue Date",
                        "nullable": true,
                        "description": "Issue Date used to generate and validate the invoice.",
                        "editor": "datepicker",
                        "dateType": "absolute"
                      },
                      "type_code": {
                        "maxLength": 35,
                        "minLength": 1,
                        "type": "string",
                        "title": "Type Code",
                        "nullable": true,
                        "description": "Type Code used to generate and validate the invoice."
                      },
                      "description": {
                        "maxLength": 500,
                        "minLength": 1,
                        "type": "string",
                        "title": "Description",
                        "nullable": true,
                        "description": "Description used to generate and validate the invoice."
                      },
                      "id_scheme": {
                        "maxLength": 35,
                        "minLength": 1,
                        "type": "string",
                        "title": "Id Scheme",
                        "nullable": true,
                        "description": "Id Scheme used to generate and validate the invoice."
                      },
                      "attachment": {
                        "additionalProperties": false,
                        "properties": {
                          "filename": {
                            "maxLength": 200,
                            "minLength": 1,
                            "type": "string",
                            "title": "Filename",
                            "nullable": true,
                            "description": "Filename used to generate and validate the invoice."
                          },
                          "mime_type": {
                            "maxLength": 100,
                            "minLength": 3,
                            "type": "string",
                            "title": "Mime Type",
                            "nullable": true,
                            "description": "Mime Type used to generate and validate the invoice."
                          },
                          "description": {
                            "maxLength": 500,
                            "minLength": 1,
                            "type": "string",
                            "title": "Description",
                            "nullable": true,
                            "description": "Description used to generate and validate the invoice."
                          },
                          "content_base64": {
                            "type": "string",
                            "title": "Content Base64",
                            "nullable": true,
                            "description": "Content Base64 used to generate and validate the invoice."
                          },
                          "external_uri": {
                            "maxLength": 2000,
                            "minLength": 1,
                            "type": "string",
                            "title": "External Uri",
                            "nullable": true,
                            "description": "External Uri used to generate and validate the invoice."
                          }
                        },
                        "title": "Attachment",
                        "type": "object",
                        "nullable": true,
                        "description": "Attachment used to generate and validate the invoice."
                      }
                    },
                    "required": [
                      "id"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "title": "Supporting Documents",
                  "type": "array",
                  "description": "Supporting Documents used to generate and validate the invoice."
                },
                "extensions": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "fatturapa": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "transmission_format": {
                          "type": "string",
                          "enum": [
                            "FPR12",
                            "FPA12"
                          ],
                          "title": "Transmission format",
                          "description": "Transmission format used to generate and validate the invoice."
                        },
                        "document_type": {
                          "type": "string",
                          "enum": [
                            "TD01",
                            "TD04",
                            "TD05"
                          ],
                          "title": "Document type",
                          "description": "Document type used to generate and validate the invoice."
                        },
                        "recipient_code": {
                          "type": "string",
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9]{6,7}$",
                          "title": "Recipient code",
                          "description": "Recipient code used to generate and validate the invoice."
                        },
                        "recipient_pec": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "title": "Recipient pec",
                          "description": "Recipient pec used to generate and validate the invoice."
                        },
                        "transmission_progressive": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "title": "Transmission progressive",
                          "description": "Transmission progressive used to generate and validate the invoice."
                        },
                        "seller_tax_regime": {
                          "type": "string",
                          "enum": [
                            "RF01",
                            "RF02",
                            "RF04",
                            "RF05",
                            "RF06",
                            "RF07",
                            "RF08",
                            "RF09",
                            "RF10",
                            "RF11",
                            "RF12",
                            "RF13",
                            "RF14",
                            "RF15",
                            "RF16",
                            "RF17",
                            "RF18",
                            "RF19",
                            "RF20"
                          ],
                          "title": "Seller tax regime",
                          "description": "Seller tax regime used to generate and validate the invoice."
                        },
                        "system_issuer": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "title": "System issuer",
                          "description": "System issuer used to generate and validate the invoice."
                        },
                        "transmitter": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "vat_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 30,
                              "title": "Vat id",
                              "description": "Vat id used to generate and validate the invoice."
                            },
                            "country_code": {
                              "type": "string",
                              "minLength": 1,
                              "pattern": "^[A-Za-z]{2}$",
                              "title": "Country code",
                              "description": "Country code used to generate and validate the invoice."
                            },
                            "phone": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 12,
                              "title": "Phone",
                              "description": "Phone used to generate and validate the invoice."
                            },
                            "email": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256,
                              "title": "Email",
                              "description": "Email used to generate and validate the invoice."
                            }
                          },
                          "required": [
                            "vat_id",
                            "country_code"
                          ],
                          "title": "Transmitter",
                          "description": "Transmitter used to generate and validate the invoice."
                        },
                        "natura": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "E": {
                              "type": "string",
                              "enum": [
                                "N1",
                                "N2.1",
                                "N2.2",
                                "N3.1",
                                "N3.2",
                                "N3.3",
                                "N3.4",
                                "N3.5",
                                "N3.6",
                                "N4",
                                "N5",
                                "N6.1",
                                "N6.2",
                                "N6.3",
                                "N6.4",
                                "N6.5",
                                "N6.6",
                                "N6.7",
                                "N6.8",
                                "N6.9",
                                "N7"
                              ],
                              "title": "E",
                              "description": "E used to generate and validate the invoice."
                            },
                            "G": {
                              "type": "string",
                              "enum": [
                                "N1",
                                "N2.1",
                                "N2.2",
                                "N3.1",
                                "N3.2",
                                "N3.3",
                                "N3.4",
                                "N3.5",
                                "N3.6",
                                "N4",
                                "N5",
                                "N6.1",
                                "N6.2",
                                "N6.3",
                                "N6.4",
                                "N6.5",
                                "N6.6",
                                "N6.7",
                                "N6.8",
                                "N6.9",
                                "N7"
                              ],
                              "title": "G",
                              "description": "G used to generate and validate the invoice."
                            },
                            "O": {
                              "type": "string",
                              "enum": [
                                "N1",
                                "N2.1",
                                "N2.2",
                                "N3.1",
                                "N3.2",
                                "N3.3",
                                "N3.4",
                                "N3.5",
                                "N3.6",
                                "N4",
                                "N5",
                                "N6.1",
                                "N6.2",
                                "N6.3",
                                "N6.4",
                                "N6.5",
                                "N6.6",
                                "N6.7",
                                "N6.8",
                                "N6.9",
                                "N7"
                              ],
                              "title": "O",
                              "description": "O used to generate and validate the invoice."
                            },
                            "Z": {
                              "type": "string",
                              "enum": [
                                "N1",
                                "N2.1",
                                "N2.2",
                                "N3.1",
                                "N3.2",
                                "N3.3",
                                "N3.4",
                                "N3.5",
                                "N3.6",
                                "N4",
                                "N5",
                                "N6.1",
                                "N6.2",
                                "N6.3",
                                "N6.4",
                                "N6.5",
                                "N6.6",
                                "N6.7",
                                "N6.8",
                                "N6.9",
                                "N7"
                              ],
                              "title": "Z",
                              "description": "Z used to generate and validate the invoice."
                            },
                            "AE": {
                              "type": "string",
                              "enum": [
                                "N1",
                                "N2.1",
                                "N2.2",
                                "N3.1",
                                "N3.2",
                                "N3.3",
                                "N3.4",
                                "N3.5",
                                "N3.6",
                                "N4",
                                "N5",
                                "N6.1",
                                "N6.2",
                                "N6.3",
                                "N6.4",
                                "N6.5",
                                "N6.6",
                                "N6.7",
                                "N6.8",
                                "N6.9",
                                "N7"
                              ],
                              "title": "Ae",
                              "description": "Ae used to generate and validate the invoice."
                            },
                            "K": {
                              "type": "string",
                              "enum": [
                                "N1",
                                "N2.1",
                                "N2.2",
                                "N3.1",
                                "N3.2",
                                "N3.3",
                                "N3.4",
                                "N3.5",
                                "N3.6",
                                "N4",
                                "N5",
                                "N6.1",
                                "N6.2",
                                "N6.3",
                                "N6.4",
                                "N6.5",
                                "N6.6",
                                "N6.7",
                                "N6.8",
                                "N6.9",
                                "N7"
                              ],
                              "title": "K",
                              "description": "K used to generate and validate the invoice."
                            },
                            "L": {
                              "type": "string",
                              "enum": [
                                "N1",
                                "N2.1",
                                "N2.2",
                                "N3.1",
                                "N3.2",
                                "N3.3",
                                "N3.4",
                                "N3.5",
                                "N3.6",
                                "N4",
                                "N5",
                                "N6.1",
                                "N6.2",
                                "N6.3",
                                "N6.4",
                                "N6.5",
                                "N6.6",
                                "N6.7",
                                "N6.8",
                                "N6.9",
                                "N7"
                              ],
                              "title": "L",
                              "description": "L used to generate and validate the invoice."
                            },
                            "M": {
                              "type": "string",
                              "enum": [
                                "N1",
                                "N2.1",
                                "N2.2",
                                "N3.1",
                                "N3.2",
                                "N3.3",
                                "N3.4",
                                "N3.5",
                                "N3.6",
                                "N4",
                                "N5",
                                "N6.1",
                                "N6.2",
                                "N6.3",
                                "N6.4",
                                "N6.5",
                                "N6.6",
                                "N6.7",
                                "N6.8",
                                "N6.9",
                                "N7"
                              ],
                              "title": "M",
                              "description": "M used to generate and validate the invoice."
                            }
                          },
                          "title": "Natura",
                          "description": "Natura used to generate and validate the invoice."
                        },
                        "withholdings": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "RT01",
                                  "RT02",
                                  "RT03",
                                  "RT04",
                                  "RT05",
                                  "RT06"
                                ],
                                "title": "Type",
                                "description": "Type used to generate and validate the invoice."
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "description": "Decimal string. JSON floating-point numbers are rejected.",
                                "title": "Amount"
                              },
                              "rate": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "description": "Decimal string. JSON floating-point numbers are rejected.",
                                "title": "Rate"
                              },
                              "payment_reason": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2,
                                "title": "Payment reason",
                                "description": "Payment reason used to generate and validate the invoice."
                              }
                            },
                            "required": [
                              "type",
                              "amount",
                              "rate",
                              "payment_reason"
                            ]
                          },
                          "maxItems": 20,
                          "title": "Withholdings",
                          "description": "Withholdings used to generate and validate the invoice."
                        },
                        "stamp_duty": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "amount": {
                              "type": "string",
                              "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                              "description": "Decimal string. JSON floating-point numbers are rejected.",
                              "title": "Amount"
                            },
                            "include_in_payable": {
                              "type": "boolean",
                              "title": "Include in payable",
                              "description": "Include in payable used to generate and validate the invoice."
                            }
                          },
                          "title": "Stamp duty",
                          "description": "Stamp duty used to generate and validate the invoice."
                        },
                        "social_security": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "fund_type": {
                                "type": "string",
                                "enum": [
                                  "TC01",
                                  "TC02",
                                  "TC03",
                                  "TC04",
                                  "TC05",
                                  "TC06",
                                  "TC07",
                                  "TC08",
                                  "TC09",
                                  "TC10",
                                  "TC11",
                                  "TC12",
                                  "TC13",
                                  "TC14",
                                  "TC15",
                                  "TC16",
                                  "TC17",
                                  "TC18",
                                  "TC19",
                                  "TC20",
                                  "TC21",
                                  "TC22"
                                ],
                                "title": "Fund type",
                                "description": "Fund type used to generate and validate the invoice."
                              },
                              "rate": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "description": "Decimal string. JSON floating-point numbers are rejected.",
                                "title": "Rate"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "description": "Decimal string. JSON floating-point numbers are rejected.",
                                "title": "Amount"
                              },
                              "taxable_base": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "description": "Decimal string. JSON floating-point numbers are rejected.",
                                "title": "Taxable base"
                              },
                              "vat_rate": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "description": "Decimal string. JSON floating-point numbers are rejected.",
                                "title": "Vat rate"
                              },
                              "withholding": {
                                "type": "boolean",
                                "title": "Withholding",
                                "description": "Withholding used to generate and validate the invoice."
                              },
                              "natura": {
                                "type": "string",
                                "enum": [
                                  "N1",
                                  "N2.1",
                                  "N2.2",
                                  "N3.1",
                                  "N3.2",
                                  "N3.3",
                                  "N3.4",
                                  "N3.5",
                                  "N3.6",
                                  "N4",
                                  "N5",
                                  "N6.1",
                                  "N6.2",
                                  "N6.3",
                                  "N6.4",
                                  "N6.5",
                                  "N6.6",
                                  "N6.7",
                                  "N6.8",
                                  "N6.9",
                                  "N7"
                                ],
                                "title": "Natura",
                                "description": "Natura used to generate and validate the invoice."
                              },
                              "administrative_reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 20,
                                "title": "Administrative reference",
                                "description": "Administrative reference used to generate and validate the invoice."
                              }
                            },
                            "required": [
                              "fund_type",
                              "rate",
                              "amount",
                              "vat_rate"
                            ]
                          },
                          "maxItems": 20,
                          "title": "Social security",
                          "description": "Social security used to generate and validate the invoice."
                        },
                        "vat_collectability": {
                          "type": "string",
                          "enum": [
                            "D",
                            "I",
                            "S"
                          ],
                          "title": "Vat collectability",
                          "description": "Vat collectability used to generate and validate the invoice."
                        },
                        "payment_terms": {
                          "type": "string",
                          "enum": [
                            "TP01",
                            "TP02",
                            "TP03"
                          ],
                          "title": "Payment terms",
                          "description": "Payment terms used to generate and validate the invoice."
                        },
                        "payments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "beneficiary": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "title": "Beneficiary",
                                "description": "Beneficiary used to generate and validate the invoice."
                              },
                              "method": {
                                "type": "string",
                                "enum": [
                                  "MP01",
                                  "MP02",
                                  "MP03",
                                  "MP04",
                                  "MP05",
                                  "MP06",
                                  "MP07",
                                  "MP08",
                                  "MP09",
                                  "MP10",
                                  "MP11",
                                  "MP12",
                                  "MP13",
                                  "MP14",
                                  "MP15",
                                  "MP16",
                                  "MP17",
                                  "MP18",
                                  "MP19",
                                  "MP20",
                                  "MP21",
                                  "MP22",
                                  "MP23"
                                ],
                                "title": "Method",
                                "description": "Method used to generate and validate the invoice."
                              },
                              "reference_date": {
                                "type": "string",
                                "title": "Reference date",
                                "description": "Reference date used to generate and validate the invoice.",
                                "editor": "datepicker",
                                "dateType": "absolute"
                              },
                              "days": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 999,
                                "title": "Days",
                                "description": "Days used to generate and validate the invoice."
                              },
                              "due_date": {
                                "type": "string",
                                "title": "Due date",
                                "description": "Due date used to generate and validate the invoice.",
                                "editor": "datepicker",
                                "dateType": "absolute"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                "description": "Decimal string. JSON floating-point numbers are rejected.",
                                "title": "Amount"
                              },
                              "bank_name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80,
                                "title": "Bank name",
                                "description": "Bank name used to generate and validate the invoice."
                              },
                              "iban": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 34,
                                "title": "Iban",
                                "description": "Iban used to generate and validate the invoice."
                              },
                              "abi": {
                                "type": "string",
                                "minLength": 1,
                                "pattern": "^[0-9]{5}$",
                                "title": "Abi",
                                "description": "Abi used to generate and validate the invoice."
                              },
                              "cab": {
                                "type": "string",
                                "minLength": 1,
                                "pattern": "^[0-9]{5}$",
                                "title": "Cab",
                                "description": "Cab used to generate and validate the invoice."
                              },
                              "bic": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 11,
                                "title": "Bic",
                                "description": "Bic used to generate and validate the invoice."
                              },
                              "code": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 60,
                                "title": "Code",
                                "description": "Code used to generate and validate the invoice."
                              }
                            },
                            "required": [
                              "method",
                              "amount"
                            ]
                          },
                          "maxItems": 100,
                          "minItems": 1,
                          "title": "Payments",
                          "description": "Payments used to generate and validate the invoice."
                        },
                        "references": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "orders": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "line_numbers": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 9999
                                    },
                                    "maxItems": 1000,
                                    "title": "Line numbers",
                                    "description": "Line numbers used to generate and validate the invoice."
                                  },
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20,
                                    "title": "Id",
                                    "description": "Id used to generate and validate the invoice."
                                  },
                                  "date": {
                                    "type": "string",
                                    "title": "Date",
                                    "description": "Date used to generate and validate the invoice.",
                                    "editor": "datepicker",
                                    "dateType": "absolute"
                                  },
                                  "item_number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20,
                                    "title": "Item number",
                                    "description": "Item number used to generate and validate the invoice."
                                  },
                                  "project_code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "title": "Project code",
                                    "description": "Project code used to generate and validate the invoice."
                                  },
                                  "cup": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 15,
                                    "title": "Cup",
                                    "description": "Cup used to generate and validate the invoice."
                                  },
                                  "cig": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 15,
                                    "title": "Cig",
                                    "description": "Cig used to generate and validate the invoice."
                                  }
                                },
                                "required": [
                                  "id"
                                ]
                              },
                              "maxItems": 100,
                              "title": "Orders",
                              "description": "Orders used to generate and validate the invoice."
                            },
                            "contracts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "line_numbers": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 9999
                                    },
                                    "maxItems": 1000,
                                    "title": "Line numbers",
                                    "description": "Line numbers used to generate and validate the invoice."
                                  },
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20,
                                    "title": "Id",
                                    "description": "Id used to generate and validate the invoice."
                                  },
                                  "date": {
                                    "type": "string",
                                    "title": "Date",
                                    "description": "Date used to generate and validate the invoice.",
                                    "editor": "datepicker",
                                    "dateType": "absolute"
                                  },
                                  "item_number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20,
                                    "title": "Item number",
                                    "description": "Item number used to generate and validate the invoice."
                                  },
                                  "project_code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "title": "Project code",
                                    "description": "Project code used to generate and validate the invoice."
                                  },
                                  "cup": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 15,
                                    "title": "Cup",
                                    "description": "Cup used to generate and validate the invoice."
                                  },
                                  "cig": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 15,
                                    "title": "Cig",
                                    "description": "Cig used to generate and validate the invoice."
                                  }
                                },
                                "required": [
                                  "id"
                                ]
                              },
                              "maxItems": 100,
                              "title": "Contracts",
                              "description": "Contracts used to generate and validate the invoice."
                            },
                            "agreements": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "line_numbers": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 9999
                                    },
                                    "maxItems": 1000,
                                    "title": "Line numbers",
                                    "description": "Line numbers used to generate and validate the invoice."
                                  },
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20,
                                    "title": "Id",
                                    "description": "Id used to generate and validate the invoice."
                                  },
                                  "date": {
                                    "type": "string",
                                    "title": "Date",
                                    "description": "Date used to generate and validate the invoice.",
                                    "editor": "datepicker",
                                    "dateType": "absolute"
                                  },
                                  "item_number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20,
                                    "title": "Item number",
                                    "description": "Item number used to generate and validate the invoice."
                                  },
                                  "project_code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "title": "Project code",
                                    "description": "Project code used to generate and validate the invoice."
                                  },
                                  "cup": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 15,
                                    "title": "Cup",
                                    "description": "Cup used to generate and validate the invoice."
                                  },
                                  "cig": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 15,
                                    "title": "Cig",
                                    "description": "Cig used to generate and validate the invoice."
                                  }
                                },
                                "required": [
                                  "id"
                                ]
                              },
                              "maxItems": 100,
                              "title": "Agreements",
                              "description": "Agreements used to generate and validate the invoice."
                            },
                            "receipts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "line_numbers": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 9999
                                    },
                                    "maxItems": 1000,
                                    "title": "Line numbers",
                                    "description": "Line numbers used to generate and validate the invoice."
                                  },
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20,
                                    "title": "Id",
                                    "description": "Id used to generate and validate the invoice."
                                  },
                                  "date": {
                                    "type": "string",
                                    "title": "Date",
                                    "description": "Date used to generate and validate the invoice.",
                                    "editor": "datepicker",
                                    "dateType": "absolute"
                                  },
                                  "item_number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20,
                                    "title": "Item number",
                                    "description": "Item number used to generate and validate the invoice."
                                  },
                                  "project_code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "title": "Project code",
                                    "description": "Project code used to generate and validate the invoice."
                                  },
                                  "cup": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 15,
                                    "title": "Cup",
                                    "description": "Cup used to generate and validate the invoice."
                                  },
                                  "cig": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 15,
                                    "title": "Cig",
                                    "description": "Cig used to generate and validate the invoice."
                                  }
                                },
                                "required": [
                                  "id"
                                ]
                              },
                              "maxItems": 100,
                              "title": "Receipts",
                              "description": "Receipts used to generate and validate the invoice."
                            },
                            "linked_invoices": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "line_numbers": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 9999
                                    },
                                    "maxItems": 1000,
                                    "title": "Line numbers",
                                    "description": "Line numbers used to generate and validate the invoice."
                                  },
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20,
                                    "title": "Id",
                                    "description": "Id used to generate and validate the invoice."
                                  },
                                  "date": {
                                    "type": "string",
                                    "title": "Date",
                                    "description": "Date used to generate and validate the invoice.",
                                    "editor": "datepicker",
                                    "dateType": "absolute"
                                  },
                                  "item_number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20,
                                    "title": "Item number",
                                    "description": "Item number used to generate and validate the invoice."
                                  },
                                  "project_code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "title": "Project code",
                                    "description": "Project code used to generate and validate the invoice."
                                  },
                                  "cup": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 15,
                                    "title": "Cup",
                                    "description": "Cup used to generate and validate the invoice."
                                  },
                                  "cig": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 15,
                                    "title": "Cig",
                                    "description": "Cig used to generate and validate the invoice."
                                  }
                                },
                                "required": [
                                  "id"
                                ]
                              },
                              "maxItems": 100,
                              "title": "Linked invoices",
                              "description": "Linked invoices used to generate and validate the invoice."
                            }
                          },
                          "title": "References",
                          "description": "References used to generate and validate the invoice."
                        },
                        "line_options": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "line_number": {
                                "type": "integer",
                                "minimum": 1,
                                "title": "Line number",
                                "description": "Line number used to generate and validate the invoice."
                              },
                              "supply_type": {
                                "type": "string",
                                "enum": [
                                  "SC",
                                  "PR",
                                  "AB",
                                  "AC"
                                ],
                                "title": "Supply type",
                                "description": "Supply type used to generate and validate the invoice."
                              },
                              "withholding": {
                                "type": "boolean",
                                "title": "Withholding",
                                "description": "Withholding used to generate and validate the invoice."
                              },
                              "administrative_reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 20,
                                "title": "Administrative reference",
                                "description": "Administrative reference used to generate and validate the invoice."
                              },
                              "article_codes": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 35,
                                      "title": "Type",
                                      "description": "Type used to generate and validate the invoice."
                                    },
                                    "value": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 35,
                                      "title": "Value",
                                      "description": "Value used to generate and validate the invoice."
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "value"
                                  ]
                                },
                                "maxItems": 20,
                                "title": "Article codes",
                                "description": "Article codes used to generate and validate the invoice."
                              },
                              "management_data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 10,
                                      "title": "Type",
                                      "description": "Type used to generate and validate the invoice."
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 60,
                                      "title": "Text",
                                      "description": "Text used to generate and validate the invoice."
                                    },
                                    "number": {
                                      "type": "string",
                                      "pattern": "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
                                      "description": "Decimal string. JSON floating-point numbers are rejected.",
                                      "title": "Number"
                                    },
                                    "date": {
                                      "type": "string",
                                      "title": "Date",
                                      "description": "Date used to generate and validate the invoice.",
                                      "editor": "datepicker",
                                      "dateType": "absolute"
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ]
                                },
                                "maxItems": 20,
                                "title": "Management data",
                                "description": "Management data used to generate and validate the invoice."
                              }
                            },
                            "required": [
                              "line_number"
                            ]
                          },
                          "maxItems": 1000,
                          "title": "Line options",
                          "description": "Line options used to generate and validate the invoice."
                        },
                        "attachments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "filename": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 60,
                                "title": "Filename",
                                "description": "Filename used to generate and validate the invoice."
                              },
                              "media_type": {
                                "type": "string",
                                "enum": [
                                  "application/pdf",
                                  "image/png",
                                  "image/jpeg",
                                  "text/plain",
                                  "text/csv",
                                  "application/zip",
                                  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
                                  "application/vnd.oasis.opendocument.spreadsheet"
                                ],
                                "title": "Media type",
                                "description": "Media type used to generate and validate the invoice."
                              },
                              "content_base64": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 8000000,
                                "title": "Content base64",
                                "description": "Content base64 used to generate and validate the invoice."
                              },
                              "compression": {
                                "type": "string",
                                "enum": [
                                  "ZIP"
                                ],
                                "title": "Compression",
                                "description": "Compression used to generate and validate the invoice."
                              },
                              "format": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 10,
                                "title": "Format",
                                "description": "Format used to generate and validate the invoice."
                              },
                              "description": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "title": "Description",
                                "description": "Description used to generate and validate the invoice."
                              }
                            },
                            "required": [
                              "filename",
                              "media_type",
                              "content_base64"
                            ]
                          },
                          "maxItems": 50,
                          "title": "Attachments",
                          "description": "Attachments used to generate and validate the invoice."
                        }
                      },
                      "required": [
                        "recipient_code"
                      ],
                      "description": "Strict FatturaPA-specific options. Unknown nested fields are rejected.",
                      "title": "Fatturapa"
                    }
                  },
                  "required": [
                    "fatturapa"
                  ],
                  "description": "Product-specific options. Unknown fields are rejected.",
                  "title": "Extensions"
                }
              },
              "required": [
                "invoice_number",
                "issue_date",
                "seller",
                "buyer",
                "lines"
              ],
              "type": "object"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}