{
  "openapi": "3.1.0",
  "info": {
    "title": "Egon API Reference",
    "version": "1.0.0",
    "description": "Suggest, validate, and normalize addresses and related data. Every service is a `POST` endpoint that accepts and returns JSON.",
    "contact": {
      "name": "Egon",
      "url": "https://www.egon.com",
      "email": "info@egondataquality.com"
    }
  },
  "externalDocs": {
    "description": "Official Egon API documentation",
    "url": "https://docs.egon.com"
  },
  "servers": [
    {
      "url": "https://api.egon.com",
      "description": "Egon ecommerce API"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Suggest Services",
      "description": "Predictive autocomplete for countries, regions, cities, districts, streets, and postal codes. Results update as you type, so users enter valid addresses."
    },
    {
      "name": "Validation Services",
      "description": "Validation and normalization of addresses, names, phones, emails, and tax codes. Every result has quality flags and codes."
    },
    {
      "name": "Single Line Service",
      "description": "Recognition and normalization of a complete address written as a single free-text string. Returns a list of normalized candidates to choose from."
    }
  ],
  "paths": {
    "/v4/suggest/country": {
      "post": {
        "operationId": "country",
        "tags": ["Suggest Services"],
        "requestBody": {
          "description": "Processing options, extraction limits, and country query.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestRequestCountry"
              },
              "example": {
                "data": {
                  "query": "Ital"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching country candidates, ISO codes, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestResponseCountry"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Matching country candidates, ISO codes, and system status.",
                    "value": {
                      "data": {
                        "results": [
                          {
                            "iso3": "ITA",
                            "lngout": "792",
                            "country": "İtalya",
                            "country_id": 38000000001
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "70",
                            "country": "Italija",
                            "country_id": 38000000001
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "826",
                            "country": "Italy",
                            "country_id": 38000000001
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "903",
                            "country": "Italiya",
                            "country_id": 38000000001
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "908",
                            "country": "Italiia",
                            "country_id": 38000000001
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "904",
                            "country": "Itali",
                            "country_id": 38000000001
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38000000001
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "208",
                            "country": "Italien",
                            "country_id": 38000000001
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "203",
                            "country": "Itálie",
                            "country_id": 38000000001
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "470",
                            "country": "Italja",
                            "country_id": 38000000001
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingQuery": {
                    "summary": "Missing query",
                    "description": "The request is missing the required query string.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data.query field is required.",
                        "details": {
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Suggest Country",
        "description": "The Suggest Country endpoint provides predictive autocomplete and search over **world countries**, with names in many languages, ISO codes, and Egon IDs."
      }
    },
    "/v4/suggest/state": {
      "post": {
        "operationId": "state",
        "tags": ["Suggest Services"],
        "requestBody": {
          "description": "Processing options, country context, and state search query.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestRequestQuery"
              },
              "example": {
                "par": {
                  "iso3": "USA"
                },
                "data": {
                  "query": "ma"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching state candidates, administrative codes, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestResponseState"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Matching state candidates, administrative codes, and system status.",
                    "value": {
                      "data": {
                        "results": [
                          {
                            "iso3": "USA",
                            "lngout": "840",
                            "country": "United States",
                            "country_id": 84000000001,
                            "state": "Massachusetts",
                            "state_code": "MA",
                            "state_id": 84000000027
                          },
                          {
                            "iso3": "USA",
                            "lngout": "840",
                            "country": "United States",
                            "country_id": 84000000001,
                            "state": "Maine",
                            "state_code": "ME",
                            "state_id": 84000000029
                          },
                          {
                            "iso3": "USA",
                            "lngout": "840",
                            "country": "United States",
                            "country_id": 84000000001,
                            "state": "Marshall Islands",
                            "state_code": "MH",
                            "state_id": 84000000030
                          },
                          {
                            "iso3": "USA",
                            "lngout": "840",
                            "country": "United States",
                            "country_id": 84000000001,
                            "state": "Maryland",
                            "state_code": "MD",
                            "state_id": 84000000028
                          },
                          {
                            "iso3": "USA",
                            "lngout": "840",
                            "country": "United States",
                            "country_id": 84000000001,
                            "state": "Northern Mariana Islands",
                            "state_code": "MP",
                            "state_id": 84000000034
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par or iso3",
                    "description": "The request is missing the required par object or ISO 3166-1 alpha-3 country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par field is required. (and 1 more error)",
                        "details": {
                          "par": ["The par field is required."],
                          "par.iso3": ["The par.iso3 field is required."]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso3",
                    "description": "The specified ISO 3166-1 alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  },
                  "missingQuery": {
                    "summary": "Missing query",
                    "description": "The request is missing the required query string.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data.query field is required.",
                        "details": {
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Suggest State",
        "description": "The Suggest State endpoint provides predictive autocomplete and search for **states and federal states**, returning names, codes, and Egon IDs."
      }
    },
    "/v4/suggest/region": {
      "post": {
        "operationId": "region",
        "tags": ["Suggest Services"],
        "requestBody": {
          "description": "Processing options, country context, and region search query.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestRequestQuery"
              },
              "example": {
                "par": {
                  "iso3": "ITA"
                },
                "data": {
                  "query": "v"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching region candidates, administrative codes, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestResponseRegion"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Matching region candidates, administrative codes, and system status.",
                    "value": {
                      "data": {
                        "results": [
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38000000001,
                            "region": "Valle d'Aosta",
                            "region_id": 38000000003
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38000000001,
                            "region": "Veneto",
                            "region_id": 38000000006
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38000000001,
                            "region": "Friuli-Venezia Giulia",
                            "region_id": 38000000007
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par or iso3",
                    "description": "The request is missing the required par object or ISO 3166-1 alpha-3 country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par field is required. (and 1 more error)",
                        "details": {
                          "par": ["The par field is required."],
                          "par.iso3": ["The par.iso3 field is required."]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso3",
                    "description": "The specified ISO 3166-1 alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  },
                  "missingQuery": {
                    "summary": "Missing query",
                    "description": "The request is missing the required query string.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data.query field is required.",
                        "details": {
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Suggest Region",
        "description": "The Suggest Region endpoint provides predictive autocomplete and search for **regions**, returning each matching region with its name and Egon ID."
      }
    },
    "/v4/suggest/province": {
      "post": {
        "operationId": "province",
        "tags": ["Suggest Services"],
        "requestBody": {
          "description": "Processing options, country context, and province search query.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestRequestRestrictId"
              },
              "example": {
                "par": {
                  "iso3": "ITA"
                },
                "data": {
                  "query": "Ver"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching province candidates, administrative codes, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestResponseProvince"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Matching province candidates, administrative codes, and system status.",
                    "value": {
                      "data": {
                        "results": [
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38000000001,
                            "region": "Piemonte",
                            "region_id": 38000000002,
                            "province": "Verbano Cusio Ossola",
                            "province_code": "VB",
                            "province_id": 38000000123
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38000000001,
                            "region": "Piemonte",
                            "region_id": 38000000002,
                            "province": "Vercelli",
                            "province_code": "VC",
                            "province_id": 38000000112
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38000000001,
                            "region": "Veneto",
                            "region_id": 38000000006,
                            "province": "Verona",
                            "province_code": "VR",
                            "province_id": 38000000115
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par or iso3",
                    "description": "The request is missing the required par object or ISO 3166-1 alpha-3 country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par field is required. (and 1 more error)",
                        "details": {
                          "par": ["The par field is required."],
                          "par.iso3": ["The par.iso3 field is required."]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso3",
                    "description": "The specified ISO 3166-1 alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  },
                  "missingQuery": {
                    "summary": "Missing query",
                    "description": "The request is missing the required query string.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data.query field is required.",
                        "details": {
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Suggest Province",
        "description": "The Suggest Province endpoint provides predictive autocomplete and search for **provinces**, returning each match with its province code and Egon ID."
      }
    },
    "/v4/suggest/city": {
      "post": {
        "operationId": "city",
        "tags": ["Suggest Services"],
        "requestBody": {
          "description": "Processing options, country context, and city search query.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestRequestRestrictId"
              },
              "example": {
                "par": {
                  "iso3": "ITA"
                },
                "data": {
                  "query": "Roveredo"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching city candidates, administrative hierarchy, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestResponseCity"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Matching city candidates, administrative hierarchy, and system status.",
                    "value": {
                      "data": {
                        "results": [
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38000000001,
                            "region": "Friuli-Venezia Giulia",
                            "region_id": 38000000007,
                            "province": "Pordenone",
                            "province_code": "PN",
                            "province_id": 38000000082,
                            "city": "Roveredo in Piano",
                            "city_id": 38000004347,
                            "zipcode": "33080"
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38000000001,
                            "region": "Veneto",
                            "region_id": 38000000006,
                            "province": "Verona",
                            "province_code": "VR",
                            "province_id": 38000000115,
                            "city": "Roveredo di Guà",
                            "city_id": 38000004686,
                            "zipcode": "37040"
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par or iso3",
                    "description": "The request is missing the required par object or ISO 3166-1 alpha-3 country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par field is required. (and 1 more error)",
                        "details": {
                          "par": ["The par field is required."],
                          "par.iso3": ["The par.iso3 field is required."]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso3",
                    "description": "The specified ISO 3166-1 alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  },
                  "missingQuery": {
                    "summary": "Missing query",
                    "description": "The request is missing the required query string.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data.query field is required.",
                        "details": {
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Suggest City",
        "description": "The Suggest City endpoint provides predictive autocomplete and search for **cities and municipalities**, with their postal code and Egon ID."
      }
    },
    "/v4/suggest/district1": {
      "post": {
        "operationId": "district1",
        "tags": ["Suggest Services"],
        "requestBody": {
          "description": "Processing options, city ID context, and district query.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestRequestRestrictId"
              },
              "example": {
                "par": {
                  "iso3": "ITA"
                },
                "data": {
                  "query": "Rovaio"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching district candidates, administrative hierarchy, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestResponseDistrict1"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Matching district candidates, administrative hierarchy, and system status.",
                    "value": {
                      "data": {
                        "results": [
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38001476230,
                            "region": "Emilia-Romagna",
                            "region_id": 38000000009,
                            "province": "Piacenza",
                            "province_code": "PC",
                            "province_id": 38000000077,
                            "city": "Corte Brugnatella",
                            "city_id": 38000003969,
                            "district1": "Rovaiola",
                            "district1_id": 38001476230,
                            "zipcode": "29020"
                          },
                          {
                            "iso3": "ITA",
                            "lngout": "380",
                            "country": "Italia",
                            "country_id": 38001468884,
                            "region": "Lombardia",
                            "region_id": 38000000004,
                            "province": "Pavia",
                            "province_code": "PV",
                            "province_id": 38000000086,
                            "city": "Brallo di Pregola",
                            "city_id": 38000003739,
                            "district1": "Rovaiolo",
                            "district1_id": 38001468884,
                            "zipcode": "27050"
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par or iso3",
                    "description": "The request is missing the required par object or ISO 3166-1 alpha-3 country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par field is required. (and 1 more error)",
                        "details": {
                          "par": ["The par field is required."],
                          "par.iso3": ["The par.iso3 field is required."]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso3",
                    "description": "The specified ISO 3166-1 alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  },
                  "missingQuery": {
                    "summary": "Missing query",
                    "description": "The request is missing the required query string.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data.query field is required.",
                        "details": {
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Suggest District 1",
        "description": "The Suggest District 1 endpoint provides predictive autocomplete and search for **first-level districts**, such as localities and municipalities."
      }
    },
    "/v4/suggest/zipcode": {
      "post": {
        "operationId": "zipcode",
        "tags": ["Suggest Services"],
        "requestBody": {
          "description": "Country context, extraction level, and postal code query.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestRequestZipCode"
              },
              "examples": {
                "localityLevel": {
                  "summary": "Locality level (ITA)",
                  "description": "Locality-level extraction, the default level.",
                  "value": {
                    "par": {
                      "iso3": "ITA"
                    },
                    "data": {
                      "query": "37135"
                    }
                  }
                },
                "streetLevel": {
                  "summary": "Street level (GBR)",
                  "description": "Street-level extraction, which returns streets, buildings, and organizations for the postal code.",
                  "value": {
                    "par": {
                      "iso3": "GBR"
                    },
                    "data": {
                      "query": "SL0 9DL",
                      "zip_level": "S"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching postal codes, associated localities or streets, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestResponseZipCode"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Matching postal codes, associated localities or streets, and system status.",
                    "value": {
                      "data": {
                        "results": [
                          {
                            "country": "Italia",
                            "country_id": 38000000001,
                            "region": "Veneto",
                            "region_id": 38000000006,
                            "province": "Verona",
                            "province_id": 38000000115,
                            "city": "Verona",
                            "city_id": 38000004730,
                            "zipcode": "37135"
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  },
                  "validStreetLevel": {
                    "summary": "Valid response, street level (GBR)",
                    "description": "Street-level candidates for a GBR postal code, with buildings and organizations, followed by the postal district.",
                    "value": {
                      "data": {
                        "results": [
                          {
                            "state": "England",
                            "province": "Buckinghamshire",
                            "city": "Iver",
                            "street": "NORTH PARK",
                            "street_id": 82600826581,
                            "zipcode": "SL0 9DL",
                            "organization": "RICHINGS PARK GOLF CLUB"
                          },
                          {
                            "state": "England",
                            "province": "Buckinghamshire",
                            "city": "Iver",
                            "street": "NORTH PARK",
                            "street_id": 82600826581,
                            "zipcode": "SL0 9DL",
                            "building": "HOME FARM COTTAGE"
                          },
                          {
                            "state": "England",
                            "province": "Buckinghamshire",
                            "city": "Iver",
                            "street": "NORTH PARK",
                            "street_id": 82600826581,
                            "zipcode": "SL0 9DL",
                            "building": "THE PUMP HOUSE"
                          },
                          {
                            "state": "England",
                            "province": "Buckinghamshire",
                            "city": "Iver",
                            "street": "NORTH PARK",
                            "street_id": 82600826581,
                            "zipcode": "SL0 9DL",
                            "building": "WEST GARDEN COTTAGE"
                          },
                          {
                            "state": "England",
                            "province": "Buckinghamshire",
                            "city": "Iver",
                            "street": "NORTH PARK",
                            "street_id": 82600826581,
                            "zipcode": "SL0 9DL",
                            "building": "THE COTTAGE HOME FARM"
                          },
                          {
                            "state": "England",
                            "province": "Buckinghamshire",
                            "city": "Iver",
                            "city_id": 82600003273,
                            "zipcode": "SL0"
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par or iso3",
                    "description": "The request is missing the required par object or ISO 3166-1 alpha-3 country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par field is required. (and 1 more error)",
                        "details": {
                          "par": ["The par field is required."],
                          "par.iso3": ["The par.iso3 field is required."]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso3",
                    "description": "The specified ISO 3166-1 alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  },
                  "missingQuery": {
                    "summary": "Missing query",
                    "description": "The request is missing the required query string.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data.query field is required.",
                        "details": {
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Suggest Zipcode",
        "description": "The Suggest Zipcode endpoint suggests **postal codes** at locality level (`L`) or at street level (`S`, available for GBR, IRL, NLD, and JPN)."
      }
    },
    "/v4/suggest/street": {
      "post": {
        "operationId": "street",
        "tags": ["Suggest Services"],
        "requestBody": {
          "description": "City context (`restrict_id`), street query, and output options.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestRequestStreet"
              },
              "example": {
                "par": {
                  "iso3": "ITA"
                },
                "data": {
                  "query": "Via Pac",
                  "restrict_id": 38000004730
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching street candidates, street codes, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestResponseStreet"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Matching street candidates, street codes, and system status.",
                    "value": {
                      "data": {
                        "results": [
                          {
                            "lngout": "380",
                            "region": "Veneto",
                            "region_id": 38000000006,
                            "province": "Verona",
                            "province_code": "VR",
                            "province_id": 38000000115,
                            "city": "Verona",
                            "city_id": 38000004730,
                            "zipcode": "37135",
                            "street": "Via Antonio Pacinotti",
                            "street_id": 38000073526
                          },
                          {
                            "lngout": "380",
                            "region": "Veneto",
                            "region_id": 38000000006,
                            "province": "Verona",
                            "province_code": "VR",
                            "province_id": 38000000115,
                            "city": "Verona",
                            "city_id": 38000004730,
                            "zipcode": "37124",
                            "street": "Via della Pace",
                            "street_id": 38000073960
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par or iso3",
                    "description": "The request is missing the required par object or ISO 3166-1 alpha-3 country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par field is required. (and 1 more error)",
                        "details": {
                          "par": ["The par field is required."],
                          "par.iso3": ["The par.iso3 field is required."]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso3",
                    "description": "The specified ISO 3166-1 alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  },
                  "missingQuery": {
                    "summary": "Missing query",
                    "description": "The request is missing the required query string.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data.query field is required.",
                        "details": {
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingRestrictId": {
                    "summary": "Missing restrict ID",
                    "description": "The data.restrict_id field is required.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data.restrict id field is required.",
                        "details": {
                          "data.restrict_id": [
                            "The data.restrict id field is required."
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Suggest Street",
        "description": "The Suggest Street endpoint provides predictive autocomplete for **street search**. The `restrict_id` parameter (city ID) is required."
      }
    },
    "/v4/validation/address": {
      "post": {
        "operationId": "address",
        "tags": ["Validation Services"],
        "summary": "Address",
        "description": "The Address endpoint validates and normalizes an address, returning the street, house number, postal data, Egon codes, and geographic coordinates.",
        "requestBody": {
          "description": "Country context, processing options, and address fields to validate.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidationAddressRequest"
              },
              "example": {
                "par": {
                  "iso3": "ITA",
                  "geo": "S"
                },
                "data": {
                  "address": {
                    "city": "Verona",
                    "street": "Via pacinotti 4b"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Normalized address, geocoding coordinates, postal format, quality indicators, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationAddressResponse"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "The address was processed successfully. Returns normalized address levels, geocoding coordinates, and quality flags.",
                    "value": {
                      "data": {
                        "address": {
                          "standard": {
                            "iso2": "IT",
                            "iso3": "ITA",
                            "country": "Italia",
                            "country_lng": "380",
                            "region": "Veneto",
                            "region_lng": "380",
                            "province": "Verona",
                            "province_code": "VR",
                            "province_lng": "380",
                            "city": "Verona",
                            "city_lng": "380",
                            "zipcode": "37135",
                            "street_type": "Via",
                            "street_name": "Antonio Pacinotti",
                            "street": "Via Antonio Pacinotti",
                            "street_lng": "380",
                            "address": "Via Antonio Pacinotti,4/B",
                            "full_address": "Via Antonio Pacinotti,4/B, Verona, VR, Veneto, 37135, Italia",
                            "hn": "4/B",
                            "postal_town1": "VERONA",
                            "match_code": "3800000473038000073526000000004000000000",
                            "adm_code": [
                              {
                                "iso3": "ITA",
                                "type": "50137",
                                "value": "VR"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30000",
                                "value": "L781"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30021",
                                "value": "023091"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30022",
                                "value": "005"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30030",
                                "value": "11700"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30050",
                                "value": "0777000"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30060",
                                "value": "086"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30061",
                                "value": "660999"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30070",
                                "value": "ITA"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30071",
                                "value": "IT"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30072",
                                "value": "380"
                              },
                              {
                                "iso3": "ITA",
                                "type": "30114",
                                "value": "ITALIA"
                              }
                            ],
                            "egon_code": {
                              "city": 38000004730,
                              "street": 38000073526
                            }
                          },
                          "smart": {
                            "country": "Italia",
                            "administrative_level": "Verona",
                            "city": "Verona",
                            "address": "Via Antonio Pacinotti,4/B",
                            "zipcode": "37135"
                          }
                        },
                        "geo": {
                          "lat_long": "45.40616800, 10.97379600",
                          "geo_level": "A41-111",
                          "census_code": "0230910000922",
                          "census_lat_long": "45.40753707, 10.97251045"
                        },
                        "postal": {
                          "row4": "VIA ANTONIO PACINOTTI 4/B",
                          "row5": "37135 VERONA VR"
                        }
                      },
                      "quality": {
                        "address": {
                          "locality": {
                            "flag": "0",
                            "code": 0,
                            "description": "OK"
                          },
                          "street": {
                            "flag": "1",
                            "code": 801,
                            "description": "Street candidate found"
                          }
                        }
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par",
                    "description": "The request is missing the required par object or country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)",
                        "details": {
                          "par.iso3": [
                            "The par.iso3 field is required when par.iso2 is not present."
                          ],
                          "par.iso2": [
                            "The par.iso2 field is required when par.iso3 is not present."
                          ]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso2 or iso3",
                    "description": "The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v4/validation/emails": {
      "post": {
        "operationId": "email",
        "tags": ["Validation Services"],
        "summary": "Email",
        "description": "Validate one or more email addresses and return normalized values together with syntax and domain quality indicators.",
        "requestBody": {
          "description": "Country context and collection of email addresses to validate.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidationEmailRequest"
              },
              "example": {
                "par": {
                  "iso3": "ITA"
                },
                "data": {
                  "emails": [
                    {
                      "email": "info@egon.com"
                    },
                    {
                      "email": "info@example.com"
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Normalized email addresses, validation quality indicators, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationEmailResponse"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Email addresses verified for correct syntax and domain structure.",
                    "value": {
                      "data": {
                        "emails": [
                          {
                            "email": "info@egon.com"
                          },
                          {
                            "email": "info@example.com"
                          }
                        ]
                      },
                      "quality": {
                        "emails": [
                          {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          },
                          {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par",
                    "description": "The request is missing the required par object or country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)",
                        "details": {
                          "par.iso3": [
                            "The par.iso3 field is required when par.iso2 is not present."
                          ],
                          "par.iso2": [
                            "The par.iso2 field is required when par.iso3 is not present."
                          ]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso2 or iso3",
                    "description": "The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v4/validation/name": {
      "post": {
        "operationId": "name",
        "tags": ["Validation Services"],
        "summary": "Name",
        "description": "Validate personal names, sole proprietorships, company names, co-holder names, and family surnames, and return normalized and structured output.",
        "requestBody": {
          "description": "Country context and person or company name string to validate.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidationNameRequest"
              },
              "example": {
                "par": {
                  "iso3": "ITA"
                },
                "data": {
                  "name": {
                    "full_name": "Dottor Mario Rossi"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured name components, recognized gender, separated title/surname/name, and quality indicators.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationNameResponse"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Name successfully recognized, titles separated, and structured into first name and surname.",
                    "value": {
                      "data": {
                        "name": {
                          "type_ana": "1",
                          "gender": "1",
                          "full_name": "ROSSI,MARIO",
                          "last_name": "ROSSI",
                          "first_name": "MARIO",
                          "title": "DOTTORE"
                        }
                      },
                      "quality": {
                        "name": {
                          "person": {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          }
                        }
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par",
                    "description": "The request is missing the required par object or country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)",
                        "details": {
                          "par.iso3": [
                            "The par.iso3 field is required when par.iso2 is not present."
                          ],
                          "par.iso2": [
                            "The par.iso2 field is required when par.iso3 is not present."
                          ]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso2 or iso3",
                    "description": "The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v4/validation/phones": {
      "post": {
        "operationId": "phone",
        "tags": ["Validation Services"],
        "summary": "Phone",
        "description": "Validate and normalize telephone numbers provided either as individual international and national prefix components or as a single full number.",
        "requestBody": {
          "description": "Country context and telephone numbers to normalize and validate.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidationPhoneRequest"
              },
              "example": {
                "par": {
                  "iso3": "ITA"
                },
                "data": {
                  "phones": [
                    {
                      "pre_int": "39",
                      "pre_nat": "045",
                      "number": "8200794"
                    },
                    {
                      "number": "390458201847"
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Normalized phone numbers with country prefixes, line type codes, quality indicators, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationPhoneResponse"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Phone numbers validated, separated into international and national prefixes, and standardized.",
                    "value": {
                      "data": {
                        "phones": [
                          {
                            "iso3": "ITA",
                            "type": "00001",
                            "pre_int": "+39",
                            "pre_nat": "045",
                            "number": "8200794"
                          },
                          {
                            "iso3": "ITA",
                            "type": "00001",
                            "pre_int": "+39",
                            "pre_nat": "045",
                            "number": "8201847"
                          }
                        ]
                      },
                      "quality": {
                        "phones": [
                          {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          },
                          {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par",
                    "description": "The request is missing the required par object or country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)",
                        "details": {
                          "par.iso3": [
                            "The par.iso3 field is required when par.iso2 is not present."
                          ],
                          "par.iso2": [
                            "The par.iso2 field is required when par.iso3 is not present."
                          ]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso2 or iso3",
                    "description": "The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v4/validation/tax_code#calc": {
      "post": {
        "operationId": "tax-code-calc",
        "tags": ["Validation Services"],
        "summary": "Tax Code Calculation",
        "description": "Calculate an Italian tax code (Codice Fiscale) from surname, name, gender, date of birth, and city of birth, with a quality flag for the result.",
        "requestBody": {
          "description": "Country context, `taxfnx` function `3`, and personal identity data.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidationTaxCodeCalcRequest"
              },
              "example": {
                "par": {
                  "iso3": "ITA",
                  "taxfnx": "3"
                },
                "data": {
                  "name": {
                    "full_name": "Rossi",
                    "first_name": "Mario",
                    "gender": "1",
                    "birth_date": "19930219",
                    "birth_place": "Verona"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculated tax code, quality indicators for personal identity fields, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationTaxCodeCalcResponse"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Tax code calculated successfully from personal information.",
                    "value": {
                      "data": {
                        "tax_code": {
                          "cod_description": "RSSMRA93B19L781K"
                        }
                      },
                      "quality": {
                        "tax_code": {
                          "flag": "0",
                          "code": 0,
                          "description": "Ok"
                        },
                        "name": {
                          "person": {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          },
                          "birth_date": {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          },
                          "birth_place": {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          }
                        }
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par",
                    "description": "The request is missing the required par object or country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)",
                        "details": {
                          "par.iso3": [
                            "The par.iso3 field is required when par.iso2 is not present."
                          ],
                          "par.iso2": [
                            "The par.iso2 field is required when par.iso3 is not present."
                          ]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso2 or iso3",
                    "description": "The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v4/validation/tax_code#check": {
      "post": {
        "operationId": "tax-code-check",
        "tags": ["Validation Services"],
        "summary": "Tax Code Validation",
        "description": "Check the formal validity and structure of an Italian tax code (Codice Fiscale) and get a quality flag and code that describe the result.",
        "requestBody": {
          "description": "Country context, `taxfnx` function `2`, and tax code to check.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidationTaxCodeCheckRequest"
              },
              "example": {
                "par": {
                  "iso3": "ITA",
                  "taxfnx": "2"
                },
                "data": {
                  "tax_code": {
                    "cod_iso3": "ITA",
                    "cod_type": "01110",
                    "cod_description": "RSSMRA93B19L781K"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Validated tax code, extraction verification quality indicator, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationTaxCodeCheckResponse"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Tax code verified and found formally valid.",
                    "value": {
                      "data": {
                        "tax_code": {
                          "cod_description": "RSSMRA93B19L781K"
                        }
                      },
                      "quality": {
                        "tax_code": {
                          "flag": "0",
                          "code": 0,
                          "description": "Ok"
                        }
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par",
                    "description": "The request is missing the required par object or country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)",
                        "details": {
                          "par.iso3": [
                            "The par.iso3 field is required when par.iso2 is not present."
                          ],
                          "par.iso2": [
                            "The par.iso2 field is required when par.iso3 is not present."
                          ]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso2 or iso3",
                    "description": "The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v4/validation/tax_code#extract": {
      "post": {
        "operationId": "tax-code-extract",
        "tags": ["Validation Services"],
        "summary": "Tax Code Extraction",
        "description": "Extract gender, date of birth, and place of birth (city and province) from an Italian tax code (Codice Fiscale), with a quality flag.",
        "requestBody": {
          "description": "Country context, `taxfnx` function `5`, and tax code to decode.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidationTaxCodeExtractRequest"
              },
              "example": {
                "par": {
                  "iso3": "ITA",
                  "taxfnx": "5"
                },
                "data": {
                  "tax_code": {
                    "cod_iso3": "ITA",
                    "cod_type": "01110",
                    "cod_description": "RSSMRA93B19L781K"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Extracted birth date, birth province, birth city, quality indicator, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationTaxCodeExtractResponse"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Birth details and province extracted successfully from the tax code.",
                    "value": {
                      "data": {
                        "name": {
                          "birth_date": "19930219",
                          "birth_province": "VR",
                          "birth_place": "VERONA"
                        }
                      },
                      "quality": {
                        "tax_code": {
                          "flag": "0",
                          "code": 0,
                          "description": "Ok"
                        }
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par",
                    "description": "The request is missing the required par object or country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)",
                        "details": {
                          "par.iso3": [
                            "The par.iso3 field is required when par.iso2 is not present."
                          ],
                          "par.iso2": [
                            "The par.iso2 field is required when par.iso3 is not present."
                          ]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso2 or iso3",
                    "description": "The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v4/validation/tax_code#match": {
      "post": {
        "operationId": "tax-code-match",
        "tags": ["Validation Services"],
        "summary": "Tax Code Verification",
        "description": "Compare a tax code against a person's identifying data, including name, gender, date of birth, and birthplace.",
        "requestBody": {
          "description": "Country context, `taxfnx` function `1`, personal identity data, and tax code to compare.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidationTaxCodeMatchRequest"
              },
              "example": {
                "par": {
                  "iso3": "ITA",
                  "taxfnx": "1"
                },
                "data": {
                  "name": {
                    "full_name": "Rossi",
                    "first_name": "Mario",
                    "gender": "1",
                    "birth_date": "19930219",
                    "birth_place": "Verona"
                  },
                  "tax_code": {
                    "cod_iso3": "ITA",
                    "cod_type": "01110",
                    "cod_description": "RSSMRA93B19L781K"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Normalized personal data, tax code, comparison quality results for identity, birth date, birthplace, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationTaxCodeMatchResponse"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Tax code matches personal information completely.",
                    "value": {
                      "data": {
                        "name": {
                          "type_ana": "1",
                          "gender": "1",
                          "full_name": "ROSSI,MARIO",
                          "last_name": "ROSSI",
                          "first_name": "MARIO",
                          "birth_date": "19930219",
                          "birth_province": "VR",
                          "birth_place": "VERONA"
                        },
                        "tax_code": {
                          "cod_description": "RSSMRA93B19L781K"
                        }
                      },
                      "quality": {
                        "tax_code": {
                          "flag": "0",
                          "code": 0,
                          "description": "Ok"
                        },
                        "name": {
                          "person": {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          },
                          "birth_date": {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          },
                          "birth_place": {
                            "flag": "0",
                            "code": 0,
                            "description": "Ok"
                          }
                        }
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par",
                    "description": "The request is missing the required par object or country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)",
                        "details": {
                          "par.iso3": [
                            "The par.iso3 field is required when par.iso2 is not present."
                          ],
                          "par.iso2": [
                            "The par.iso2 field is required when par.iso3 is not present."
                          ]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso2 or iso3",
                    "description": "The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v4/suggest/address": {
      "post": {
        "operationId": "full-address",
        "tags": ["Single Line Service"],
        "requestBody": {
          "description": "Single-line query string, country context, and parsing options.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FullAddressRequestFullAddress"
              },
              "example": {
                "par": {
                  "iso3": "ITA"
                },
                "data": {
                  "query": "Via Pacinotti 4b, Verona"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured address candidates, matching confidence scores, and system status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FullAddressResponseFullAddress"
                },
                "examples": {
                  "valid": {
                    "summary": "Valid response",
                    "description": "Structured address candidates, matching confidence scores, and system status.",
                    "value": {
                      "data": {
                        "results": [
                          {
                            "iso3": "ITA",
                            "id": 38000073526,
                            "country": "Italia",
                            "region": "Veneto",
                            "province": "Verona",
                            "city": "Verona",
                            "zipcode": "37135",
                            "street": "Via Antonio Pacinotti",
                            "hn_num": "4",
                            "hn_exp": "b"
                          },
                          {
                            "iso3": "ITA",
                            "id": 38000330636,
                            "country": "Italia",
                            "region": "Veneto",
                            "province": "Verona",
                            "city": "Legnago",
                            "zipcode": "37045",
                            "street": "Via Antonio Pacinotti",
                            "hn_num": "4",
                            "hn_exp": "b"
                          },
                          {
                            "iso3": "ITA",
                            "id": 38000124342,
                            "country": "Italia",
                            "region": "Veneto",
                            "province": "Verona",
                            "city": "Cerea",
                            "zipcode": "37053",
                            "street": "Via Antonio Pacinotti",
                            "hn_num": "4",
                            "hn_exp": "b"
                          },
                          {
                            "iso3": "ITA",
                            "id": 38000175587,
                            "country": "Italia",
                            "region": "Veneto",
                            "province": "Verona",
                            "city": "Pescantina",
                            "zipcode": "37026",
                            "street": "Via Antonio Pacinotti",
                            "hn_num": "4",
                            "hn_exp": "b"
                          },
                          {
                            "iso3": "ITA",
                            "id": 38000315533,
                            "country": "Italia",
                            "region": "Veneto",
                            "province": "Verona",
                            "city": "Sommacampagna",
                            "zipcode": "37066",
                            "street": "Via Antonio Pacinotti",
                            "hn_num": "4",
                            "hn_exp": "b"
                          },
                          {
                            "iso3": "ITA",
                            "id": 38000328961,
                            "country": "Italia",
                            "region": "Veneto",
                            "province": "Verona",
                            "city": "Grezzana",
                            "zipcode": "37023",
                            "street": "Via Antonio Pacinotti",
                            "hn_num": "4",
                            "hn_exp": "b"
                          },
                          {
                            "iso3": "ITA",
                            "id": 38000176130,
                            "country": "Italia",
                            "region": "Veneto",
                            "province": "Verona",
                            "city": "Bardolino",
                            "zipcode": "37011",
                            "street": "Vicolo Antonio Pacinotti",
                            "hn_num": "4",
                            "hn_exp": "b"
                          },
                          {
                            "iso3": "ITA",
                            "id": 38000124647,
                            "country": "Italia",
                            "region": "Veneto",
                            "province": "Verona",
                            "city": "San Giovanni Lupatoto",
                            "zipcode": "37057",
                            "street": "Via Antonio Pacinotti",
                            "hn_num": "4",
                            "hn_exp": "b"
                          },
                          {
                            "iso3": "ITA",
                            "id": 38000174082,
                            "country": "Italia",
                            "region": "Veneto",
                            "province": "Verona",
                            "city": "Valeggio sul Mincio",
                            "zipcode": "37067",
                            "street": "Via Antonio Pacinotti",
                            "hn_num": "4",
                            "hn_exp": "b"
                          },
                          {
                            "iso3": "ITA",
                            "id": 38001153169,
                            "country": "Italia",
                            "region": "Lombardia",
                            "province": "Brescia",
                            "city": "Brescia",
                            "zipcode": "25132",
                            "street": "Via Pacinotti",
                            "hn_num": "4",
                            "hn_exp": "b"
                          }
                        ]
                      },
                      "system": {
                        "ret_code": 0,
                        "des_ret_code": "Ok"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidToken": {
                    "summary": "Invalid token",
                    "description": "The provided token is not valid or expired.",
                    "value": {
                      "error": {
                        "code": 400,
                        "message": "Unauthenticated."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingToken": {
                    "summary": "Missing token",
                    "description": "Provide the required authentication token in the Authorization request header.",
                    "value": {
                      "error": {
                        "code": 401,
                        "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details."
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingData": {
                    "summary": "Missing data",
                    "description": "The request is missing the required data object.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data field is required. (and 1 more error)",
                        "details": {
                          "data": ["The data field is required."],
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  },
                  "missingPar": {
                    "summary": "Missing par or iso3",
                    "description": "The request is missing the required par object or ISO 3166-1 alpha-3 country code.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The par field is required. (and 1 more error)",
                        "details": {
                          "par": ["The par field is required."],
                          "par.iso3": ["The par.iso3 field is required."]
                        }
                      }
                    }
                  },
                  "invalidIso3": {
                    "summary": "Invalid iso3",
                    "description": "The specified ISO 3166-1 alpha-3 country code is not enabled.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "Country not enabled.",
                        "details": {
                          "par.iso3": ["Country not enabled."]
                        }
                      }
                    }
                  },
                  "missingQuery": {
                    "summary": "Missing query",
                    "description": "The request is missing the required query string.",
                    "value": {
                      "error": {
                        "code": 422,
                        "message": "The data.query field is required.",
                        "details": {
                          "data.query": ["The data.query field is required."]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Full Address",
        "description": "The Full Address endpoint parses a complete address written as a single free-text string and returns a list of **normalized candidate addresses**."
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Bearer token authentication"
      }
    },
    "schemas": {
      "SuggestRequestQuery": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/SuggestPar",
            "description": "Processing parameters, candidate limits, and country context"
          },
          "data": {
            "$ref": "#/components/schemas/SuggestDataQuery",
            "description": "Search criteria and query parameters"
          }
        }
      },
      "SuggestRequestCountry": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/SuggestParCountry",
            "description": "Processing parameters, candidate limits, and country context"
          },
          "data": {
            "$ref": "#/components/schemas/SuggestDataQuery",
            "description": "Search criteria and query parameters"
          }
        }
      },
      "SuggestRequestRestrictId": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/SuggestPar",
            "description": "Processing parameters, candidate limits, and country context"
          },
          "data": {
            "$ref": "#/components/schemas/SuggestDataRestrictId",
            "description": "Search criteria and query parameters"
          }
        }
      },
      "SuggestRequestStreet": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/SuggestPar",
            "description": "Processing parameters, candidate limits, and country context"
          },
          "data": {
            "$ref": "#/components/schemas/SuggestDataRestrictIdMandatory",
            "description": "Search criteria and query parameters"
          }
        }
      },
      "SuggestRequestZipCode": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/SuggestPar",
            "description": "Processing parameters, candidate limits, and country context"
          },
          "data": {
            "$ref": "#/components/schemas/SuggestDataZipCode",
            "description": "Search criteria and query parameters"
          }
        }
      },
      "SuggestPar": {
        "type": "object",
        "required": ["iso3"],
        "properties": {
          "iso3": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "description": "Country code, ISO 3166-1 alpha-3."
          },
          "max_candidates": {
            "type": "number",
            "default": 10,
            "description": "Maximum number of candidates to extract"
          }
        },
        "description": "Processing parameters, candidate limits, and country context"
      },
      "SuggestParCountry": {
        "type": "object",
        "properties": {
          "max_candidates": {
            "type": "number",
            "default": 10,
            "description": "Maximum number of candidates to extract"
          },
          "lngout": {
            "type": "string",
            "description": "Language code ISO 3166-1 numeric"
          }
        },
        "description": "Processing parameters and output language for country search"
      },
      "SuggestDataQuery": {
        "type": "object",
        "required": ["query"],
        "properties": {
          "query": {
            "type": "string",
            "description": "Query string"
          }
        },
        "description": "Query container holding the input search string"
      },
      "SuggestDataRestrictId": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuggestDataQuery"
          },
          {
            "type": "object",
            "properties": {
              "restrict_id": {
                "format": "int64",
                "type": "number",
                "minimum": 1,
                "description": "ID of the territorial level. Used for filtering the research by a certain territorial level"
              }
            }
          }
        ],
        "description": "Territorial search container with parent identifier filter"
      },
      "SuggestDataRestrictIdMandatory": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuggestDataQuery"
          },
          {
            "type": "object",
            "required": ["restrict_id"],
            "properties": {
              "restrict_id": {
                "format": "int64",
                "type": "number",
                "minimum": 1,
                "description": "ID of the city. Used for filtering the research by a certain territorial level"
              }
            }
          }
        ],
        "description": "Search container with mandatory parent territorial identifier"
      },
      "SuggestDataZipCode": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuggestDataQuery"
          },
          {
            "type": "object",
            "properties": {
              "zip_level": {
                "type": "string",
                "enum": ["L", "S"],
                "default": "L",
                "description": "Extraction level: `L` for locality-level candidates, or `S` for street-level candidates. Street-level extraction is used in GBR, IRL, NLD, and JPN. Default: `L`"
              }
            }
          }
        ],
        "description": "Search criteria for postal code lookup"
      },
      "SuggestResponseCountry": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SuggestCountryResults",
            "description": "Container object holding suggestion candidate results"
          },
          "system": {
            "$ref": "#/components/schemas/SuggestSystem",
            "description": "System error and execution status"
          }
        }
      },
      "SuggestCountryResults": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuggestCountryData"
            },
            "description": "Array of candidate matches returned by the suggestion engine"
          }
        }
      },
      "SuggestCountryData": {
        "type": "object",
        "properties": {
          "iso3": {
            "type": "string",
            "description": "Country code ISO 3166-1 alpha-3"
          },
          "lngout": {
            "type": "string",
            "description": "Language code ISO 3166-1 numeric"
          },
          "country": {
            "type": "string",
            "description": "Country name"
          },
          "country_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the country"
          }
        }
      },
      "SuggestResponseState": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SuggestStateResults",
            "description": "Container object holding suggestion candidate results"
          },
          "system": {
            "$ref": "#/components/schemas/SuggestSystem",
            "description": "System error and execution status"
          }
        }
      },
      "SuggestStateResults": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuggestStateData"
            },
            "description": "Array of candidate matches returned by the suggestion engine"
          }
        }
      },
      "SuggestStateData": {
        "type": "object",
        "properties": {
          "iso3": {
            "type": "string",
            "description": "Country code ISO 3166-1 alpha-3"
          },
          "lngout": {
            "type": "string",
            "description": "Language code ISO 3166-1 numeric"
          },
          "country": {
            "type": "string",
            "description": "Country name"
          },
          "country_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the country"
          },
          "state": {
            "type": "string",
            "description": "State name"
          },
          "state_code": {
            "type": "string",
            "description": "State code"
          },
          "state_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the state"
          }
        }
      },
      "SuggestResponseRegion": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SuggestRegionResults",
            "description": "Container object holding suggestion candidate results"
          },
          "system": {
            "$ref": "#/components/schemas/SuggestSystem",
            "description": "System error and execution status"
          }
        }
      },
      "SuggestRegionResults": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuggestRegionData"
            },
            "description": "Array of candidate matches returned by the suggestion engine"
          }
        }
      },
      "SuggestRegionData": {
        "type": "object",
        "properties": {
          "iso3": {
            "type": "string",
            "description": "Country code ISO 3166-1 alpha-3"
          },
          "lngout": {
            "type": "string",
            "description": "Language code ISO 3166-1 numeric"
          },
          "country": {
            "type": "string",
            "description": "Country name"
          },
          "country_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the country"
          },
          "state": {
            "type": "string",
            "description": "State name"
          },
          "state_code": {
            "type": "string",
            "description": "State code"
          },
          "state_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the state"
          },
          "region": {
            "type": "string",
            "description": "Region name"
          },
          "region_code": {
            "type": "string",
            "description": "Region code"
          },
          "region_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the region"
          }
        }
      },
      "SuggestResponseProvince": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SuggestProvinceResults",
            "description": "Container object holding suggestion candidate results"
          },
          "system": {
            "$ref": "#/components/schemas/SuggestSystem",
            "description": "System error and execution status"
          }
        }
      },
      "SuggestProvinceResults": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuggestProvinceData"
            },
            "description": "Array of candidate matches returned by the suggestion engine"
          }
        }
      },
      "SuggestProvinceData": {
        "type": "object",
        "properties": {
          "iso3": {
            "type": "string",
            "description": "Country code ISO 3166-1 alpha-3"
          },
          "lngout": {
            "type": "string",
            "description": "Language code ISO 3166-1 numeric"
          },
          "country": {
            "type": "string",
            "description": "Country name"
          },
          "country_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the country"
          },
          "state": {
            "type": "string",
            "description": "State name"
          },
          "state_code": {
            "type": "string",
            "description": "State code"
          },
          "state_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the state"
          },
          "region": {
            "type": "string",
            "description": "Region name"
          },
          "region_code": {
            "type": "string",
            "description": "Region code"
          },
          "region_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the region"
          },
          "province": {
            "type": "string",
            "description": "Province name"
          },
          "province_code": {
            "type": "string",
            "description": "Province code"
          },
          "province_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the province"
          }
        }
      },
      "SuggestResponseCity": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SuggestCityResults",
            "description": "Container object holding suggestion candidate results"
          },
          "system": {
            "$ref": "#/components/schemas/SuggestSystem",
            "description": "System error and execution status"
          }
        }
      },
      "SuggestCityResults": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuggestCityData"
            },
            "description": "Array of candidate matches returned by the suggestion engine"
          }
        }
      },
      "SuggestCityData": {
        "type": "object",
        "properties": {
          "iso3": {
            "type": "string",
            "description": "Country code ISO 3166-1 alpha-3"
          },
          "lngout": {
            "type": "string",
            "description": "Language code ISO 3166-1 numeric"
          },
          "country": {
            "type": "string",
            "description": "Country name"
          },
          "country_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the country"
          },
          "state": {
            "type": "string",
            "description": "State name"
          },
          "state_code": {
            "type": "string",
            "description": "State code"
          },
          "state_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the state"
          },
          "region": {
            "type": "string",
            "description": "Region name"
          },
          "region_code": {
            "type": "string",
            "description": "Region code"
          },
          "region_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the region"
          },
          "province": {
            "type": "string",
            "description": "Province name"
          },
          "province_code": {
            "type": "string",
            "description": "Province code"
          },
          "province_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the province"
          },
          "city": {
            "type": "string",
            "description": "City name"
          },
          "city_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the city"
          },
          "zipcode": {
            "type": "string",
            "description": "Postal code"
          }
        }
      },
      "SuggestResponseDistrict1": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SuggestDistrict1Results",
            "description": "Container object holding suggestion candidate results"
          },
          "system": {
            "$ref": "#/components/schemas/SuggestSystem",
            "description": "System error and execution status"
          }
        }
      },
      "SuggestDistrict1Results": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuggestDistrict1Data"
            },
            "description": "Array of candidate matches returned by the suggestion engine"
          }
        }
      },
      "SuggestDistrict1Data": {
        "type": "object",
        "properties": {
          "iso3": {
            "type": "string",
            "description": "Country code ISO 3166-1 alpha-3"
          },
          "lngout": {
            "type": "string",
            "description": "Language code ISO 3166-1 numeric"
          },
          "country": {
            "type": "string",
            "description": "Country name"
          },
          "country_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the country"
          },
          "state": {
            "type": "string",
            "description": "State name"
          },
          "state_code": {
            "type": "string",
            "description": "State code"
          },
          "state_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the state"
          },
          "region": {
            "type": "string",
            "description": "Region name"
          },
          "region_code": {
            "type": "string",
            "description": "Region code"
          },
          "region_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the region"
          },
          "province": {
            "type": "string",
            "description": "Province name"
          },
          "province_code": {
            "type": "string",
            "description": "Province code"
          },
          "province_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the province"
          },
          "city": {
            "type": "string",
            "description": "City name"
          },
          "city_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the city"
          },
          "district1": {
            "type": "string",
            "description": "First-level district name"
          },
          "district1_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the first-level district"
          },
          "zipcode": {
            "type": "string",
            "description": "Postal code"
          }
        }
      },
      "SuggestResponseZipCode": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SuggestZipCodeResults",
            "description": "Container object holding suggestion candidate results"
          },
          "system": {
            "$ref": "#/components/schemas/SuggestSystem",
            "description": "System error and execution status"
          }
        }
      },
      "SuggestZipCodeResults": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuggestZipCodeData"
            },
            "description": "Array of candidate matches returned by the suggestion engine"
          }
        }
      },
      "SuggestZipCodeData": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "description": "Country name"
          },
          "country_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the country"
          },
          "state": {
            "type": "string",
            "description": "State name"
          },
          "state_code": {
            "type": "string",
            "description": "State code"
          },
          "state_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the state"
          },
          "region": {
            "type": "string",
            "description": "Region name"
          },
          "region_code": {
            "type": "string",
            "description": "Region code"
          },
          "region_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the region"
          },
          "province": {
            "type": "string",
            "description": "Province name"
          },
          "province_code": {
            "type": "string",
            "description": "Province code"
          },
          "province_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the province"
          },
          "city": {
            "type": "string",
            "description": "City name"
          },
          "city_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the city"
          },
          "district1": {
            "type": "string",
            "description": "First-level district name"
          },
          "district1_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the first-level district"
          },
          "street": {
            "type": "string",
            "description": "Street name"
          },
          "street_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the street"
          },
          "number": {
            "type": "string",
            "description": "House number"
          },
          "exponent": {
            "type": "string",
            "description": "Exponent"
          },
          "zipcode": {
            "type": "string",
            "description": "Postal code"
          },
          "building": {
            "type": "string",
            "description": "Building name; available only for GBR and IRL"
          },
          "subbuilding": {
            "type": "string",
            "description": "Sub-building information; available only for GBR and IRL"
          },
          "organization": {
            "type": "string",
            "description": "Organization name; available only for GBR and IRL"
          }
        }
      },
      "SuggestResponseStreet": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SuggestStreetResults",
            "description": "Container object holding suggestion candidate results"
          },
          "system": {
            "$ref": "#/components/schemas/SuggestSystem",
            "description": "System error and execution status"
          }
        }
      },
      "SuggestStreetResults": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuggestStreetData"
            },
            "description": "Array of candidate matches returned by the suggestion engine"
          }
        }
      },
      "SuggestStreetData": {
        "type": "object",
        "properties": {
          "lngout": {
            "type": "string",
            "description": "Language code ISO 3166-1 numeric"
          },
          "state": {
            "type": "string",
            "description": "State name"
          },
          "state_code": {
            "type": "string",
            "description": "State code"
          },
          "state_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the state"
          },
          "region": {
            "type": "string",
            "description": "Region name"
          },
          "region_code": {
            "type": "string",
            "description": "Region code"
          },
          "region_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the region"
          },
          "province": {
            "type": "string",
            "description": "Province name"
          },
          "province_code": {
            "type": "string",
            "description": "Province code"
          },
          "province_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the province"
          },
          "city": {
            "type": "string",
            "description": "City name"
          },
          "city_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the city"
          },
          "district1": {
            "type": "string",
            "description": "First-level district name"
          },
          "district1_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the first-level district"
          },
          "zipcode": {
            "type": "string",
            "description": "Postal code"
          },
          "street": {
            "type": "string",
            "description": "Street name"
          },
          "street_id": {
            "format": "int64",
            "type": "number",
            "description": "ID of the street"
          }
        }
      },
      "SuggestSystem": {
        "type": "object",
        "properties": {
          "ret_code": {
            "format": "int32",
            "type": "number",
            "description": "Code: 0 no blocking error, <> 0 blocking error code"
          },
          "des_ret_code": {
            "type": "string",
            "description": "Description"
          }
        },
        "description": "System error and execution status"
      },
      "ValidationPhone": {
        "type": "object",
        "properties": {
          "pre_int": {
            "type": "string",
            "description": "International telephone prefix"
          },
          "pre_nat": {
            "type": "string",
            "description": "National telephone prefix"
          },
          "number": {
            "type": "string",
            "description": "Telephone number"
          }
        },
        "required": ["number"]
      },
      "ValidationEmail": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Email address"
          }
        },
        "required": ["email"]
      },
      "ValidationName": {
        "type": "object",
        "properties": {
          "type_ana": {
            "type": "string",
            "description": "Name analysis type"
          },
          "gender": {
            "type": "string",
            "description": "Gender"
          },
          "full_name": {
            "type": "string",
            "description": "Full name"
          },
          "mid_name": {
            "type": "string",
            "description": "Middle name"
          },
          "first_name": {
            "type": "string",
            "description": "First name"
          },
          "title": {
            "type": "string",
            "description": "Title"
          },
          "name_des": {
            "type": "string",
            "description": "Name description"
          },
          "birth_date": {
            "type": "string",
            "description": "Date of birth"
          },
          "birth_province": {
            "type": "string",
            "description": "Province of birth"
          },
          "birth_place": {
            "type": "string",
            "description": "Place of birth"
          }
        }
      },
      "ValidationAddress": {
        "type": "object",
        "properties": {
          "egoncode_place": {
            "format": "int64",
            "type": "number",
            "description": "Egon place code."
          },
          "egoncode_hn": {
            "format": "int64",
            "type": "number",
            "description": "Egon house-number code."
          },
          "country": {
            "type": "string",
            "description": "Country description."
          },
          "state": {
            "type": "string",
            "description": "State description."
          },
          "region": {
            "type": "string",
            "description": "Region description."
          },
          "province": {
            "type": "string",
            "description": "Province description."
          },
          "city": {
            "type": "string",
            "description": "City or municipality description."
          },
          "district1": {
            "type": "string",
            "description": "First district or locality description."
          },
          "district2": {
            "type": "string",
            "description": "Second district or locality description."
          },
          "district3": {
            "type": "string",
            "description": "Third district or locality description."
          },
          "zipcode": {
            "type": "string",
            "description": "Postal code."
          },
          "street_type": {
            "type": "string",
            "description": "Street type, for example Via, Viale, Piazza, or Corso."
          },
          "street": {
            "type": "string",
            "description": "Street description or street name."
          },
          "address": {
            "type": "string",
            "description": "Full unstructured address."
          },
          "hn": {
            "type": "string",
            "description": "House number."
          },
          "care_of": {
            "type": "string",
            "description": "Care-of information."
          },
          "building": {
            "type": "string",
            "description": "Building information."
          },
          "sub_building": {
            "type": "string",
            "description": "Sub-building information."
          },
          "organization": {
            "type": "string",
            "description": "Organization name."
          },
          "street_type_str2": {
            "type": "string",
            "description": "Second street type."
          },
          "street_2": {
            "type": "string",
            "description": "Second street description."
          },
          "hn_2": {
            "type": "string",
            "description": "Second house number."
          }
        },
        "description": "Address information to validate. All individual address fields are optional."
      },
      "ValidationDataOutput": {
        "type": "object",
        "properties": {
          "name": {
            "$ref": "#/components/schemas/ValidationNameData",
            "description": "Parsed and validated personal or corporate name details"
          },
          "tax_code": {
            "$ref": "#/components/schemas/ValidationTaxCodeData",
            "description": "Tax code details"
          },
          "vat_number": {
            "$ref": "#/components/schemas/ValidationVatNumberData",
            "description": "VAT number details"
          },
          "address": {
            "$ref": "#/components/schemas/ValidationAddressData",
            "description": "Normalized address details"
          },
          "geo": {
            "$ref": "#/components/schemas/ValidationGeoData",
            "description": "Geocoding coordinates and source quality level"
          },
          "postal": {
            "$ref": "#/components/schemas/ValidationPostalData",
            "description": "Standardized postal output rows"
          },
          "phones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationPhoneData"
            },
            "description": "Phone numbers to validate"
          },
          "emails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationEmailData"
            },
            "description": "Email addresses to validate"
          },
          "codes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationCodeData"
            },
            "description": "Administrative and cadastral domain codes"
          }
        },
        "description": "Normalized address data and optional output."
      },
      "ValidationPhoneData": {
        "type": "object",
        "properties": {
          "iso3": {
            "type": "string",
            "description": "Country code (ISO 3166-1 alpha-3)"
          },
          "type": {
            "type": "string",
            "description": "Administrative-code type"
          },
          "pre_int": {
            "type": "string",
            "description": "International telephone prefix"
          },
          "pre_nat": {
            "type": "string",
            "description": "National telephone prefix"
          },
          "number": {
            "type": "string",
            "description": "Telephone number"
          }
        }
      },
      "ValidationEmailData": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Email address"
          }
        }
      },
      "ValidationTaxCodeData": {
        "type": "object",
        "properties": {
          "cod_description": {
            "type": "string",
            "description": "Code description"
          }
        }
      },
      "ValidationCodeData": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Administrative-code type"
          },
          "cod_description": {
            "type": "string",
            "description": "Code description"
          }
        }
      },
      "ValidationVatNumberData": {
        "type": "object",
        "properties": {
          "cod_description": {
            "type": "string",
            "description": "Code description"
          }
        }
      },
      "ValidationNameData": {
        "type": "object",
        "properties": {
          "type_ana": {
            "type": "string",
            "description": "Name analysis type"
          },
          "gender": {
            "type": "string",
            "description": "Gender"
          },
          "full_name": {
            "type": "string",
            "description": "Full name"
          },
          "last_name": {
            "type": "string",
            "description": "Separate surname"
          },
          "mid_name": {
            "type": "string",
            "description": "Middle name"
          },
          "first_name": {
            "type": "string",
            "description": "First name"
          },
          "prename": {
            "type": "string",
            "description": "Separate name"
          },
          "title": {
            "type": "string",
            "description": "Title"
          },
          "firm_type": {
            "type": "string",
            "description": "Company legal form"
          },
          "birth_date": {
            "type": "string",
            "description": "Date of birth"
          },
          "birth_country": {
            "type": "string",
            "description": "Country of birth"
          },
          "birth_province": {
            "type": "string",
            "description": "Province of birth"
          },
          "birth_place": {
            "type": "string",
            "description": "Place of birth"
          },
          "name_des": {
            "type": "string",
            "description": "Name description"
          },
          "status": {
            "type": "string",
            "description": "Validation status"
          }
        }
      },
      "ValidationAddressData": {
        "type": "object",
        "properties": {
          "standard": {
            "$ref": "#/components/schemas/ValidationStandardData",
            "description": "Standard postal address formatting"
          },
          "short": {
            "$ref": "#/components/schemas/ValidationShortData",
            "description": "Short descriptions"
          },
          "smart": {
            "$ref": "#/components/schemas/ValidationSmartData",
            "description": "Smart formatted address components"
          }
        },
        "description": "Normalized address result."
      },
      "ValidationStandardData": {
        "type": "object",
        "properties": {
          "iso2": {
            "type": "string",
            "description": "Country ISO 3166-1 alpha-2 code."
          },
          "iso3": {
            "type": "string",
            "description": "Country ISO 3166-1 alpha-3 code."
          },
          "country": {
            "type": "string",
            "description": "Normalized country description."
          },
          "country_lng": {
            "type": "string",
            "description": "Country language code."
          },
          "state": {
            "type": "string",
            "description": "Normalized state description."
          },
          "state_code": {
            "type": "string",
            "description": "State code."
          },
          "state_lng": {
            "type": "string",
            "description": "State language code."
          },
          "region": {
            "type": "string",
            "description": "Normalized region description."
          },
          "region_code": {
            "type": "string",
            "description": "Region code."
          },
          "region_lng": {
            "type": "string",
            "description": "Region language code."
          },
          "province": {
            "type": "string",
            "description": "Normalized province description."
          },
          "province_code": {
            "type": "string",
            "description": "Province code."
          },
          "province_lng": {
            "type": "string",
            "description": "Province language code."
          },
          "city": {
            "type": "string",
            "description": "Normalized city description."
          },
          "city_lng": {
            "type": "string",
            "description": "City language code."
          },
          "locality": {
            "type": "string",
            "description": "Normalized locality or district description."
          },
          "locality_lng": {
            "type": "string",
            "description": "Locality language code."
          },
          "locality2": {
            "type": "string",
            "description": "Second locality or district description."
          },
          "locality2_lng": {
            "type": "string",
            "description": "Second locality language code."
          },
          "locality3": {
            "type": "string",
            "description": "Third locality or district description."
          },
          "locality3_lng": {
            "type": "string",
            "description": "Third locality language code."
          },
          "zipcode": {
            "type": "string",
            "description": "Normalized postal code."
          },
          "street_type": {
            "type": "string",
            "description": "Normalized street-type description."
          },
          "street_name": {
            "type": "string",
            "description": "Normalized street name."
          },
          "street": {
            "type": "string",
            "description": "Normalized street type and name."
          },
          "street_lng": {
            "type": "string",
            "description": "Street language code."
          },
          "address": {
            "type": "string",
            "description": "Formatted street address and house number."
          },
          "full_address": {
            "type": "string",
            "description": "Complete normalized address."
          },
          "street_type2": {
            "type": "string",
            "description": "Second street-type description."
          },
          "street_name2": {
            "type": "string",
            "description": "Second street name."
          },
          "street2": {
            "type": "string",
            "description": "Second normalized street."
          },
          "street2_lng": {
            "type": "string",
            "description": "Second street language code."
          },
          "hn": {
            "type": "string",
            "description": "Normalized house number."
          },
          "hn_ext": {
            "type": "string",
            "description": "Additional house-number information."
          },
          "care_of": {
            "type": "string",
            "description": "Care-of information."
          },
          "hn_2": {
            "type": "string",
            "description": "Second house number."
          },
          "building": {
            "type": "string",
            "description": "Building information."
          },
          "subbuilding": {
            "type": "string",
            "description": "Sub-building information."
          },
          "organization": {
            "type": "string",
            "description": "Organization"
          },
          "postal_town1": {
            "type": "string",
            "description": "Primary postal town or area."
          },
          "postal_town2": {
            "type": "string",
            "description": "Secondary postal town or locality."
          },
          "match_code": {
            "type": "string",
            "description": "Address matching result code."
          },
          "adm_code": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationAdmCodeData"
            },
            "description": "Administrative code collection."
          },
          "cnd": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationCndData"
            },
            "description": "Candidate address values when matching is not exact."
          },
          "egon_code": {
            "$ref": "#/components/schemas/ValidationEgonCodeData",
            "description": "Egon internal code place, street, and house number"
          }
        },
        "description": "Complete structured and normalized address."
      },
      "ValidationShortData": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "description": "Country description."
          },
          "state": {
            "type": "string",
            "description": "State description."
          },
          "region": {
            "type": "string",
            "description": "Region description."
          },
          "province": {
            "type": "string",
            "description": "Province description."
          },
          "city": {
            "type": "string",
            "description": "City description."
          },
          "locality": {
            "type": "string",
            "description": "Locality or district description."
          },
          "locality2": {
            "type": "string",
            "description": "Second locality description."
          },
          "locality3": {
            "type": "string",
            "description": "Third locality description."
          },
          "street_type": {
            "type": "string",
            "description": "Street-type description."
          },
          "street_name": {
            "type": "string",
            "description": "Street name."
          },
          "street": {
            "type": "string",
            "description": "Street type and name."
          }
        },
        "description": "Short descriptions, returned when par.fmtsht is enabled."
      },
      "ValidationAdmCodeData": {
        "type": "object",
        "properties": {
          "iso3": {
            "type": "string",
            "description": "Country ISO alpha-3 code."
          },
          "type": {
            "type": "string",
            "description": "Administrative-code type."
          },
          "value": {
            "type": "string",
            "description": "Administrative code or description."
          }
        }
      },
      "ValidationCndData": {
        "type": "object",
        "properties": {
          "province": {
            "type": "string",
            "description": "Candidate province."
          },
          "city": {
            "type": "string",
            "description": "Candidate city."
          },
          "locality": {
            "type": "string",
            "description": "Candidate locality."
          },
          "street": {
            "type": "string",
            "description": "Candidate street."
          },
          "zipcode": {
            "type": "string",
            "description": "Candidate postal code."
          },
          "street_code": {
            "format": "int64",
            "type": "number",
            "description": "Candidate street code."
          }
        }
      },
      "ValidationEgonCodeData": {
        "type": "object",
        "properties": {
          "city": {
            "format": "int64",
            "type": "number",
            "description": "Egon city code."
          },
          "locality": {
            "format": "int64",
            "type": "number",
            "description": "Egon locality code."
          },
          "street": {
            "format": "int64",
            "type": "number",
            "description": "Egon street code."
          }
        },
        "description": "Egon hierarchical code collection."
      },
      "ValidationSmartData": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "description": "Country description"
          },
          "administrative_level": {
            "type": "string",
            "description": "Administrative level."
          },
          "city": {
            "type": "string",
            "description": "City."
          },
          "address": {
            "type": "string",
            "description": "Street type + Street description + House number"
          },
          "zipcode": {
            "type": "string",
            "description": "Postal code."
          }
        },
        "description": "Simplified address representation."
      },
      "ValidationGeoData": {
        "type": "object",
        "properties": {
          "lat_long": {
            "type": "string",
            "description": "Coordinates in latitude, longitude format."
          },
          "geo_level": {
            "type": "string",
            "description": "Geocoding quality level."
          },
          "census_code": {
            "type": "string",
            "description": "Census code."
          },
          "census_lat_long": {
            "type": "string",
            "description": "Census coordinates."
          }
        },
        "description": "Geocoding output, returned when par.geo is set to S."
      },
      "ValidationPostalData": {
        "type": "object",
        "properties": {
          "row1": {
            "type": "string",
            "description": "Postal row 1."
          },
          "row2": {
            "type": "string",
            "description": "Postal row 2."
          },
          "row3": {
            "type": "string",
            "description": "Postal row 3."
          },
          "row4": {
            "type": "string",
            "description": "Postal row 4."
          },
          "row5": {
            "type": "string",
            "description": "Postal row 5."
          },
          "row6": {
            "type": "string",
            "description": "Postal row 6."
          },
          "row7": {
            "type": "string",
            "description": "Postal row 7."
          }
        },
        "description": "Postal-format output rows."
      },
      "ValidationQuality": {
        "type": "object",
        "properties": {
          "phones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationPhoneQuality"
            },
            "description": "Phone numbers to validate"
          },
          "emails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationEmailQuality"
            },
            "description": "Email addresses to validate"
          },
          "tax_code": {
            "$ref": "#/components/schemas/ValidationTaxCodeQuality",
            "description": "Quality indicator result (see Quality indicators → Tax code section)"
          },
          "name": {
            "$ref": "#/components/schemas/ValidationNameQuality",
            "description": "Quality indicator result (see Quality indicators → Person section)"
          },
          "address": {
            "$ref": "#/components/schemas/ValidationAddressQuality",
            "description": "Quality indicator result (see Quality indicators → Address section)"
          },
          "vat_number": {
            "$ref": "#/components/schemas/ValidationVatNumberQuality",
            "description": "Quality indicator result (see Quality indicators → VAT section)"
          }
        },
        "description": "Address validation quality indicators."
      },
      "ValidationPhoneQuality": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag"
          },
          "code": {
            "format": "int32",
            "type": "number",
            "description": "Quality code"
          },
          "description": {
            "type": "string",
            "description": "Human-readable quality description"
          }
        }
      },
      "ValidationEmailQuality": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag"
          },
          "code": {
            "format": "int32",
            "type": "number",
            "description": "Quality code"
          },
          "description": {
            "type": "string",
            "description": "Human-readable quality description"
          }
        }
      },
      "ValidationTaxCodeQuality": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag"
          },
          "code": {
            "format": "int32",
            "type": "number",
            "description": "Quality code"
          },
          "description": {
            "type": "string",
            "description": "Human-readable quality description"
          }
        }
      },
      "ValidationVatNumberQuality": {
        "type": "object",
        "x-wp-new-istance": true,
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag"
          },
          "code": {
            "format": "int32",
            "type": "number",
            "description": "Quality code"
          },
          "description": {
            "type": "string",
            "description": "Human-readable quality description"
          }
        }
      },
      "ValidationNameQuality": {
        "type": "object",
        "properties": {
          "person": {
            "$ref": "#/components/schemas/ValidationPersonQualityInternal",
            "description": "Quality indicator result - person"
          },
          "birth_date": {
            "$ref": "#/components/schemas/ValidationBirthDate",
            "description": "Quality indicator result - birth date"
          },
          "birth_place": {
            "$ref": "#/components/schemas/ValidationBirthPlace",
            "description": "Quality indicator result - birth place"
          }
        }
      },
      "ValidationPersonQualityInternal": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag"
          },
          "code": {
            "format": "int32",
            "type": "number",
            "description": "Quality code"
          },
          "description": {
            "type": "string",
            "description": "Human-readable quality description"
          }
        }
      },
      "ValidationBirthDate": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag"
          },
          "code": {
            "format": "int32",
            "type": "number",
            "description": "Quality code"
          },
          "description": {
            "type": "string",
            "description": "Human-readable quality description"
          }
        }
      },
      "ValidationBirthPlace": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag"
          },
          "code": {
            "format": "int32",
            "type": "number",
            "description": "Quality code"
          },
          "description": {
            "type": "string",
            "description": "Human-readable quality description"
          }
        }
      },
      "ValidationAddressQuality": {
        "type": "object",
        "properties": {
          "locality": {
            "$ref": "#/components/schemas/ValidationLocality",
            "description": "Quality indicator result - locality"
          },
          "street": {
            "$ref": "#/components/schemas/ValidationStreet",
            "description": "Quality indicator result - street"
          },
          "hn": {
            "$ref": "#/components/schemas/ValidationHouseNumber",
            "description": "Quality indicator result - house number"
          }
        },
        "description": "Quality results by address component."
      },
      "ValidationLocality": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag."
          },
          "code": {
            "format": "int32",
            "type": "number",
            "description": "Quality code."
          },
          "description": {
            "type": "string",
            "description": "Human-readable quality result."
          }
        },
        "description": "Quality of locality or city matching."
      },
      "ValidationStreet": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag."
          },
          "code": {
            "format": "int32",
            "type": "number",
            "description": "Quality code."
          },
          "description": {
            "type": "string",
            "description": "Human-readable quality result."
          }
        },
        "description": "Quality of street matching."
      },
      "ValidationHouseNumber": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag."
          },
          "code": {
            "format": "int32",
            "type": "number",
            "description": "Quality code."
          },
          "description": {
            "type": "string",
            "description": "Human-readable quality result."
          }
        },
        "description": "Quality of house-number matching."
      },
      "ValidationSystem": {
        "type": "object",
        "properties": {
          "ret_code": {
            "format": "int32",
            "type": "number",
            "description": "Processing result code. 0 means no blocking error."
          },
          "des_ret_code": {
            "type": "string",
            "description": "Human-readable processing result."
          }
        },
        "description": "Request processing status."
      },
      "FullAddressRequestFullAddress": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/FullAddressParFullAddress",
            "description": "Processing parameters and country context"
          },
          "data": {
            "$ref": "#/components/schemas/FullAddressDataFullAddress",
            "description": "Query string and territorial restriction"
          }
        }
      },
      "FullAddressParFullAddress": {
        "type": "object",
        "required": ["iso3"],
        "properties": {
          "iso3": {
            "type": "string",
            "description": "ISO 3166-1 alpha-3 country code"
          },
          "output": {
            "type": "string",
            "description": "Output language. Allowed values: `NAT`, `LAT`, `TRA`, `INT`, or an empty value to keep the input language"
          }
        }
      },
      "FullAddressDataFullAddress": {
        "type": "object",
        "required": ["query"],
        "properties": {
          "query": {
            "type": "string",
            "description": "Free-text query containing the complete address"
          },
          "restrict_id": {
            "format": "int64",
            "type": "number",
            "description": "Identifier of the territorial restriction. Required when `restrict_level` is provided"
          },
          "restrict_level": {
            "type": "string",
            "description": "Territorial level used for the restriction. Required when `restrict_id` is provided. Allowed values: `state`, `region`, `province`, `city`, `district1`"
          }
        }
      },
      "FullAddressResponseFullAddress": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/FullAddressFullAddressResult",
            "description": "Parsed and normalized candidate addresses"
          },
          "system": {
            "$ref": "#/components/schemas/FullAddressSystem",
            "description": "System error and execution status"
          }
        }
      },
      "FullAddressFullAddressResult": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FullAddressFullAddressData"
            },
            "description": "Array of candidate matching addresses"
          }
        }
      },
      "FullAddressFullAddressData": {
        "type": "object",
        "properties": {
          "iso3": {
            "type": "string",
            "description": "ISO 3166-1 alpha-3 country code"
          },
          "id": {
            "format": "int64",
            "type": "number",
            "description": "Street identifier"
          },
          "country": {
            "type": "string",
            "description": "Country name"
          },
          "state": {
            "type": "string",
            "description": "State name"
          },
          "region": {
            "type": "string",
            "description": "Region name"
          },
          "province": {
            "type": "string",
            "description": "Province name"
          },
          "province_code": {
            "type": "string",
            "description": "Province code"
          },
          "city": {
            "type": "string",
            "description": "City name"
          },
          "district1": {
            "type": "string",
            "description": "First-level district name"
          },
          "district2": {
            "type": "string",
            "description": "Second-level district name"
          },
          "district3": {
            "type": "string",
            "description": "Third-level district name"
          },
          "zipcode": {
            "type": "string",
            "description": "Postal or ZIP code"
          },
          "street": {
            "type": "string",
            "description": "Street name"
          },
          "hn_num": {
            "type": "string",
            "description": "Numeric portion of the house number"
          },
          "hn_exp": {
            "type": "string",
            "description": "House-number suffix or exponent"
          }
        }
      },
      "FullAddressSystem": {
        "type": "object",
        "properties": {
          "ret_code": {
            "format": "int32",
            "type": "number",
            "description": "Code: 0 no blocking error, <> 0 blocking error code"
          },
          "des_ret_code": {
            "type": "string",
            "description": "Description"
          }
        },
        "description": "System error and execution status"
      },
      "ValidationAddressRequest": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/ValidationAddressPar",
            "description": "Processing options and country context"
          },
          "data": {
            "type": "object",
            "required": ["address"],
            "properties": {
              "address": {
                "$ref": "#/components/schemas/ValidationAddress"
              }
            },
            "description": "Address information to validate"
          }
        }
      },
      "ValidationAddressResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ValidationDataOutput",
            "description": "Normalized and enriched validation output data"
          },
          "quality": {
            "$ref": "#/components/schemas/ValidationQuality",
            "description": "Validation quality indicators and score flags"
          },
          "system": {
            "$ref": "#/components/schemas/ValidationSystem",
            "description": "System error and execution status"
          }
        }
      },
      "ValidationEmailRequest": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/ValidationEmailPar",
            "description": "Processing options and country context"
          },
          "data": {
            "type": "object",
            "required": ["emails"],
            "properties": {
              "emails": {
                "type": "array",
                "description": "Email addresses to validate",
                "items": {
                  "$ref": "#/components/schemas/ValidationEmail"
                }
              }
            },
            "description": "Input data to validate"
          }
        }
      },
      "ValidationEmailResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "emails": {
                "type": "array",
                "description": "Normalized email addresses",
                "items": {
                  "$ref": "#/components/schemas/ValidationEmail"
                }
              }
            },
            "description": "Normalized and enriched validation output data"
          },
          "quality": {
            "type": "object",
            "properties": {
              "emails": {
                "type": "array",
                "description": "Quality indicator results for each email",
                "items": {
                  "$ref": "#/components/schemas/ValidationQualityItem"
                }
              }
            },
            "description": "Validation quality indicators and score flags"
          },
          "system": {
            "$ref": "#/components/schemas/ValidationSystem",
            "description": "System error and execution status"
          }
        }
      },
      "ValidationNameRequest": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/ValidationNamePar",
            "description": "Processing options and country context"
          },
          "data": {
            "type": "object",
            "required": ["name"],
            "properties": {
              "name": {
                "$ref": "#/components/schemas/ValidationName",
                "description": "Personal name components to parse and validate"
              }
            },
            "description": "Input data to validate"
          }
        }
      },
      "ValidationNameResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "name": {
                "type": "object",
                "properties": {
                  "type_ana": {
                    "type": "string",
                    "description": "Customer data type"
                  },
                  "gender": {
                    "type": "string",
                    "description": "Gender"
                  },
                  "full_name": {
                    "type": "string",
                    "description": "Validated full name"
                  },
                  "last_name": {
                    "type": "string",
                    "description": "Separate surname"
                  },
                  "mid_name": {
                    "type": "string",
                    "description": "Middle name"
                  },
                  "first_name": {
                    "type": "string",
                    "description": "Separate name"
                  },
                  "prename": {
                    "type": "string",
                    "description": "Name suffix (e.g. Junior/Senior)"
                  },
                  "title": {
                    "type": "string",
                    "description": "Academic or professional title"
                  },
                  "firm_type": {
                    "type": "string",
                    "description": "Official juridical specification (e.g. S.R.L., S.P.A.)"
                  },
                  "birth_date": {
                    "type": "string",
                    "description": "Date of birth in YYYYMMDD format"
                  },
                  "birth_country": {
                    "type": "string",
                    "description": "Country of birth"
                  },
                  "birth_province": {
                    "type": "string",
                    "description": "Province of birth"
                  },
                  "birth_place": {
                    "type": "string",
                    "description": "City of birth"
                  },
                  "name_des": {
                    "type": "string",
                    "description": "Name designator"
                  },
                  "status": {
                    "type": "string",
                    "description": "Status"
                  }
                },
                "description": "Parsed, validated, and normalized personal name details"
              }
            },
            "description": "Normalized and enriched validation output data"
          },
          "quality": {
            "type": "object",
            "properties": {
              "name": {
                "type": "object",
                "properties": {
                  "person": {
                    "$ref": "#/components/schemas/ValidationQualityItem"
                  },
                  "birth_date": {
                    "$ref": "#/components/schemas/ValidationQualityItem"
                  },
                  "birth_place": {
                    "$ref": "#/components/schemas/ValidationQualityItem"
                  }
                },
                "description": "Quality indicators for personal name parsing and demographic verification"
              }
            },
            "description": "Validation quality indicators and score flags"
          },
          "system": {
            "$ref": "#/components/schemas/ValidationSystem",
            "description": "System error and execution status"
          }
        }
      },
      "ValidationPhoneRequest": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/ValidationPhonePar",
            "description": "Processing options and country context"
          },
          "data": {
            "type": "object",
            "required": ["phones"],
            "properties": {
              "phones": {
                "type": "array",
                "description": "Collection of telephone numbers to validate",
                "items": {
                  "$ref": "#/components/schemas/ValidationPhone"
                }
              }
            },
            "description": "Input data to validate"
          }
        }
      },
      "ValidationPhoneResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "phones": {
                "type": "array",
                "description": "Normalized telephone entries",
                "items": {
                  "type": "object",
                  "properties": {
                    "iso3": {
                      "type": "string",
                      "description": "Country code (ISO 3166-1 alpha-3)"
                    },
                    "type": {
                      "type": "string",
                      "description": "Telephone-number type code"
                    },
                    "pre_int": {
                      "type": "string",
                      "description": "Normalized international dialing prefix"
                    },
                    "pre_nat": {
                      "type": "string",
                      "description": "Normalized national dialing prefix"
                    },
                    "number": {
                      "type": "string",
                      "description": "Normalized local telephone number"
                    }
                  }
                }
              }
            },
            "description": "Normalized and enriched validation output data"
          },
          "quality": {
            "type": "object",
            "properties": {
              "phones": {
                "type": "array",
                "description": "Quality result for each returned phone entry",
                "items": {
                  "$ref": "#/components/schemas/ValidationQualityItem"
                }
              }
            },
            "description": "Validation quality indicators and score flags"
          },
          "system": {
            "$ref": "#/components/schemas/ValidationSystem",
            "description": "System error and execution status"
          }
        }
      },
      "ValidationTaxCodeCalcRequest": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/ValidationTaxCodeCalcPar",
            "description": "Processing options and country context"
          },
          "data": {
            "type": "object",
            "required": ["name"],
            "properties": {
              "name": {
                "type": "object",
                "required": [
                  "full_name",
                  "first_name",
                  "gender",
                  "birth_date",
                  "birth_place"
                ],
                "properties": {
                  "full_name": {
                    "type": "string",
                    "description": "Surname"
                  },
                  "first_name": {
                    "type": "string",
                    "description": "First name"
                  },
                  "gender": {
                    "type": "string",
                    "description": "Gender (`1` Male, `2` Female)"
                  },
                  "birth_date": {
                    "type": "string",
                    "description": "Date of birth in `YYYYMMDD` format"
                  },
                  "birth_place": {
                    "type": "string",
                    "description": "Birth city description"
                  }
                },
                "description": "Identity and demographic data used to calculate tax code"
              }
            },
            "description": "Input data to validate"
          }
        }
      },
      "ValidationTaxCodeCalcResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "tax_code": {
                "type": "object",
                "properties": {
                  "cod_description": {
                    "type": "string",
                    "description": "Calculated Italian tax code"
                  }
                },
                "description": "Calculated Italian tax code details"
              }
            },
            "description": "Normalized and enriched validation output data"
          },
          "quality": {
            "type": "object",
            "properties": {
              "tax_code": {
                "$ref": "#/components/schemas/ValidationQualityItem"
              },
              "name": {
                "type": "object",
                "properties": {
                  "person": {
                    "$ref": "#/components/schemas/ValidationQualityItem"
                  },
                  "birth_date": {
                    "$ref": "#/components/schemas/ValidationQualityItem"
                  },
                  "birth_place": {
                    "$ref": "#/components/schemas/ValidationQualityItem"
                  }
                },
                "description": "Quality indicators for personal name parsing and demographic verification"
              }
            },
            "description": "Validation quality indicators and score flags"
          },
          "system": {
            "$ref": "#/components/schemas/ValidationSystem",
            "description": "System error and execution status"
          }
        }
      },
      "ValidationTaxCodeCheckRequest": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/ValidationTaxCodeCheckPar",
            "description": "Processing options and country context"
          },
          "data": {
            "type": "object",
            "required": ["tax_code"],
            "properties": {
              "tax_code": {
                "type": "object",
                "required": ["cod_description"],
                "properties": {
                  "cod_iso3": {
                    "type": "string",
                    "description": "Country code (ISO 3166-1 alpha-3)"
                  },
                  "cod_type": {
                    "type": "string",
                    "description": "Type of code"
                  },
                  "cod_description": {
                    "type": "string",
                    "description": "Italian tax code to check"
                  }
                },
                "description": "Italian tax code to validate"
              }
            },
            "description": "Input data to validate"
          }
        }
      },
      "ValidationTaxCodeCheckResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "tax_code": {
                "type": "object",
                "properties": {
                  "cod_description": {
                    "type": "string",
                    "description": "Italian tax code"
                  }
                },
                "description": "Validated tax code details"
              }
            },
            "description": "Normalized and enriched validation output data"
          },
          "quality": {
            "type": "object",
            "properties": {
              "tax_code": {
                "$ref": "#/components/schemas/ValidationQualityItem"
              }
            },
            "description": "Validation quality indicators and score flags"
          },
          "system": {
            "$ref": "#/components/schemas/ValidationSystem",
            "description": "System error and execution status"
          }
        }
      },
      "ValidationTaxCodeExtractRequest": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/ValidationTaxCodeExtractPar",
            "description": "Processing options and country context"
          },
          "data": {
            "type": "object",
            "required": ["tax_code"],
            "properties": {
              "tax_code": {
                "type": "object",
                "required": ["cod_description"],
                "properties": {
                  "cod_iso3": {
                    "type": "string",
                    "description": "Country code (ISO 3166-1 alpha-3)"
                  },
                  "cod_type": {
                    "type": "string",
                    "description": "Type of code"
                  },
                  "cod_description": {
                    "type": "string",
                    "description": "Italian tax code to extract info from"
                  }
                },
                "description": "Italian tax code to extract demographics from"
              }
            },
            "description": "Input data to validate"
          }
        }
      },
      "ValidationTaxCodeExtractResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "name": {
                "type": "object",
                "properties": {
                  "gender": {
                    "type": "string",
                    "description": "Extracted gender"
                  },
                  "birth_date": {
                    "type": "string",
                    "description": "Extracted date of birth in `YYYYMMDD` format"
                  },
                  "birth_province": {
                    "type": "string",
                    "description": "Extracted birth province code"
                  },
                  "birth_place": {
                    "type": "string",
                    "description": "Extracted birth city description"
                  }
                },
                "description": "Extracted demographic and birthplace data"
              }
            },
            "description": "Normalized and enriched validation output data"
          },
          "quality": {
            "type": "object",
            "properties": {
              "tax_code": {
                "$ref": "#/components/schemas/ValidationQualityItem"
              }
            },
            "description": "Validation quality indicators and score flags"
          },
          "system": {
            "$ref": "#/components/schemas/ValidationSystem",
            "description": "System error and execution status"
          }
        }
      },
      "ValidationTaxCodeMatchRequest": {
        "type": "object",
        "required": ["par", "data"],
        "properties": {
          "par": {
            "$ref": "#/components/schemas/ValidationTaxCodeMatchPar",
            "description": "Processing options and country context"
          },
          "data": {
            "type": "object",
            "required": ["name", "tax_code"],
            "properties": {
              "name": {
                "type": "object",
                "required": [
                  "full_name",
                  "first_name",
                  "gender",
                  "birth_date",
                  "birth_place"
                ],
                "properties": {
                  "full_name": {
                    "type": "string",
                    "description": "Surname"
                  },
                  "first_name": {
                    "type": "string",
                    "description": "First name"
                  },
                  "gender": {
                    "type": "string",
                    "description": "Gender (`1` Male, `2` Female)"
                  },
                  "birth_date": {
                    "type": "string",
                    "description": "Date of birth in `YYYYMMDD` format"
                  },
                  "birth_place": {
                    "type": "string",
                    "description": "Birth city description"
                  }
                },
                "description": "Personal identity data to compare against tax code"
              },
              "tax_code": {
                "type": "object",
                "required": ["cod_description"],
                "properties": {
                  "cod_iso3": {
                    "type": "string",
                    "description": "Country code (ISO 3166-1 alpha-3)"
                  },
                  "cod_type": {
                    "type": "string",
                    "description": "Code type"
                  },
                  "cod_description": {
                    "type": "string",
                    "description": "Italian tax code to match"
                  }
                },
                "description": "Italian tax code to match"
              }
            },
            "description": "Input data to validate"
          }
        }
      },
      "ValidationTaxCodeMatchResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "name": {
                "type": "object",
                "properties": {
                  "type_ana": {
                    "type": "string",
                    "description": "Person/customer type"
                  },
                  "gender": {
                    "type": "string",
                    "description": "Normalized gender"
                  },
                  "full_name": {
                    "type": "string",
                    "description": "Normalized full name"
                  },
                  "last_name": {
                    "type": "string",
                    "description": "Normalized surname"
                  },
                  "first_name": {
                    "type": "string",
                    "description": "Normalized first name"
                  },
                  "birth_date": {
                    "type": "string",
                    "description": "Date of birth in `YYYYMMDD` format"
                  },
                  "birth_province": {
                    "type": "string",
                    "description": "Birth province code"
                  },
                  "birth_place": {
                    "type": "string",
                    "description": "Normalized birthplace"
                  }
                },
                "description": "Validated identity data and matching outcome"
              },
              "tax_code": {
                "type": "object",
                "properties": {
                  "cod_description": {
                    "type": "string",
                    "description": "Italian tax code result"
                  }
                },
                "description": "Matched tax code details"
              }
            },
            "description": "Normalized and enriched validation output data"
          },
          "quality": {
            "type": "object",
            "properties": {
              "tax_code": {
                "$ref": "#/components/schemas/ValidationQualityItem"
              },
              "name": {
                "type": "object",
                "properties": {
                  "person": {
                    "$ref": "#/components/schemas/ValidationQualityItem"
                  },
                  "birth_date": {
                    "$ref": "#/components/schemas/ValidationQualityItem"
                  },
                  "birth_place": {
                    "$ref": "#/components/schemas/ValidationQualityItem"
                  }
                },
                "description": "Quality indicators for personal name parsing and demographic verification"
              }
            },
            "description": "Validation quality indicators and score flags"
          },
          "system": {
            "$ref": "#/components/schemas/ValidationSystem",
            "description": "System error and execution status"
          }
        }
      },
      "ValidationQualityItem": {
        "type": "object",
        "properties": {
          "flag": {
            "type": "string",
            "description": "Quality flag"
          },
          "code": {
            "type": "number",
            "description": "Quality result code"
          },
          "description": {
            "type": "string",
            "description": "Quality result description"
          }
        },
        "description": "Quality indicator result (see https://docs.egon.com/docs/quality-indicators)"
      },
      "ValidationAddressPar": {
        "type": "object",
        "properties": {
          "iso2": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "description": "Country code, ISO 3166-1 alpha-2.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "iso3": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "description": "Country code, ISO 3166-1 alpha-3.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "geo": {
            "type": "string",
            "default": "N",
            "description": "Activate geocoding.\n\n- `N` No\n- `S` Yes"
          },
          "fmtout": {
            "type": "string",
            "description": "Output format.\n\n- `C` Capitalized\n- `M` Upper case\n- `T` Upper case with apostrophes instead of accents\n- `X` Upper case without accents",
            "default": "C"
          },
          "fmtsht": {
            "type": "string",
            "default": "N",
            "description": "Activate short descriptions.\n\n- `N` No\n- `S` Yes"
          },
          "lngout": {
            "type": "string",
            "description": "Output language.\n\n- `NAT` Native output language\n- `TRA` Transliterated output language\n- `INT` International or English output language\n- `<empty>` Keep the input language"
          },
          "tpxout": {
            "type": "string",
            "description": "Output description format.\n\n- `LAT` Latinized output without accents"
          }
        },
        "description": "Processing options and country context for address validation."
      },
      "ValidationEmailPar": {
        "type": "object",
        "properties": {
          "iso2": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "description": "Country code, ISO 3166-1 alpha-2.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "iso3": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "description": "Country code, ISO 3166-1 alpha-3.\n\nOne of `iso2` or `iso3` is **required**."
          }
        },
        "description": "Country context for email validation."
      },
      "ValidationNamePar": {
        "type": "object",
        "properties": {
          "iso2": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "description": "Country code, ISO 3166-1 alpha-2.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "iso3": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "description": "Country code, ISO 3166-1 alpha-3.\n\nOne of `iso2` or `iso3` is **required**."
          }
        },
        "description": "Country context for name analysis and validation."
      },
      "ValidationPhonePar": {
        "type": "object",
        "properties": {
          "iso2": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "description": "Country code, ISO 3166-1 alpha-2.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "iso3": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "description": "Country code, ISO 3166-1 alpha-3.\n\nOne of `iso2` or `iso3` is **required**."
          }
        },
        "description": "Country context for phone number normalization."
      },
      "ValidationTaxCodeCalcPar": {
        "type": "object",
        "properties": {
          "iso2": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "description": "Country code, ISO 3166-1 alpha-2.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "iso3": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "description": "Country code, ISO 3166-1 alpha-3.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "taxfnx": {
            "type": "string",
            "default": "3",
            "description": "Tax-code configuration function.\n\n- `3` Calculate tax code from identity data"
          }
        },
        "required": ["taxfnx"],
        "description": "Country context and tax-code calculation function."
      },
      "ValidationTaxCodeCheckPar": {
        "type": "object",
        "properties": {
          "iso2": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "description": "Country code, ISO 3166-1 alpha-2.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "iso3": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "description": "Country code, ISO 3166-1 alpha-3.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "taxfnx": {
            "type": "string",
            "default": "2",
            "description": "Tax-code configuration function.\n\n- `2` Formal check and validation"
          }
        },
        "required": ["taxfnx"],
        "description": "Country context and tax-code validation function."
      },
      "ValidationTaxCodeExtractPar": {
        "type": "object",
        "properties": {
          "iso2": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "description": "Country code, ISO 3166-1 alpha-2.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "iso3": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "description": "Country code, ISO 3166-1 alpha-3.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "taxfnx": {
            "type": "string",
            "default": "5",
            "description": "Tax-code configuration function.\n\n- `5` Extract demographic information from tax code"
          }
        },
        "required": ["taxfnx"],
        "description": "Country context and tax-code extraction function."
      },
      "ValidationTaxCodeMatchPar": {
        "type": "object",
        "properties": {
          "iso2": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "description": "Country code, ISO 3166-1 alpha-2.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "iso3": {
            "type": "string",
            "maxLength": 3,
            "minLength": 3,
            "description": "Country code, ISO 3166-1 alpha-3.\n\nOne of `iso2` or `iso3` is **required**."
          },
          "taxfnx": {
            "type": "string",
            "default": "1",
            "description": "Tax-code configuration function.\n\n- `1` Compare and match tax code against personal identity data"
          }
        },
        "required": ["taxfnx"],
        "description": "Country context and tax-code match function."
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "number",
                "description": "HTTP error status code."
              },
              "message": {
                "type": "string",
                "description": "Error message description."
              },
              "details": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "description": "Validation error messages grouped by field."
              }
            },
            "description": "Error container."
          }
        },
        "description": "Error response container."
      }
    }
  }
}
