---
title: "Utwórz raport fiskalny"
description: "Zakres: `api:invoices:write`."
---

> 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 › Raporty fiskalne

`POST /fiscal_reports.json`

Zakres: `api:invoices:write`.

## Authentication

Requires one of the following:

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

## Request body

_Required._

- `fiscal_report` (`FiscalReports_create.fiscal_report`; object, required)
  - `services` (`FiscalReports_create.fiscal_report.services`; array<object>, required)
    - `tax_symbol` (`FiscalReports_create.fiscal_report.services.tax_symbol`; string, required)
    - `name` (`FiscalReports_create.fiscal_report.services.name`; string, optional) — Ignorowane; zapisywane jako `BRAK`.
    - `net_price` (`FiscalReports_create.fiscal_report.services.net_price`; integer, optional) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
      - format `int64`
    - `vat_price` (`FiscalReports_create.fiscal_report.services.vat_price`; integer, optional) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
      - format `int64`
    - `gross_price` (`FiscalReports_create.fiscal_report.services.gross_price`; integer, optional) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
      - format `int64`
    - `flat_rate_tax_symbol` (`FiscalReports_create.fiscal_report.services.flat_rate_tax_symbol`; string, optional)
  - `number` (`FiscalReports_create.fiscal_report.number`; string, optional)
  - `invoice_date` (`FiscalReports_create.fiscal_report.invoice_date`; string, optional) — Domyślnie dzisiaj.
    - format `date`
  - `notes` (`FiscalReports_create.fiscal_report.notes`; string, optional)

## Example requests

### Utworzenie

```json
{
  "fiscal_report": {
    "invoice_date": "2026-10-01",
    "services": [
      {
        "tax_symbol": "23",
        "gross_price": 50000
      }
    ]
  }
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.sandbox-infakt.pl/v3/fiscal_reports.json \
  --header 'Content-Type: application/json' \
  --header 'X-inFakt-ApiKey: <X-inFakt-ApiKey>' \
  --data '
{
  "fiscal_report": {
    "invoice_date": "2026-10-01",
    "services": [
      {
        "tax_symbol": "23",
        "gross_price": 50000
      }
    ]
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.sandbox-infakt.pl/v3/fiscal_reports.json';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', 'X-inFakt-ApiKey': '<X-inFakt-ApiKey>'},
  body: JSON.stringify({
    fiscal_report: {invoice_date: '2026-10-01', services: [{tax_symbol: '23', gross_price: 50000}]}
  })
};

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/fiscal_reports.json"

payload = { "fiscal_report": {
        "invoice_date": "2026-10-01",
        "services": [
            {
                "tax_symbol": "23",
                "gross_price": 50000
            }
        ]
    } }
headers = {
    "Content-Type": "application/json",
    "X-inFakt-ApiKey": "<X-inFakt-ApiKey>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 201

Utworzono

#### Example

```json
{
  "id": 3004,
  "uuid": "0d1e2f3a-4b5c-4d6e-9f7a-8b9c0d1e2f3a",
  "number": "1/RO/10/2026",
  "kind": "fiscal_report",
  "invoice_date": "2026-10-01",
  "net_price": 0,
  "tax_price": 0,
  "gross_price": 50000,
  "notes": "",
  "status": "draft",
  "services": [
    {
      "name": "BRAK",
      "tax_symbol": "23",
      "net_price": 40650,
      "vat_price": 9350,
      "gross_price": 50000
    }
  ],
  "ksef_data": null,
  "third_party_addresses": [],
  "related_exchange_differences_internal_evidences": []
}
```

- `id` (`FiscalReports_create.response.201.id`; integer, required)
  - format `int64`
- `uuid` (`FiscalReports_create.response.201.uuid`; string, required)
  - format `uuid`
- `number` (`FiscalReports_create.response.201.number`; string, required)
- `kind` (`FiscalReports_create.response.201.kind`; string, required)
  - one of `"vat"`, `"proforma"`, `"margin"`, `"advance"`, `"correction"`, `"margin_correction"`, `"margin_advance"`, `"final"`, `"margin_final"`, `"fiscal_report"`, `"internal"`
- `invoice_date` (`FiscalReports_create.response.201.invoice_date`; string, required)
  - format `date`
- `net_price` (`FiscalReports_create.response.201.net_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
  - format `int64`
- `tax_price` (`FiscalReports_create.response.201.tax_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
  - format `int64`
- `gross_price` (`FiscalReports_create.response.201.gross_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
  - format `int64`
- `notes` (`FiscalReports_create.response.201.notes`; any of, required)
  - any of: `string`, `null`
- `status` (`FiscalReports_create.response.201.status`; string, required)
  - one of `"draft"`, `"sent"`, `"printed"`, `"unpaid"`, `"paid"`, `"scheduled"`
- `services` (`FiscalReports_create.response.201.services`; array<object>, required)
  - `name` (`FiscalReports_create.response.201.services.name`; string, required) — Zawsze `BRAK`.
  - `tax_symbol` (`FiscalReports_create.response.201.services.tax_symbol`; string, required)
  - `net_price` (`FiscalReports_create.response.201.services.net_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
    - format `int64`
  - `vat_price` (`FiscalReports_create.response.201.services.vat_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
    - format `int64`
  - `gross_price` (`FiscalReports_create.response.201.services.gross_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
    - format `int64`
  - `flat_rate_tax_symbol` (`FiscalReports_create.response.201.services.flat_rate_tax_symbol`; any of, optional) — Występuje tylko u ryczałtowców.
    - any of: `string`, `null`
- `ksef_data` (`FiscalReports_create.response.201.ksef_data`; any of, required)
  - any of: `InvoiceKsefData`, `null`
- `third_party_addresses` (`FiscalReports_create.response.201.third_party_addresses`; array<object>, required)
  - `id` (`FiscalReports_create.response.201.third_party_addresses.id`; integer, required)
    - format `int64`
  - `company_name` (`FiscalReports_create.response.201.third_party_addresses.company_name`; any of, required)
    - any of: `string`, `null`
  - `tax_id` (`FiscalReports_create.response.201.third_party_addresses.tax_id`; any of, required)
    - any of: `string`, `null`
  - `street` (`FiscalReports_create.response.201.third_party_addresses.street`; any of, required)
    - any of: `string`, `null`
  - `building_number` (`FiscalReports_create.response.201.third_party_addresses.building_number`; any of, required)
    - any of: `string`, `null`
  - `door_number` (`FiscalReports_create.response.201.third_party_addresses.door_number`; any of, required)
    - any of: `string`, `null`
  - `post_code` (`FiscalReports_create.response.201.third_party_addresses.post_code`; any of, required)
    - any of: `string`, `null`
  - `city` (`FiscalReports_create.response.201.third_party_addresses.city`; any of, required)
    - any of: `string`, `null`
  - `country_code` (`FiscalReports_create.response.201.third_party_addresses.country_code`; any of, required)
    - any of: `CountryCode`, `null`
  - `role_code` (`FiscalReports_create.response.201.third_party_addresses.role_code`; any of, required) — Kod roli podmiotu trzeciego w KSeF; zobacz `ThirdPartyAddressInput.role_code`.
    - any of: `string`, `null`
  - `internal_identifier` (`FiscalReports_create.response.201.third_party_addresses.internal_identifier`; any of, required)
    - any of: `string`, `null`
- `related_exchange_differences_internal_evidences` (`FiscalReports_create.response.201.related_exchange_differences_internal_evidences`; array<object>, required)
  - `id` (`FiscalReports_create.response.201.related_exchange_differences_internal_evidences.id`; integer, required)
    - format `int64`
  - `number` (`FiscalReports_create.response.201.related_exchange_differences_internal_evidences.number`; string, required)
  - `uuid` (`FiscalReports_create.response.201.related_exchange_differences_internal_evidences.uuid`; string, required)
    - format `uuid`
- `parent_invoice_data` (`FiscalReports_create.response.201.parent_invoice_data`; null, optional) — Tylko w odpowiedzi `get`; zawsze `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` (`FiscalReports_create.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` (`FiscalReports_create.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` (`FiscalReports_create.response.401.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`FiscalReports_create.response.401.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`FiscalReports_create.response.401.url`; string, optional)
- `action_url` (`FiscalReports_create.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` (`FiscalReports_create.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` (`FiscalReports_create.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` (`FiscalReports_create.response.402.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`FiscalReports_create.response.402.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`FiscalReports_create.response.402.url`; string, optional)
- `action_url` (`FiscalReports_create.response.402.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` (`FiscalReports_create.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` (`FiscalReports_create.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` (`FiscalReports_create.response.406.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`FiscalReports_create.response.406.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`FiscalReports_create.response.406.url`; string, optional)
- `action_url` (`FiscalReports_create.response.406.action_url`; string, optional)

### 422

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

#### Example

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

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


Source: https://docs.niebieskiorzel.pl/api/fiscal-reports-json/create/index.md
