---
title: "Zaktualizuj fakturę wewnętrzną"
description: "Zakres: `api:invoices:write`. Pola, których nie wysłano, pozostają bez zmian."
---

> 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 › Faktury wewnętrzne

`PUT /internal_invoices/{uuid}.json`

Zakres: `api:invoices:write`. Pola, których nie wysłano, pozostają bez zmian.

## Authentication

Requires one of the following:

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

## Path parameters

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

## Query parameters

- `allow_correction` (`InternalInvoices_update.query.allow_correction`; boolean, optional) — Potwierdź akcję, która skoryguje złożone deklaracje (zamknięty okres księgowy). Bez tego takie żądania zwracają `422` z `errors.allow_correction` albo `errors.locked_accounting`, gdy plan nie pozwala na korekty (wtedy ta flaga jest ignorowana). Można też podać w treści żądania.

## Request body

_Required._

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

## Example requests

### Aktualizacja

```json
{
  "internal_invoice": {
    "transaction_kind_symbol": "free_transfer_of_goods",
    "invoice_date": "2026-10-01",
    "notes": "Nieodpłatne przekazanie towaru",
    "services": [
      {
        "tax_symbol": "23",
        "net_price": 10000
      }
    ]
  }
}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url https://api.sandbox-infakt.pl/v3/internal_invoices/7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d.json \
  --header 'Content-Type: application/json' \
  --header 'X-inFakt-ApiKey: <X-inFakt-ApiKey>' \
  --data '
{
  "internal_invoice": {
    "transaction_kind_symbol": "free_transfer_of_goods",
    "invoice_date": "2026-10-01",
    "notes": "Nieodpłatne przekazanie towaru",
    "services": [
      {
        "tax_symbol": "23",
        "net_price": 10000
      }
    ]
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.sandbox-infakt.pl/v3/internal_invoices/7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d.json';
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json', 'X-inFakt-ApiKey': '<X-inFakt-ApiKey>'},
  body: JSON.stringify({
    internal_invoice: {
      transaction_kind_symbol: 'free_transfer_of_goods',
      invoice_date: '2026-10-01',
      notes: 'Nieodpłatne przekazanie towaru',
      services: [{tax_symbol: '23', net_price: 10000}]
    }
  })
};

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/internal_invoices/7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d.json"

payload = { "internal_invoice": {
        "transaction_kind_symbol": "free_transfer_of_goods",
        "invoice_date": "2026-10-01",
        "notes": "Nieodpłatne przekazanie towaru",
        "services": [
            {
                "tax_symbol": "23",
                "net_price": 10000
            }
        ]
    } }
headers = {
    "Content-Type": "application/json",
    "X-inFakt-ApiKey": "<X-inFakt-ApiKey>"
}

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

print(response.text)
```

## Responses

### 200

Sukces

#### Example

```json
{
  "id": 3001,
  "uuid": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
  "number": "1/FW/10/2026",
  "kind": "internal",
  "transaction_kind_symbol": "free_transfer_of_goods",
  "invoice_date": "2026-10-01",
  "net_price": 0,
  "tax_price": 0,
  "gross_price": 12300,
  "status": "draft",
  "notes": "Nieodpłatne przekazanie towaru",
  "services": [
    {
      "name": "BRAK",
      "tax_symbol": "23",
      "net_price": 10000,
      "vat_price": 2300,
      "gross_price": 12300
    }
  ],
  "ksef_data": null,
  "third_party_addresses": [],
  "related_exchange_differences_internal_evidences": []
}
```

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

### 404

Nie znaleziono zasobu.

#### Example

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

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


Source: https://docs.niebieskiorzel.pl/api/internal-invoices-update/index.md
