Skip to content
Nawigacja

Zaktualizuj raport fiskalny

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

PUT
https://api.sandbox-infakt.pl/v3/fiscal_reports/{uuid}.json

Autoryzacja

  • ApiKey
    opcjonalne
    API key in header
  • Token
    opcjonalne
    API key in header

Path parameters

  • uuid
    string
    wymagane
    format: uuid

Query parameters

  • allow_correction
    opcjonalne
    boolean

    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.

Treść żądania JSON required

  • fiscal_report
    object
    wymagane
    • number
      opcjonalne
      string
    • invoice_date
      opcjonalne
      string

      Domyślnie dzisiaj.

      format: date
    • notes
      opcjonalne
      string
    • services
      opcjonalne
      array of
      object
      • tax_symbol
        string
        wymagane
      • name
        opcjonalne
        string

        Ignorowane; zapisywane jako BRAK.

      • net_price
        opcjonalne
        integer

        Kwota w groszach (1/100 PLN). 12300 oznacza 123,00 PLN.

        format: int64
      • vat_price
        opcjonalne
        integer

        Kwota w groszach (1/100 PLN). 12300 oznacza 123,00 PLN.

        format: int64
      • gross_price
        opcjonalne
        integer

        Kwota w groszach (1/100 PLN). 12300 oznacza 123,00 PLN.

        format: int64
      • flat_rate_tax_symbol
        opcjonalne
        string

Example request

{
  "fiscal_report": {
    "notes": "Kasa nr 1"
  }
}

Odpowiedzi

200

Sukces

JSON
  • id
    integer
    wymagane
    format: int64
  • uuid
    string
    wymagane
    format: uuid
  • number
    string
    wymagane
  • kind
    vat
    or
    proforma
    or
    margin
    or
    advance
    or
    correction
    or
    margin_correction
    +5 more
    wymagane
  • invoice_date
    string
    wymagane
    format: date
  • net_price
    integer
    wymagane

    Kwota w groszach (1/100 PLN). 12300 oznacza 123,00 PLN.

    format: int64
  • tax_price
    integer
    wymagane

    Kwota w groszach (1/100 PLN). 12300 oznacza 123,00 PLN.

    format: int64
  • gross_price
    integer
    wymagane

    Kwota w groszach (1/100 PLN). 12300 oznacza 123,00 PLN.

    format: int64
  • notes
    wymagane

    One of the following:

    • string
    • null
  • status
    draft
    or
    sent
    or
    printed
    or
    unpaid
    or
    paid
    or
    scheduled
    wymagane
  • services
    array of
    object
    wymagane
    • name
      string
      wymagane

      Zawsze BRAK.

    • tax_symbol
      string
      wymagane
    • net_price
      integer
      wymagane

      Kwota w groszach (1/100 PLN). 12300 oznacza 123,00 PLN.

      format: int64
    • vat_price
      integer
      wymagane

      Kwota w groszach (1/100 PLN). 12300 oznacza 123,00 PLN.

      format: int64
    • gross_price
      integer
      wymagane

      Kwota w groszach (1/100 PLN). 12300 oznacza 123,00 PLN.

      format: int64
    • flat_rate_tax_symbol
      opcjonalne

      Występuje tylko u ryczałtowców.

      One of the following:

      • string
      • null
  • ksef_data
    wymagane

    One of the following:

    • InvoiceKsefData
      • request_uuid
        wymagane

        null dla faktur odrzuconych przed wysyłką.

        One of the following:

        • string
        • null
      • ksef_number
        wymagane

        Numer KSeF nadany po przyjęciu.

        One of the following:

        • string
        • null
      • status
        pending
        or
        sent
        or
        success
        or
        error
        or
        cancelled
        or
        rejected
        wymagane

        rejected tylko w odpowiedziach zbiorczych, dla dokumentów, których w ogóle nie wysłano.

      • status_description
        wymagane

        One of the following:

        • string
        • null
      • timestamps
        object
        wymagane
        • request_created_at
          string
          wymagane
        • request_finished_at
          wymagane

          One of the following:

          • string
          • null
    • null
  • third_party_addresses
    array of
    object
    wymagane
    • id
      integer
      wymagane
      format: int64
    • company_name
      wymagane

      One of the following:

      • string
      • null
    • tax_id
      wymagane

      One of the following:

      • string
      • null
    • street
      wymagane

      One of the following:

      • string
      • null
    • building_number
      wymagane

      One of the following:

      • string
      • null
    • door_number
      wymagane

      One of the following:

      • string
      • null
    • post_code
      wymagane

      One of the following:

      • string
      • null
    • city
      wymagane

      One of the following:

      • string
      • null
    • country_code
      wymagane

      One of the following:

      • CountryCode
      • null
    • role_code
      wymagane

      Kod roli podmiotu trzeciego w KSeF; zobacz ThirdPartyAddressInput.role_code.

      One of the following:

      • string
      • null
    • internal_identifier
      wymagane

      One of the following:

      • string
      • null
  • related_exchange_differences_internal_evidences
    array of
    object
    wymagane
    • id
      integer
      wymagane
      format: int64
    • number
      string
      wymagane
    • uuid
      string
      wymagane
      format: uuid
  • parent_invoice_data
    opcjonalne
    null

    Tylko w odpowiedzi get; zawsze null.

401

Brak klucza API, nieprawidłowy klucz albo klucz bez wymaganego zakresu uprawnień.
JSON
  • error
    opcjonalne

    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.

    One of the following:

    • string
    • array<string>
    • object
  • errors
    opcjonalne

    Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.

    One of the following:

    • object
    • string
  • limit
    opcjonalne
    string

    Kod limitu planu, np. limit_exceeded, plan_upgrade_needed, cant_add_client.

  • type
    opcjonalne
    redirect
    or
    email_not_confirmed
  • url
    opcjonalne
    string
  • action_url
    opcjonalne
    string

402

API niedostępne w obecnym planie (limit: plan_upgrade_needed) albo osiągnięty limit dokumentów.
JSON
  • error
    opcjonalne

    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.

    One of the following:

    • string
    • array<string>
    • object
  • errors
    opcjonalne

    Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.

    One of the following:

    • object
    • string
  • limit
    opcjonalne
    string

    Kod limitu planu, np. limit_exceeded, plan_upgrade_needed, cant_add_client.

  • type
    opcjonalne
    redirect
    or
    email_not_confirmed
  • url
    opcjonalne
    string
  • action_url
    opcjonalne
    string

404

Nie znaleziono zasobu.
JSON
  • error
    opcjonalne

    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.

    One of the following:

    • string
    • array<string>
    • object
  • errors
    opcjonalne

    Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.

    One of the following:

    • object
    • string
  • limit
    opcjonalne
    string

    Kod limitu planu, np. limit_exceeded, plan_upgrade_needed, cant_add_client.

  • type
    opcjonalne
    redirect
    or
    email_not_confirmed
  • url
    opcjonalne
    string
  • action_url
    opcjonalne
    string

406

Ścieżka nie kończy się na .json.
JSON
  • error
    opcjonalne

    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.

    One of the following:

    • string
    • array<string>
    • object
  • errors
    opcjonalne

    Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.

    One of the following:

    • object
    • string
  • limit
    opcjonalne
    string

    Kod limitu planu, np. limit_exceeded, plan_upgrade_needed, cant_add_client.

  • type
    opcjonalne
    redirect
    or
    email_not_confirmed
  • url
    opcjonalne
    string
  • action_url
    opcjonalne
    string

422

Walidacja nie powiodła się; szczegóły w errors.
JSON
  • error
    opcjonalne

    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.

    One of the following:

    • string
    • array<string>
    • object
  • errors
    opcjonalne

    Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.

    One of the following:

    • object
    • string
  • limit
    opcjonalne
    string

    Kod limitu planu, np. limit_exceeded, plan_upgrade_needed, cant_add_client.

  • type
    opcjonalne
    redirect
    or
    email_not_confirmed
  • url
    opcjonalne
    string
  • action_url
    opcjonalne
    string

423

Niepotwierdzony adres e-mail albo wymagana weryfikacja tożsamości.
JSON
  • error
    opcjonalne

    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.

    One of the following:

    • string
    • array<string>
    • object
  • errors
    opcjonalne

    Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.

    One of the following:

    • object
    • string
  • limit
    opcjonalne
    string

    Kod limitu planu, np. limit_exceeded, plan_upgrade_needed, cant_add_client.

  • type
    opcjonalne
    redirect
    or
    email_not_confirmed
  • url
    opcjonalne
    string
  • action_url
    opcjonalne
    string

429

Przekroczony limit zapytań. Komunikat jest po angielsku, np. API rate limit exceeded. Try again in 60 seconds.
JSON
  • error
    opcjonalne

    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.

    One of the following:

    • string
    • array<string>
    • object
  • errors
    opcjonalne

    Błędy walidacji według nazw pól API; na niektórych endpointach zwykły komunikat.

    One of the following:

    • object
    • string
  • limit
    opcjonalne
    string

    Kod limitu planu, np. limit_exceeded, plan_upgrade_needed, cant_add_client.

  • type
    opcjonalne
    redirect
    or
    email_not_confirmed
  • url
    opcjonalne
    string
  • action_url
    opcjonalne
    string

Type to search…

↑↓ wybór↵ otwórzEsc zamyka