Skip to content
Nawigacja

Pobierz klienta

Zakres: api:invoices:read. id może być identyfikatorem liczbowym albo uuid. fields z street_number, country_full_name, same_forward_address, is_vindicable lub vindicable_invoices_count powoduje 500.

GET
https://api.sandbox-infakt.pl/v3/clients/{id}.json

Autoryzacja

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

Path parameters

  • id
    string
    wymagane

    Liczbowe id albo uuid rekordu.

Query parameters

  • fields
    opcjonalne
    string

    Zawężenie pól: nazwy pól API rozdzielone przecinkami, np. id,company_name; id jest zwykle dodawane. Odpowiedź zawiera wtedy tylko te pola, więc nie odpowiada pełnemu schematowi. Pola wyliczane, a nie zapisywane, mogą kończyć się błędem 500; operacja je wymienia.

Odpowiedzi

200

Sukces

JSON
  • id
    integer
    wymagane
    format: int64
  • uuid
    string
    wymagane
    format: uuid
  • company_name
    wymagane

    null, gdy business_activity_kind to private_person.

    One of the following:

    • string
    • null
  • street
    wymagane

    One of the following:

    • string
    • null
  • street_number
    wymagane

    One of the following:

    • string
    • null
  • flat_number
    wymagane

    One of the following:

    • string
    • null
  • city
    string
    wymagane
  • country
    string
    wymagane

    Dwuliterowy kod kraju jak alpha_2 w GET /countries.json: ISO 3166-1 alpha-2, z wyjątkiem EL dla Grecji (GR nie jest rozpoznawany) i XI dla Irlandii Północnej.

    pattern: ^[A-Z]{2}$
  • country_full_name
    string
    wymagane

    Nazwa kraju po polsku.

  • postal_code
    wymagane

    One of the following:

    • string
    • null
  • nip
    wymagane

    One of the following:

    • Nip
    • null
  • phone_number
    wymagane

    One of the following:

    • string
    • null
  • web_site
    string
    wymagane
  • email
    wymagane

    Do 5 adresów oddzielonych przecinkami.

    One of the following:

    • string
    • null
  • note
    string
    wymagane
  • receiver
    string
    wymagane

    Osoba upoważniona do odbioru dokumentów.

  • mailing_company_name
    wymagane

    Pola adresu korespondencyjnego są "", gdy same_forward_address to true.

    One of the following:

    • string
    • null
  • mailing_street
    wymagane

    One of the following:

    • string
    • null
  • mailing_city
    wymagane

    One of the following:

    • string
    • null
  • mailing_postal_code
    wymagane

    One of the following:

    • string
    • null
  • days_to_payment
    wymagane

    Domyślny termin płatności w dniach dla tego klienta; "", gdy nie ustawiono.

    One of the following:

    • integer
    • string
  • payment_method
    wymagane

    Domyślna metoda płatności; "", gdy nie ustawiono.

    One of the following:

    • PaymentMethod
    • string
  • invoice_note
    string
    wymagane

    Domyślne uwagi do faktur klienta.

  • same_forward_address
    boolean
    wymagane

    Adres korespondencyjny taki sam jak adres firmowy.

  • first_name
    wymagane

    One of the following:

    • string
    • null
  • last_name
    wymagane

    One of the following:

    • string
    • null
  • business_activity_kind
    wymagane

    One of the following:

    • BusinessActivityKind
    • null
  • is_vindicable
    boolean
    wymagane

    Klient ma przeterminowane faktury, które można skierować do windykacji.

  • vindicable_invoices_count
    integer
    wymagane
    format: int32

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

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