# Endpoints

## Country codes

<mark style="color:blue;">`GET`</mark> `https://api.vatapi.nl/api/v1/public/countries/all`

Retrieves a list with all EU country codes.&#x20;

#### Headers

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| X-API-Key | string | Your token  |

{% tabs %}
{% tab title="200 List with al current landCodes " %}

```
```

{% endtab %}
{% endtabs %}

## Validate VAT number

<mark style="color:green;">`POST`</mark> `https://api.vatapi.nl/api/v1/public/vatCheck`

This endpoint allows you to get free cakes.

#### Headers

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| X-API-Key | string | Your token  |

#### Request Body

| Name      | Type   | Description                              |
| --------- | ------ | ---------------------------------------- |
| vatNumber | string | the vat number without landcode          |
| landCode  | string | the landcode of the requested vat number |

{% tabs %}
{% tab title="200 VAT number validated." %}

```
{
    "CountryCode":"NL",
    "VATnumber":"003253479B55",
    "RequestDate":"2020-05-01T00:00:00+02:00",
    "Valid":true,
    "Name":"FULL STACK DEVELOPMENT",
    "Address":"\nLOOIERSTRAAT 00005\n6882BW VELP GLD\n"
}

```

{% endtab %}

{% tab title="404 Could not find a VAT number matching this query." %}

```
{
    "CountryCode": "",
    "VATnumber": "",
    "RequestDate": "0001-01-01T00:00:00Z",
    "Valid": false,
    "Name": "Something is wrong",
    "Address": ""
}
```

{% endtab %}
{% endtabs %}
