For the complete documentation index, see llms.txt. This page is also available as Markdown.

VAT Number (VAT)

Validation of a VAT number within the European Union

Check the validity of a VAT number

POST https://api.gsped.it/[INSTANCE]/validation/vat

Headers

Name
Type
Description

x-api-key*

String

APIKEY provided by Gsped

Request Body

Name
Type
Description

country*

String

VAT number country as ISO-2 code

value*

String

VAT number value to check

Call completed: check from the response whether the value is valid (isValid field)

{
    "result": {
        "isValid": true, // riepilogo se valido
        "infos": {
            "userError": "VALID",
            "name": "'GSPED SOCIETA' COOPERATIVA'",
            "address": "CORSO FELICE CAVALLOTTI 15 \n15121 ALESSANDRIA AL\n",
            "originalVatNumber": "02554360061",
            "vatNumber": "02554360061",
            "statusCode": 200 // codice risposta servizio 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
}