v1
latestOpenAPI 3.0.12026-07-245277551.2 MBFiscalization
Validate fiscalization registration data
Validates party data against country-specific fiscalization rules based on the $regime field
post/fiscal-document/v1/fiscalization/registration/validate
Request body
Example request
{
"country": "IT",
"name": "Mario Rossi Albergo",
"taxId": "98765432103",
"addresses": [
{
"street": "Via Roma 123",
"number": "123",
"locality": "Centro",
"region": "Milan",
"state": "MI",
"postalCode": "20121",
"country": "IT"
}
],
"emails": [
{
"address": "fatture@hotel-italia.it",
"label": "Invoicing"
}
],
"phones": [
{
"number": "+39 02 1234567",
"label": "Office"
}
],
"identities": {
"it-fiscal-code": "98765432103"
},
"extensions": {
"it-regime-fiscale": "RF07",
"it-sdi-format": "FPR12",
"mx_border_zone": "true"
}
}Response
Validation completed
Example response
{
"errors": [
{
"message": "One or more fields failed validation",
"code": "VALIDATION_ERROR",
"timestamp": "2024-01-15T10:30:45.123Z",
"fieldErrors": [
{
"field": "email",
"message": "must be a well-formed email address (provided: 'invalid-email')"
}
]
}
],
"warnings": [
{
"message": "One or more fields failed validation",
"code": "VALIDATION_ERROR",
"timestamp": "2024-01-15T10:30:45.123Z",
"fieldErrors": [
{
"field": "email",
"message": "must be a well-formed email address (provided: 'invalid-email')"
}
]
}
]
}