---
title: "Pobierz zaliczkę na podatek dochodowy"
description: "Zakres: `api:accounting:read`. Zwraca deklarację PIT albo ryczałtu, zależnie od formy opodatkowania konta."
---

> 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 dochodowy

`GET /income_taxes/{id}.json`

Zakres: `api:accounting:read`. Zwraca deklarację PIT albo ryczałtu, zależnie od formy opodatkowania konta.

## Authentication

Requires one of the following:

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

## Path parameters

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

## Query parameters

- `fields` (`IncomeTaxAdvances_get.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/income_taxes/1.json \
  --header 'X-inFakt-ApiKey: <X-inFakt-ApiKey>'
```

### TypeScript

```typescript
const url = 'https://api.sandbox-infakt.pl/v3/income_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/income_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,
  "uuid": null,
  "symbol": "PIT-5",
  "period": "2026-09-01",
  "period_name": "Wrzesień 2026",
  "period_type": "M",
  "correction_counter": 0,
  "payment_date": "2026-10-20",
  "period_income_price": 1000000,
  "incremental_income_price": 9000000,
  "period_cost_price": 200000,
  "incremental_cost_price": 2000000,
  "period_proceeds_price": 800000,
  "incremental_proceeds_price": 7000000,
  "incremental_social_insurance_price": 1400000,
  "incremental_health_insurance_price": 430000,
  "tax_paid_in_year_price": 820000,
  "to_pay_price": 96000,
  "status": "draft",
  "real_pay": 96000,
  "tax_office": {
    "info": "",
    "name": "Urząd Skarbowy",
    "bank_name": "Narodowy Bank Polski",
    "account_number": "36101010100000000000000000"
  },
  "extensions": {
    "payments": {
      "webview": {
        "link": "https://www.infakt.pl/app/platnosci/przekierowanie/7c1e4b2a-9d3f-4e8a-b5c6-0f1a2b3c4d5e/4611686018427388929",
        "pid": "eyJfcmFpbHMiOnsiZGF0YSI6ImdpZDovL2luZmFrdC9QaXREZWNsYXJhdGlvbi8xIn19--7d3f2a1b"
      },
      "link": "https://www.infakt.pl/app/platnosci/przekierowanie/7c1e4b2a-9d3f-4e8a-b5c6-0f1a2b3c4d5e/4611686018427388929",
      "pid": "eyJfcmFpbHMiOnsiZGF0YSI6ImdpZDovL2luZmFrdC9QaXREZWNsYXJhdGlvbi8xIn19--7d3f2a1b",
      "amount": 96000,
      "fee": 0,
      "enabled": true,
      "pragma_offer_details_link": null
    }
  }
}
```

Any of:

- `PitDeclaration`
- `FlatRateDeclaration`

### 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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.response.401.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`IncomeTaxAdvances_get.response.401.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`IncomeTaxAdvances_get.response.401.url`; string, optional)
- `action_url` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.response.402.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`IncomeTaxAdvances_get.response.402.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`IncomeTaxAdvances_get.response.402.url`; string, optional)
- `action_url` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.response.403.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`IncomeTaxAdvances_get.response.403.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`IncomeTaxAdvances_get.response.403.url`; string, optional)
- `action_url` (`IncomeTaxAdvances_get.response.403.action_url`; string, optional)

### 404

Nie znaleziono zasobu.

#### Example

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

- `error` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.response.404.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`IncomeTaxAdvances_get.response.404.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`IncomeTaxAdvances_get.response.404.url`; string, optional)
- `action_url` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.response.406.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`IncomeTaxAdvances_get.response.406.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`IncomeTaxAdvances_get.response.406.url`; string, optional)
- `action_url` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.response.423.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`IncomeTaxAdvances_get.response.423.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`IncomeTaxAdvances_get.response.423.url`; string, optional)
- `action_url` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.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` (`IncomeTaxAdvances_get.response.429.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`IncomeTaxAdvances_get.response.429.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`IncomeTaxAdvances_get.response.429.url`; string, optional)
- `action_url` (`IncomeTaxAdvances_get.response.429.action_url`; string, optional)


Source: https://docs.niebieskiorzel.pl/api/income-tax-advances-get/index.md
