---
title: "Pobierz status faktury w KSeF"
description: "Zakres nie jest sprawdzany. Ostatnia wysyłka faktury do KSeF; `422`, gdy faktury nigdy nie wysłano.\n`timestamps.request_finished_at` jest `null`, dopóki wysyłka ma status `sent`, w przeciwnym razie to czas jej ostatniej zmiany."
---

> 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 › KSeF

`GET /ksef2/documents/{uuid}/status.json`

Zakres nie jest sprawdzany. Ostatnia wysyłka faktury do KSeF; `422`, gdy faktury nigdy nie wysłano.
`timestamps.request_finished_at` jest `null`, dopóki wysyłka ma status `sent`, w przeciwnym razie to czas jej ostatniej zmiany.

## Authentication

Requires one of the following:

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

## Path parameters

- `uuid` (`Ksef_getInvoiceStatus.path.uuid`; string, required)
  - format `uuid`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.sandbox-infakt.pl/v3/ksef2/documents/9bdc76fd-7a02-42ec-a4a3-42bc867b9a9f/status.json \
  --header 'X-inFakt-ApiKey: <X-inFakt-ApiKey>'
```

### TypeScript

```typescript
const url = 'https://api.sandbox-infakt.pl/v3/ksef2/documents/9bdc76fd-7a02-42ec-a4a3-42bc867b9a9f/status.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/ksef2/documents/9bdc76fd-7a02-42ec-a4a3-42bc867b9a9f/status.json"

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

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

print(response.text)
```

## Responses

### 200

Sukces

#### Example

```json
{
  "request_uuid": "7d6c5b4a-3e2f-4a1b-9c8d-0e1f2a3b4c5d",
  "invoice_uuid": "9bdc76fd-7a02-42ec-a4a3-42bc867b9a9f",
  "invoice_kind": "vat",
  "ksef_number": null,
  "status": "sent",
  "status_description": "Faktura została wysłana do przetworzenia w KSeF. Sprawdź status za chwilę.",
  "timestamps": {
    "request_created_at": "2026-10-02 12:00:00 +0200",
    "request_finished_at": null
  }
}
```

- `request_uuid` (`Ksef_getInvoiceStatus.response.200.request_uuid`; any of, required) — `null` dla faktur odrzuconych przed wysyłką.
  - any of: `string`, `null`
- `invoice_uuid` (`Ksef_getInvoiceStatus.response.200.invoice_uuid`; any of, required)
  - any of: `Uuid`, `null`
- `invoice_kind` (`Ksef_getInvoiceStatus.response.200.invoice_kind`; any of, required)
  - any of: `InvoiceKind`, `null`
- `ksef_number` (`Ksef_getInvoiceStatus.response.200.ksef_number`; any of, required) — Numer KSeF nadany po przyjęciu.
  - any of: `string`, `null`
- `status` (`Ksef_getInvoiceStatus.response.200.status`; string, required) — `rejected` tylko w odpowiedziach zbiorczych, dla dokumentów, których w ogóle nie wysłano.
  - one of `"pending"`, `"sent"`, `"success"`, `"error"`, `"cancelled"`, `"rejected"`
- `status_description` (`Ksef_getInvoiceStatus.response.200.status_description`; any of, required)
  - any of: `string`, `null`
- `timestamps` (`Ksef_getInvoiceStatus.response.200.timestamps`; object, required)
  - `request_created_at` (`Ksef_getInvoiceStatus.response.200.timestamps.request_created_at`; string, required)
  - `request_finished_at` (`Ksef_getInvoiceStatus.response.200.timestamps.request_finished_at`; any of, required)
    - any of: `string`, `null`

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

### 404

Nie znaleziono zasobu.

#### Example

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

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

### 422

Walidacja nie powiodła się; szczegóły w `errors`.

#### Example

```json
{
  "error": "Dla wybranego dokumentu nie zlecono wysyłki do KSeF."
}
```

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


Source: https://docs.niebieskiorzel.pl/api/ksef-get-invoice-status/index.md
