---
title: "Pobierz deklarację VAT-UE"
description: "Zakres: `api:accounting:read`."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.niebieskiorzel.pl/llms.txt
> Use this file to discover all available pages before exploring further.

Path: inFakt API › Podatek VAT

`GET /vat_eu_taxes/{id}.json`

Zakres: `api:accounting:read`.

## Authentication

Requires one of the following:

- `ApiKey`, apiKey, in header, header `X-inFakt-ApiKey`
- `Token`, apiKey, in header, header `X-Token`

## Path parameters

- `id` (`VatDeclarations_getVatEu.path.id`; integer, required)
  - format `int64`

## Query parameters

- `fields` (`VatDeclarations_getVatEu.query.fields`; string, optional) — Zawężenie pól: nazwy pól API rozdzielone przecinkami, np. `id,company_name`; `id` jest zwykle dodawane. Odpowiedź zawiera wtedy tylko te pola, więc nie odpowiada pełnemu schematowi. Pola wyliczane, a nie zapisywane, mogą kończyć się błędem `500`; operacja je wymienia.

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.sandbox-infakt.pl/v3/vat_eu_taxes/1.json \
  --header 'X-inFakt-ApiKey: <X-inFakt-ApiKey>'
```

### TypeScript

```typescript
const url = 'https://api.sandbox-infakt.pl/v3/vat_eu_taxes/1.json';
const options = {method: 'GET', headers: {'X-inFakt-ApiKey': '<X-inFakt-ApiKey>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sandbox-infakt.pl/v3/vat_eu_taxes/1.json"

headers = {"X-inFakt-ApiKey": "<X-inFakt-ApiKey>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Sukces

#### Example

```json
{
  "id": 1,
  "symbol": "VAT-UE",
  "period": "2026-09-01",
  "period_name": "Wrzesień 2026",
  "period_type": "M",
  "correction_counter": 0,
  "payment_date": "2026-10-25",
  "services_price": 500000,
  "sell_cargo_price": 0,
  "purchase_cargo_price": 0,
  "status": "draft"
}
```

- `id` (`VatDeclarations_getVatEu.response.200.id`; integer, required)
  - format `int64`
- `symbol` (`VatDeclarations_getVatEu.response.200.symbol`; string, required) — `PIT-5` (skala podatkowa), `PIT-5L` (podatek liniowy), `PPE` (ryczałt), `VAT-7`, `VAT-7K`, `VAT-UE` lub `VAT-UEK` (korekta).
- `period` (`VatDeclarations_getVatEu.response.200.period`; string, required) — Pierwszy dzień okresu.
  - format `date`
- `period_name` (`VatDeclarations_getVatEu.response.200.period_name`; string, required)
- `period_type` (`VatDeclarations_getVatEu.response.200.period_type`; string, required) — Miesięczny (`M`) lub kwartalny (`Q`).
- `correction_counter` (`VatDeclarations_getVatEu.response.200.correction_counter`; integer, required)
  - format `int32`
- `payment_date` (`VatDeclarations_getVatEu.response.200.payment_date`; string, required)
  - format `date`
- `status` (`VatDeclarations_getVatEu.response.200.status`; string, required) — Status deklaracji: `draft`, `printed`, `sent` lub `paid`. `sent` jest zwracany tylko z nagłówkiem `X-inFakt-ApiVersion: 3.1`, w przeciwnym razie jako `printed`.
- `services_price` (`VatDeclarations_getVatEu.response.200.services_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
  - format `int64`
- `sell_cargo_price` (`VatDeclarations_getVatEu.response.200.sell_cargo_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
  - format `int64`
- `purchase_cargo_price` (`VatDeclarations_getVatEu.response.200.purchase_cargo_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
  - format `int64`

### 401

Brak klucza API, nieprawidłowy klucz albo klucz bez wymaganego zakresu uprawnień.

#### Example

```json
{
  "error": "Zasób którego szukasz nie został znaleziony."
}
```

- `error` (`VatDeclarations_getVatEu.response.401.error`; any of, optional) — Komunikat po polsku (po angielsku dla `429`). Niektóre akcje zamiast jednego tekstu zwracają listę komunikatów albo błędy walidacji według pól.
  - any of: `string`, `array<string>`, `object`
- `errors` (`VatDeclarations_getVatEu.response.401.errors`; any of, optional) — Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.
  - any of: `object`, `string`
- `limit` (`VatDeclarations_getVatEu.response.401.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`VatDeclarations_getVatEu.response.401.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`VatDeclarations_getVatEu.response.401.url`; string, optional)
- `action_url` (`VatDeclarations_getVatEu.response.401.action_url`; string, optional)

### 402

API niedostępne w obecnym planie (`limit: plan_upgrade_needed`) albo osiągnięty limit dokumentów.

#### Example

```json
{
  "error": "Zasób którego szukasz nie został znaleziony."
}
```

- `error` (`VatDeclarations_getVatEu.response.402.error`; any of, optional) — Komunikat po polsku (po angielsku dla `429`). Niektóre akcje zamiast jednego tekstu zwracają listę komunikatów albo błędy walidacji według pól.
  - any of: `string`, `array<string>`, `object`
- `errors` (`VatDeclarations_getVatEu.response.402.errors`; any of, optional) — Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.
  - any of: `object`, `string`
- `limit` (`VatDeclarations_getVatEu.response.402.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`VatDeclarations_getVatEu.response.402.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`VatDeclarations_getVatEu.response.402.url`; string, optional)
- `action_url` (`VatDeclarations_getVatEu.response.402.action_url`; string, optional)

### 403

Brak uprawnień, limit planu dla tej akcji (`limit`) albo zawieszone konto.

#### Example

```json
{
  "error": "Zasób którego szukasz nie został znaleziony."
}
```

- `error` (`VatDeclarations_getVatEu.response.403.error`; any of, optional) — Komunikat po polsku (po angielsku dla `429`). Niektóre akcje zamiast jednego tekstu zwracają listę komunikatów albo błędy walidacji według pól.
  - any of: `string`, `array<string>`, `object`
- `errors` (`VatDeclarations_getVatEu.response.403.errors`; any of, optional) — Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.
  - any of: `object`, `string`
- `limit` (`VatDeclarations_getVatEu.response.403.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`VatDeclarations_getVatEu.response.403.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`VatDeclarations_getVatEu.response.403.url`; string, optional)
- `action_url` (`VatDeclarations_getVatEu.response.403.action_url`; string, optional)

### 404

Nie znaleziono zasobu.

#### Example

```json
{
  "error": "Zasób którego szukasz nie został znaleziony."
}
```

- `error` (`VatDeclarations_getVatEu.response.404.error`; any of, optional) — Komunikat po polsku (po angielsku dla `429`). Niektóre akcje zamiast jednego tekstu zwracają listę komunikatów albo błędy walidacji według pól.
  - any of: `string`, `array<string>`, `object`
- `errors` (`VatDeclarations_getVatEu.response.404.errors`; any of, optional) — Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.
  - any of: `object`, `string`
- `limit` (`VatDeclarations_getVatEu.response.404.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`VatDeclarations_getVatEu.response.404.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`VatDeclarations_getVatEu.response.404.url`; string, optional)
- `action_url` (`VatDeclarations_getVatEu.response.404.action_url`; string, optional)

### 406

Ścieżka nie kończy się na `.json`.

#### Example

```json
{
  "error": "Zasób którego szukasz nie został znaleziony."
}
```

- `error` (`VatDeclarations_getVatEu.response.406.error`; any of, optional) — Komunikat po polsku (po angielsku dla `429`). Niektóre akcje zamiast jednego tekstu zwracają listę komunikatów albo błędy walidacji według pól.
  - any of: `string`, `array<string>`, `object`
- `errors` (`VatDeclarations_getVatEu.response.406.errors`; any of, optional) — Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.
  - any of: `object`, `string`
- `limit` (`VatDeclarations_getVatEu.response.406.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`VatDeclarations_getVatEu.response.406.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`VatDeclarations_getVatEu.response.406.url`; string, optional)
- `action_url` (`VatDeclarations_getVatEu.response.406.action_url`; string, optional)

### 423

Niepotwierdzony adres e-mail albo wymagana weryfikacja tożsamości.

#### Example

```json
{
  "error": "Zasób którego szukasz nie został znaleziony."
}
```

- `error` (`VatDeclarations_getVatEu.response.423.error`; any of, optional) — Komunikat po polsku (po angielsku dla `429`). Niektóre akcje zamiast jednego tekstu zwracają listę komunikatów albo błędy walidacji według pól.
  - any of: `string`, `array<string>`, `object`
- `errors` (`VatDeclarations_getVatEu.response.423.errors`; any of, optional) — Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.
  - any of: `object`, `string`
- `limit` (`VatDeclarations_getVatEu.response.423.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`VatDeclarations_getVatEu.response.423.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`VatDeclarations_getVatEu.response.423.url`; string, optional)
- `action_url` (`VatDeclarations_getVatEu.response.423.action_url`; string, optional)

### 429

Przekroczony limit zapytań. Komunikat jest po angielsku, np. `API rate limit exceeded. Try again in 60 seconds.`

#### Example

```json
{
  "error": "Zasób którego szukasz nie został znaleziony."
}
```

- `error` (`VatDeclarations_getVatEu.response.429.error`; any of, optional) — Komunikat po polsku (po angielsku dla `429`). Niektóre akcje zamiast jednego tekstu zwracają listę komunikatów albo błędy walidacji według pól.
  - any of: `string`, `array<string>`, `object`
- `errors` (`VatDeclarations_getVatEu.response.429.errors`; any of, optional) — Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.
  - any of: `object`, `string`
- `limit` (`VatDeclarations_getVatEu.response.429.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`VatDeclarations_getVatEu.response.429.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`VatDeclarations_getVatEu.response.429.url`; string, optional)
- `action_url` (`VatDeclarations_getVatEu.response.429.action_url`; string, optional)


Source: https://docs.niebieskiorzel.pl/api/vat-declarations-get-vat-eu/index.md
