## Validate NIF with VIES

`POST`  https://{entorno}.ticketbaiws.eus/validar-nif-vies/

Checks whether a NIF (VAT number) is registered in VIES: it verifies that the number is valid and whether it is registered as an intra-Community operator

**PARAMETERS**

- `nif` (string, required): NIF to validate. Ejemplo: `B12345678`
- `pais` (string, required): Country code. Ejemplo: `ES`

The possible results are:

**IDENTIFICADO:**  Valid NIF, registered in VIES as an intra-Community operator
**NO IDENTIFICADO:**  Invalid NIF, or not registered as an intra-Community operator

**POST** `https://api.ticketbaiws.eus/validar-nif-vies/`

```bash
$ curl --request POST \
     --url https://api.ticketbaiws.eus/validar-nif-vies/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
	 --data '
{
    "nif": "12345678Z",
    "nombre": "Juan Martínez"
}'
```

Respuesta:

```json
HTTP/1.1 200 OK
{
    "result": "OK",
    "return": {
        "nif": "12345678Z",
        "nombre": "MARTINEZ RODRIGUEZ JUAN",
        "resultado": "IDENTIFICADO"
    },
    "msg": ""
}
```

Fuente: https://ticketbaiws.eus/en/validar-nif-vies-post/
