Validation Services
Tax Code Calculation
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.
Headers & authentication
Required request headers and their expected values.
| Field | Type | Description |
|---|---|---|
tokenreq | String | Authentication token sent in the |
Request
Country context, `taxfnx` function `3`, and personal identity data.
| Field | Type | Description |
|---|---|---|
parreq | Object | Country context and tax-code calculation function. |
iso2 | String | Country code, ISO 3166-1 alpha-2. One of |
iso3 | String | Country code, ISO 3166-1 alpha-3. One of |
taxfnxreq | String | Tax-code configuration function.
Default value: |
datareq | Object | Input data to validate |
namereq | Object | Identity and demographic data used to calculate tax code |
full_namereq | String | Surname |
first_namereq | String | First name |
genderreq | String | Gender ( |
birth_datereq | String | Date of birth in |
birth_placereq | String | Birth city description |
Response
Calculated tax code, quality indicators for personal identity fields, and system status.
| Field | Type | Description |
|---|---|---|
data | Object | Normalized and enriched validation output data |
tax_code | Object | Calculated Italian tax code details |
cod_description | String | Calculated Italian tax code |
quality | Object | Validation quality indicators and score flags |
tax_code | Object | Quality indicator result (see https://documentation.egon.com/docs/quality-indicators) |
flag | String | Quality flag |
code | Number | Quality result code |
description | String | Quality result description |
name | Object | Quality indicators for personal name parsing and demographic verification |
person | Object | Quality indicator result (see https://documentation.egon.com/docs/quality-indicators) |
flag | String | Quality flag |
code | Number | Quality result code |
description | String | Quality result description |
birth_date | Object | Quality indicator result (see https://documentation.egon.com/docs/quality-indicators) |
flag | String | Quality flag |
code | Number | Quality result code |
description | String | Quality result description |
birth_place | Object | Quality indicator result (see https://documentation.egon.com/docs/quality-indicators) |
flag | String | Quality flag |
code | Number | Quality result code |
description | String | Quality result description |
system | Object | Request processing status. |
ret_code | Number | Processing result code. 0 means no blocking error. |
des_ret_code | String | Human-readable processing result. |
curl -X POST "https://{host}:{port}/Egon/api/norm" \
-H "token: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"par": {
"iso3": "ITA",
"taxfnx": "3"
},
"data": {
"name": {
"full_name": "Rossi",
"first_name": "Mario",
"gender": "1",
"birth_date": "19930219",
"birth_place": "Verona"
}
}
}'