---
title: "Zaktualizuj dowód wewnętrzny"
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 › Dowody wewnętrzne

`PUT /internal_evidences/{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` (`InternalEvidences_update.path.uuid`; string, required)
  - format `uuid`

## Query parameters

- `allow_correction` (`InternalEvidences_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_evidence` (`InternalEvidences_update.internal_evidence`; object, required)
  - `number` (`InternalEvidences_update.internal_evidence.number`; string, optional)
  - `classification_symbol` (`InternalEvidences_update.internal_evidence.classification_symbol`; string, optional) — `sold` (Sprzedaż) albo `salary` (Pozostałe przychody).
    - one of `"sold"`, `"salary"`
  - `invoice_date` (`InternalEvidences_update.internal_evidence.invoice_date`; string, optional) — Domyślnie dzisiaj.
    - format `date`
  - `notes` (`InternalEvidences_update.internal_evidence.notes`; string, optional)
  - `service_name` (`InternalEvidences_update.internal_evidence.service_name`; string, optional)
  - `quantity` (`InternalEvidences_update.internal_evidence.quantity`; number, optional)
    - format `double`; default `1`
  - `unit_price` (`InternalEvidences_update.internal_evidence.unit_price`; integer, optional) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
    - format `int64`
  - `total_price` (`InternalEvidences_update.internal_evidence.total_price`; integer, optional) — Nie jest wyliczane z `quantity` i `unit_price`; domyślnie `0`.
    - format `int64`
  - `flat_rate_tax_symbol` (`InternalEvidences_update.internal_evidence.flat_rate_tax_symbol`; string, optional)
  - `reconciliation_id` (`InternalEvidences_update.internal_evidence.reconciliation_id`; string, optional)

## Example requests

### Aktualizacja

```json
{
  "internal_evidence": {
    "notes": "Złom stalowy"
  }
}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url https://api.sandbox-infakt.pl/v3/internal_evidences/8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e.json \
  --header 'Content-Type: application/json' \
  --header 'X-inFakt-ApiKey: <X-inFakt-ApiKey>' \
  --data '
{
  "internal_evidence": {
    "notes": "Złom stalowy"
  }
}
'
```

### TypeScript

```typescript
const url = 'https://api.sandbox-infakt.pl/v3/internal_evidences/8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e.json';
const options = {
  method: 'PUT',
  headers: {'Content-Type': 'application/json', 'X-inFakt-ApiKey': '<X-inFakt-ApiKey>'},
  body: JSON.stringify({internal_evidence: {notes: 'Złom stalowy'}})
};

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_evidences/8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e.json"

payload = { "internal_evidence": { "notes": "Złom stalowy" } }
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": 3002,
  "uuid": "8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e",
  "number": "1/DW/10/2026",
  "status": "draft",
  "classification_symbol": "sold",
  "invoice_date": "2026-10-01",
  "notes": "Złom stalowy",
  "service_name": "Sprzedaż złomu",
  "quantity": "1.0",
  "unit_price": 25000,
  "total_price": 25000,
  "reconciliation_id": null
}
```

- `id` (`InternalEvidences_update.response.200.id`; integer, required)
  - format `int64`
- `uuid` (`InternalEvidences_update.response.200.uuid`; string, required)
  - format `uuid`
- `number` (`InternalEvidences_update.response.200.number`; string, required)
- `status` (`InternalEvidences_update.response.200.status`; string, required)
  - one of `"draft"`, `"sent"`, `"printed"`, `"unpaid"`, `"paid"`, `"scheduled"`
- `classification_symbol` (`InternalEvidences_update.response.200.classification_symbol`; any of, required) — `sold` (Sprzedaż) albo `salary` (Pozostałe przychody).
  - any of: `string`, `null`
- `invoice_date` (`InternalEvidences_update.response.200.invoice_date`; string, required)
  - format `date`
- `notes` (`InternalEvidences_update.response.200.notes`; any of, required)
  - any of: `string`, `null`
- `service_name` (`InternalEvidences_update.response.200.service_name`; string, required)
- `quantity` (`InternalEvidences_update.response.200.quantity`; string, required) — Liczba dziesiętna zapisana jako tekst.
  - pattern `^-?\d+(\.\d+)?$`
- `unit_price` (`InternalEvidences_update.response.200.unit_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
  - format `int64`
- `total_price` (`InternalEvidences_update.response.200.total_price`; integer, required) — Kwota w groszach (1/100 PLN). `12300` oznacza 123,00 PLN.
  - format `int64`
- `reconciliation_id` (`InternalEvidences_update.response.200.reconciliation_id`; any of, required)
  - any of: `string`, `null`
- `flat_rate_tax_symbol` (`InternalEvidences_update.response.200.flat_rate_tax_symbol`; any of, optional) — Występuje tylko u ryczałtowców.
  - 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` (`InternalEvidences_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` (`InternalEvidences_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` (`InternalEvidences_update.response.401.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`InternalEvidences_update.response.401.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`InternalEvidences_update.response.401.url`; string, optional)
- `action_url` (`InternalEvidences_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` (`InternalEvidences_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` (`InternalEvidences_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` (`InternalEvidences_update.response.402.limit`; string, optional) — Kod limitu planu, np. `limit_exceeded`, `plan_upgrade_needed`, `cant_add_client`.
- `type` (`InternalEvidences_update.response.402.type`; string, optional)
  - one of `"redirect"`, `"email_not_confirmed"`
- `url` (`InternalEvidences_update.response.402.url`; string, optional)
- `action_url` (`InternalEvidences_update.response.402.action_url`; string, optional)

### 404

Nie znaleziono zasobu.

#### Example

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

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


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