Tax Code (TIN)
Formal validation (it does not check whether it actually exists) of a tax code within the European Union
Check the formal validity of a tax code
POST https://api.gsped.it/[INSTANCE]/validation/tin
Headers
Name
Type
Description
x-api-key*
String
APIKEY provided by Gsped
Request Body
Name
Type
Description
country*
String
Tax code country as ISO-2 code
value*
String
Tax code value to check
Call completed: check from the response whether the value is valid (isValid field)
{
"result": {
"isValid": true, // cumulativo di sintassi e struttura corrette
"infos": {
"countryCode": "IT",
"tinNumber": "RSSMRA80A01A182N",
"validStructure": true,
"validSyntax": true,
"statusCode": 200 // risposta servizio di validazione interrogato
}
},
"code": 200 // codice risposta Gsped ripetuto nel payload
}error field with the error description
{
"error": "country: This value should have exactly 2 characters.",
"code": 400
}{
"error": "Errore durante il processo di validazione",
"code": 500
}