openapi: 3.0.3
info:
  description: Rejestr Podatników VAT
  title: API Rejestr WL
  version: 1.6.1
servers:
- url: /
tags:
- description: Wyszukiwanie podmiotów
  name: search
- description: Sprawdzanie przypisania rachunku do podmiotu
  name: check
paths:
  /api/search/nip/{nip}:
    get:
      description: Wyszukiwanie pojedynczego podmiotu po nip
      operationId: searchByNip
      parameters:
      - description: Nip
        explode: false
        in: path
        name: nip
        required: true
        schema:
          type: string
        style: simple
      - explode: true
        in: query
        name: date
        required: true
        schema:
          example: 2019-05-17
          format: date
          type: string
        style: form
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EntityResponseDto"
          description: "Pojedynczy podmiot, który spełnił warunki wyszukiwania"
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessageDto"
          description: niepoprawny parametr na wejściu
      tags:
      - search
  /api/search/nips/{nips}:
    get:
      description: Wyszukiwanie podmiotow po numerach nip
      operationId: searchByNips
      parameters:
      - description: Lista maksymalnie 30 numerow NIP rozdzielonych przecinkami
        explode: false
        in: path
        name: nips
        required: true
        schema:
          example: "1111111111,2222222222,3333333333"
          type: string
        style: simple
      - explode: true
        in: query
        name: date
        required: true
        schema:
          example: 2019-05-17
          format: date
          type: string
        style: form
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EntryListResponseDto"
          description: Rezultat wyszukiwania w postaci listy wpisów
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessageDto"
          description: niepoprawny parametr na wejściu
      tags:
      - search
  /api2/status/nip/{nip}:
    get:
      description: Wyszukiwanie statusu podmiotu po NIP
      operationId: searchStatusByNip
      parameters:
      - description: NIP
        explode: false
        in: path
        name: nip
        required: true
        schema:
          type: string
        style: simple
      - explode: true
        in: query
        name: date
        required: false
        schema:
          example: 2019-05-17
          format: date
          type: string
        style: form
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Api2StatusResponseDto"
          description: Status podmiotu po NIP
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessageDto"
          description: niepoprawny parametr na wejściu
      tags:
      - search
  /api/search/regon/{regon}:
    get:
      description: Wyszukiwanie pojedynczego podmiotu po regon
      operationId: searchByRegon
      parameters:
      - description: Regon
        example: "364760520"
        explode: false
        in: path
        name: regon
        required: true
        schema:
          description: |
            Numer identyfikacyjny REGON
          type: string
        style: simple
      - explode: true
        in: query
        name: date
        required: true
        schema:
          example: 2019-05-17
          format: date
          type: string
        style: form
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EntityResponseDto"
          description: "Pojedynczy podmiot, który spełnił warunki wyszukiwania"
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessageDto"
          description: niepoprawny parametr na wejściu
      tags:
      - search
  /api/search/regons/{regons}:
    get:
      description: Wyszukiwanie podmiotow po numerach regon
      operationId: searchByRegons
      parameters:
      - description: Regon
        explode: false
        in: path
        name: regons
        required: true
        schema:
          description: |
            Lista maksymalnie 30 numerow REGON rozdzielonych przecinkami
          example: "111111111,22222222222222,333333333"
          type: string
        style: simple
      - explode: true
        in: query
        name: date
        required: true
        schema:
          example: 2019-05-17
          format: date
          type: string
        style: form
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EntryListResponseDto"
          description: Rezultat wyszukiwania w postaci listy wpisów
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessageDto"
          description: niepoprawny parametr na wejściu
      tags:
      - search
  /api/search/bank-account/{bank-account}:
    get:
      description: Wyszukiwanie podmiotow po numerze konta
      operationId: searchByBankAccount
      parameters:
      - description: Numer rachunku bankowego
        explode: false
        in: path
        name: bank-account
        required: true
        schema:
          type: string
        style: simple
      - explode: true
        in: query
        name: date
        required: true
        schema:
          example: 2019-05-17
          format: date
          type: string
        style: form
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EntityListResponseDto"
          description: "Lista podmiotow, które spełnily warunki wyszukiwania"
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessageDto"
          description: niepoprawny parametr na wejściu
      tags:
      - search
  /api/search/bank-accounts/{bank-accounts}:
    get:
      description: Wyszukiwanie podmiotow po numerach kont
      operationId: searchByBankAccounts
      parameters:
      - description: |
          Lista maksymalnie 30 numerow rachunkow bankowych rozdzielonych przecinkami
        explode: false
        in: path
        name: bank-accounts
        required: true
        schema:
          example: "12345678901234567890123456, 09876543210987654321098765"
          type: string
        style: simple
      - explode: true
        in: query
        name: date
        required: true
        schema:
          example: 2019-05-17
          format: date
          type: string
        style: form
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EntryListResponseDto"
          description: Rezultat wyszukiwania w postaci listy wpisów
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessageDto"
          description: niepoprawny parametr na wejściu
      tags:
      - search
  /api/check/nip/{nip}/bank-account/{bank-account}:
    get:
      description: Sprawdzenie podmiotu po nip i numerze konta
      operationId: checkNip
      parameters:
      - description: Nip
        explode: false
        in: path
        name: nip
        required: true
        schema:
          type: string
        style: simple
      - description: Numer rachunku bankowego
        explode: false
        in: path
        name: bank-account
        required: true
        schema:
          type: string
        style: simple
      - explode: true
        in: query
        name: date
        required: true
        schema:
          example: 2019-05-17
          format: date
          type: string
        style: form
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EntityCheckResponseDto"
          description: "Informacja, że dany rachunek jest przypisany do podmiotu"
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessageDto"
          description: niepoprawny parametr na wejściu
      tags:
      - check
  /api/check/regon/{regon}/bank-account/{bank-account}:
    get:
      description: Sprawdzenie podmiotu po regon i numerze konta
      operationId: checkRegon
      parameters:
      - description: Regon
        explode: false
        in: path
        name: regon
        required: true
        schema:
          description: |
            Numer identyfikacyjny REGON
          type: string
        style: simple
      - description: Numer rachunku bankowego
        explode: false
        in: path
        name: bank-account
        required: true
        schema:
          type: string
        style: simple
      - explode: true
        in: query
        name: date
        required: true
        schema:
          example: 2019-05-17
          format: date
          type: string
        style: form
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EntityCheckResponseDto"
          description: "Informacja, że dany rachunek jest przypisany do podmiotu"
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorMessageDto"
          description: niepoprawny parametr na wejściu
      tags:
      - check
components:
  schemas:
    EntityResponseDto:
      example:
        result:
          subject:
            name: ABC Jan Nowak
            nip: "1111111111"
            statusVat: Zwolniony
            regon: regon
            pesel: pesel
            krs: "0000636771"
            residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
            workingAddress: ul/ Prosta 49 00-838 Warszawa
            representatives:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            authorizedClerks:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            partners:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            registrationLegalDate: 2018-02-21
            registrationDenialDate: 2019-02-21
            registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
            restorationDate: 2019-02-21
            restorationBasis: Ustawa o podatku od towarów i usług art. 96
            removalDate: 2019-02-21
            exemptionSmeDate: 2019-02-21
            removalBasis: Ustawa o podatku od towarów i usług Art. 97
            accountNumbers:
            - "90249000050247256316596736"
            - "90249000050247256316596736"
            hasVirtualAccounts: true
          requestDateTime: 19-11-2019 14:58:49
          requestId: d2n10-84df1a1
      properties:
        result:
          $ref: "#/components/schemas/ResultDto"
    ResultDto:
      example:
        subject:
          name: ABC Jan Nowak
          nip: "1111111111"
          statusVat: Zwolniony
          regon: regon
          pesel: pesel
          krs: "0000636771"
          residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
          workingAddress: ul/ Prosta 49 00-838 Warszawa
          representatives:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          authorizedClerks:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          partners:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          registrationLegalDate: 2018-02-21
          registrationDenialDate: 2019-02-21
          registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
          restorationDate: 2019-02-21
          restorationBasis: Ustawa o podatku od towarów i usług art. 96
          removalDate: 2019-02-21
          exemptionSmeDate: 2019-02-21
          removalBasis: Ustawa o podatku od towarów i usług Art. 97
          accountNumbers:
          - "90249000050247256316596736"
          - "90249000050247256316596736"
          hasVirtualAccounts: true
        requestDateTime: 19-11-2019 14:58:49
        requestId: d2n10-84df1a1
      properties:
        subject:
          $ref: "#/components/schemas/SubjectDto"
        requestDateTime:
          example: 19-11-2019 14:58:49
          maxLength: 19
          type: string
        requestId:
          example: d2n10-84df1a1
          maxLength: 18
          type: string
    SubjectDto:
      example:
        name: ABC Jan Nowak
        nip: "1111111111"
        statusVat: Zwolniony
        regon: regon
        pesel: pesel
        krs: "0000636771"
        residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
        workingAddress: ul/ Prosta 49 00-838 Warszawa
        representatives:
        - companyName: Nazwa firmy
          firstName: Jan
          lastName: Nowak
          pesel: pesel
          nip: "1111111111"
        - companyName: Nazwa firmy
          firstName: Jan
          lastName: Nowak
          pesel: pesel
          nip: "1111111111"
        authorizedClerks:
        - companyName: Nazwa firmy
          firstName: Jan
          lastName: Nowak
          pesel: pesel
          nip: "1111111111"
        - companyName: Nazwa firmy
          firstName: Jan
          lastName: Nowak
          pesel: pesel
          nip: "1111111111"
        partners:
        - companyName: Nazwa firmy
          firstName: Jan
          lastName: Nowak
          pesel: pesel
          nip: "1111111111"
        - companyName: Nazwa firmy
          firstName: Jan
          lastName: Nowak
          pesel: pesel
          nip: "1111111111"
        registrationLegalDate: 2018-02-21
        registrationDenialDate: 2019-02-21
        registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
        restorationDate: 2019-02-21
        restorationBasis: Ustawa o podatku od towarów i usług art. 96
        removalDate: 2019-02-21
        exemptionSmeDate: 2019-02-21
        removalBasis: Ustawa o podatku od towarów i usług Art. 97
        accountNumbers:
        - "90249000050247256316596736"
        - "90249000050247256316596736"
        hasVirtualAccounts: true
      properties:
        name:
          description: |
            Firma (nazwa) lub imię i nazwisko
          example: ABC Jan Nowak
          type: string
        nip:
          example: "1111111111"
          maxLength: 10
          minLength: 10
          type: string
        statusVat:
          description: |
            Status podatnika VAT.
          enum:
          - Czynny
          - Zwolniony
          - Niezarejestrowany
          example: Zwolniony
          type: string
        regon:
          description: |
            Numer identyfikacyjny REGON
          pattern: "^\\d{9}$|^\\d{14}$"
          type: string
        pesel:
          description: |
            numer PESEL jeżeli został nadany
          maxLength: 11
          minLength: 11
          nullable: true
          type: string
        krs:
          description: |
            numer KRS jeżeli został nadany
          example: "0000636771"
          maxLength: 10
          minLength: 10
          type: string
        residenceAddress:
          description: |
            Adres siedziby działalności gospodarczej (Adres siedziby OSOBY FIZYCZNEJ prowadzącej działalność gospodarczą)
          example: ul/ Chmielna 85/87 00-805 Warszawa
          maxLength: 200
          type: string
        workingAddress:
          description: |
            Adres rejestracyjny (Adres zamieszkania OSOBY FIZYCZNEJ lub adres siedziby ORGANIZACJI.).
          example: ul/ Prosta 49 00-838 Warszawa
          maxLength: 200
          type: string
        representatives:
          description: |
            Imiona i nazwiska osób wchodzących w skład organu uprawnionego do reprezentowania podmiotu oraz ich numery NIP i/lub PESEL
          items:
            $ref: "#/components/schemas/EntityPersonDto"
          type: array
        authorizedClerks:
          description: |
            Imiona i nazwiska prokurentów oraz ich numery NIP i/lub PESEL
          items:
            $ref: "#/components/schemas/EntityPersonDto"
          type: array
        partners:
          description: |
            Imiona i nazwiska lub firmę (nazwa) wspólnika oraz jego numeryNIP i/lub PESEL
          items:
            $ref: "#/components/schemas/EntityPersonDto"
          type: array
        registrationLegalDate:
          description: |
            Data rejestracji jako podatnika VAT
          example: 2018-02-21
          format: date
          type: string
        registrationDenialDate:
          description: |
            Data odmowy rejestracji jako podatnika VAT
          example: 2019-02-21
          format: date
          type: string
        registrationDenialBasis:
          description: |
            Podstawa prawna odmowy rejestracji
          example: Ustawa o podatku od towarów i usług art. 96
          maxLength: 200
          type: string
        restorationDate:
          description: |
            Data przywrócenia jako podatnika VAT
          example: 2019-02-21
          format: date
          type: string
        restorationBasis:
          description: |
            Podstawa prawna przywrócenia jako podatnika VAT
          example: Ustawa o podatku od towarów i usług art. 96
          maxLength: 200
          type: string
        removalDate:
          description: |
            Data wykreślenia odmowy rejestracji jako podatnika VAT
          example: 2019-02-21
          format: date
          type: string
        exemptionSmeDate:
          description: |
            Data zwolnienia SME
          example: 2019-02-21
          format: date
          type: string
        removalBasis:
          description: |
            Podstawa prawna wykreślenia odmowy rejestracji jako podatnika VAT
          example: Ustawa o podatku od towarów i usług Art. 97
          maxLength: 200
          type: string
        accountNumbers:
          items:
            description: |
              Numer konta bankowego w formacie NRB
            example: "90249000050247256316596736"
            maxLength: 26
            minLength: 26
            type: string
          type: array
        hasVirtualAccounts:
          description: |
            Podmiot posiada maski kont wirtualnych
          example: true
          type: boolean
      required:
      - name
    Pesel:
      description: |
        numer PESEL jeżeli został nadany
      maxLength: 11
      minLength: 11
      nullable: true
      type: string
    EntityPersonDto:
      example:
        companyName: Nazwa firmy
        firstName: Jan
        lastName: Nowak
        pesel: pesel
        nip: "1111111111"
      properties:
        companyName:
          example: Nazwa firmy
          type: string
        firstName:
          example: Jan
          maxLength: 60
          type: string
        lastName:
          example: Nowak
          maxLength: 160
          type: string
        pesel:
          description: |
            numer PESEL jeżeli został nadany
          maxLength: 11
          minLength: 11
          nullable: true
          type: string
        nip:
          example: "1111111111"
          maxLength: 10
          minLength: 10
          type: string
    ErrorMessageDto:
      example:
        message: error message
        code: WL-101
      properties:
        message:
          example: error message
          maxLength: 256
          type: string
        code:
          example: WL-101
          type: string
      required:
      - code
      - message
    EntryListResponseDto:
      example:
        result:
          entries:
          - identifier: identifier
            subjects:
            - name: ABC Jan Nowak
              nip: "1111111111"
              statusVat: Zwolniony
              regon: regon
              pesel: pesel
              krs: "0000636771"
              residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
              workingAddress: ul/ Prosta 49 00-838 Warszawa
              representatives:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              authorizedClerks:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              partners:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              registrationLegalDate: 2018-02-21
              registrationDenialDate: 2019-02-21
              registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
              restorationDate: 2019-02-21
              restorationBasis: Ustawa o podatku od towarów i usług art. 96
              removalDate: 2019-02-21
              exemptionSmeDate: 2019-02-21
              removalBasis: Ustawa o podatku od towarów i usług Art. 97
              accountNumbers:
              - "90249000050247256316596736"
              - "90249000050247256316596736"
              hasVirtualAccounts: true
            - name: ABC Jan Nowak
              nip: "1111111111"
              statusVat: Zwolniony
              regon: regon
              pesel: pesel
              krs: "0000636771"
              residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
              workingAddress: ul/ Prosta 49 00-838 Warszawa
              representatives:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              authorizedClerks:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              partners:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              registrationLegalDate: 2018-02-21
              registrationDenialDate: 2019-02-21
              registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
              restorationDate: 2019-02-21
              restorationBasis: Ustawa o podatku od towarów i usług art. 96
              removalDate: 2019-02-21
              exemptionSmeDate: 2019-02-21
              removalBasis: Ustawa o podatku od towarów i usług Art. 97
              accountNumbers:
              - "90249000050247256316596736"
              - "90249000050247256316596736"
              hasVirtualAccounts: true
          - identifier: identifier
            subjects:
            - name: ABC Jan Nowak
              nip: "1111111111"
              statusVat: Zwolniony
              regon: regon
              pesel: pesel
              krs: "0000636771"
              residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
              workingAddress: ul/ Prosta 49 00-838 Warszawa
              representatives:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              authorizedClerks:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              partners:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              registrationLegalDate: 2018-02-21
              registrationDenialDate: 2019-02-21
              registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
              restorationDate: 2019-02-21
              restorationBasis: Ustawa o podatku od towarów i usług art. 96
              removalDate: 2019-02-21
              exemptionSmeDate: 2019-02-21
              removalBasis: Ustawa o podatku od towarów i usług Art. 97
              accountNumbers:
              - "90249000050247256316596736"
              - "90249000050247256316596736"
              hasVirtualAccounts: true
            - name: ABC Jan Nowak
              nip: "1111111111"
              statusVat: Zwolniony
              regon: regon
              pesel: pesel
              krs: "0000636771"
              residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
              workingAddress: ul/ Prosta 49 00-838 Warszawa
              representatives:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              authorizedClerks:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              partners:
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              - companyName: Nazwa firmy
                firstName: Jan
                lastName: Nowak
                pesel: pesel
                nip: "1111111111"
              registrationLegalDate: 2018-02-21
              registrationDenialDate: 2019-02-21
              registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
              restorationDate: 2019-02-21
              restorationBasis: Ustawa o podatku od towarów i usług art. 96
              removalDate: 2019-02-21
              exemptionSmeDate: 2019-02-21
              removalBasis: Ustawa o podatku od towarów i usług Art. 97
              accountNumbers:
              - "90249000050247256316596736"
              - "90249000050247256316596736"
              hasVirtualAccounts: true
          requestDateTime: 19-11-2019 14:58:49
          requestId: d2n10-84df1a1
      properties:
        result:
          $ref: "#/components/schemas/EntryListResultDto"
    EntryListResultDto:
      example:
        entries:
        - identifier: identifier
          subjects:
          - name: ABC Jan Nowak
            nip: "1111111111"
            statusVat: Zwolniony
            regon: regon
            pesel: pesel
            krs: "0000636771"
            residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
            workingAddress: ul/ Prosta 49 00-838 Warszawa
            representatives:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            authorizedClerks:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            partners:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            registrationLegalDate: 2018-02-21
            registrationDenialDate: 2019-02-21
            registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
            restorationDate: 2019-02-21
            restorationBasis: Ustawa o podatku od towarów i usług art. 96
            removalDate: 2019-02-21
            exemptionSmeDate: 2019-02-21
            removalBasis: Ustawa o podatku od towarów i usług Art. 97
            accountNumbers:
            - "90249000050247256316596736"
            - "90249000050247256316596736"
            hasVirtualAccounts: true
          - name: ABC Jan Nowak
            nip: "1111111111"
            statusVat: Zwolniony
            regon: regon
            pesel: pesel
            krs: "0000636771"
            residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
            workingAddress: ul/ Prosta 49 00-838 Warszawa
            representatives:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            authorizedClerks:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            partners:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            registrationLegalDate: 2018-02-21
            registrationDenialDate: 2019-02-21
            registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
            restorationDate: 2019-02-21
            restorationBasis: Ustawa o podatku od towarów i usług art. 96
            removalDate: 2019-02-21
            exemptionSmeDate: 2019-02-21
            removalBasis: Ustawa o podatku od towarów i usług Art. 97
            accountNumbers:
            - "90249000050247256316596736"
            - "90249000050247256316596736"
            hasVirtualAccounts: true
        - identifier: identifier
          subjects:
          - name: ABC Jan Nowak
            nip: "1111111111"
            statusVat: Zwolniony
            regon: regon
            pesel: pesel
            krs: "0000636771"
            residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
            workingAddress: ul/ Prosta 49 00-838 Warszawa
            representatives:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            authorizedClerks:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            partners:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            registrationLegalDate: 2018-02-21
            registrationDenialDate: 2019-02-21
            registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
            restorationDate: 2019-02-21
            restorationBasis: Ustawa o podatku od towarów i usług art. 96
            removalDate: 2019-02-21
            exemptionSmeDate: 2019-02-21
            removalBasis: Ustawa o podatku od towarów i usług Art. 97
            accountNumbers:
            - "90249000050247256316596736"
            - "90249000050247256316596736"
            hasVirtualAccounts: true
          - name: ABC Jan Nowak
            nip: "1111111111"
            statusVat: Zwolniony
            regon: regon
            pesel: pesel
            krs: "0000636771"
            residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
            workingAddress: ul/ Prosta 49 00-838 Warszawa
            representatives:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            authorizedClerks:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            partners:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            registrationLegalDate: 2018-02-21
            registrationDenialDate: 2019-02-21
            registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
            restorationDate: 2019-02-21
            restorationBasis: Ustawa o podatku od towarów i usług art. 96
            removalDate: 2019-02-21
            exemptionSmeDate: 2019-02-21
            removalBasis: Ustawa o podatku od towarów i usług Art. 97
            accountNumbers:
            - "90249000050247256316596736"
            - "90249000050247256316596736"
            hasVirtualAccounts: true
        requestDateTime: 19-11-2019 14:58:49
        requestId: d2n10-84df1a1
      properties:
        entries:
          description: Lista odpowiedzi
          items:
            $ref: "#/components/schemas/EntryListResultDto_entries_inner"
          type: array
        requestDateTime:
          example: 19-11-2019 14:58:49
          maxLength: 19
          type: string
        requestId:
          example: d2n10-84df1a1
          maxLength: 18
          type: string
      required:
      - entries
    EntriesDto:
      example:
        identifier: identifier
        subjects:
        - name: ABC Jan Nowak
          nip: "1111111111"
          statusVat: Zwolniony
          regon: regon
          pesel: pesel
          krs: "0000636771"
          residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
          workingAddress: ul/ Prosta 49 00-838 Warszawa
          representatives:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          authorizedClerks:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          partners:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          registrationLegalDate: 2018-02-21
          registrationDenialDate: 2019-02-21
          registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
          restorationDate: 2019-02-21
          restorationBasis: Ustawa o podatku od towarów i usług art. 96
          removalDate: 2019-02-21
          exemptionSmeDate: 2019-02-21
          removalBasis: Ustawa o podatku od towarów i usług Art. 97
          accountNumbers:
          - "90249000050247256316596736"
          - "90249000050247256316596736"
          hasVirtualAccounts: true
        - name: ABC Jan Nowak
          nip: "1111111111"
          statusVat: Zwolniony
          regon: regon
          pesel: pesel
          krs: "0000636771"
          residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
          workingAddress: ul/ Prosta 49 00-838 Warszawa
          representatives:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          authorizedClerks:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          partners:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          registrationLegalDate: 2018-02-21
          registrationDenialDate: 2019-02-21
          registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
          restorationDate: 2019-02-21
          restorationBasis: Ustawa o podatku od towarów i usług art. 96
          removalDate: 2019-02-21
          exemptionSmeDate: 2019-02-21
          removalBasis: Ustawa o podatku od towarów i usług Art. 97
          accountNumbers:
          - "90249000050247256316596736"
          - "90249000050247256316596736"
          hasVirtualAccounts: true
      properties:
        identifier:
          description: |
            Przekazany identyfikator (Nip, Regon, Numer rachunku bankowego)
          type: string
        subjects:
          description: Lista podmiotów
          items:
            $ref: "#/components/schemas/SubjectDto"
          type: array
      required:
      - identifier
      - subjects
    ErrorDto:
      properties:
        identifier:
          description: |
            Przekazany identyfikator (Nip, Regon, Numer rachunku bankowego)
          type: string
        error:
          $ref: "#/components/schemas/ErrorMessageDto"
      required:
      - error
      - identifier
    Api2StatusResponseDto:
      example:
        result:
          subject:
            nip: "1111111111"
            statusVat: Zwolniony
            requestedDate: 10-10-2021
            responseDateTime: 21-11-2019 14:58:49
            requestId: d2n10-84df1a1
      properties:
        result:
          $ref: "#/components/schemas/Api2StatusResultDto"
      type: object
    Api2StatusResultDto:
      example:
        subject:
          nip: "1111111111"
          statusVat: Zwolniony
          requestedDate: 10-10-2021
          responseDateTime: 21-11-2019 14:58:49
          requestId: d2n10-84df1a1
      properties:
        subject:
          $ref: "#/components/schemas/Api2StatusSubjectDto"
      type: object
    Api2StatusSubjectDto:
      example:
        nip: "1111111111"
        statusVat: Zwolniony
        requestedDate: 10-10-2021
        responseDateTime: 21-11-2019 14:58:49
        requestId: d2n10-84df1a1
      properties:
        nip:
          example: "1111111111"
          maxLength: 10
          minLength: 10
          type: string
        statusVat:
          enum:
          - Czynny
          - Zwolniony
          - Niezarejestrowany
          example: Zwolniony
          type: string
        requestedDate:
          example: 10-10-2021
          type: string
        responseDateTime:
          example: 21-11-2019 14:58:49
          type: string
        requestId:
          example: d2n10-84df1a1
          type: string
      required:
      - nip
      - requestId
      - requestedDate
      - responseDateTime
      - statusVat
      type: object
    EntityListResponseDto:
      example:
        result:
          subjects:
          - name: ABC Jan Nowak
            nip: "1111111111"
            statusVat: Zwolniony
            regon: regon
            pesel: pesel
            krs: "0000636771"
            residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
            workingAddress: ul/ Prosta 49 00-838 Warszawa
            representatives:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            authorizedClerks:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            partners:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            registrationLegalDate: 2018-02-21
            registrationDenialDate: 2019-02-21
            registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
            restorationDate: 2019-02-21
            restorationBasis: Ustawa o podatku od towarów i usług art. 96
            removalDate: 2019-02-21
            exemptionSmeDate: 2019-02-21
            removalBasis: Ustawa o podatku od towarów i usług Art. 97
            accountNumbers:
            - "90249000050247256316596736"
            - "90249000050247256316596736"
            hasVirtualAccounts: true
          - name: ABC Jan Nowak
            nip: "1111111111"
            statusVat: Zwolniony
            regon: regon
            pesel: pesel
            krs: "0000636771"
            residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
            workingAddress: ul/ Prosta 49 00-838 Warszawa
            representatives:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            authorizedClerks:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            partners:
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            - companyName: Nazwa firmy
              firstName: Jan
              lastName: Nowak
              pesel: pesel
              nip: "1111111111"
            registrationLegalDate: 2018-02-21
            registrationDenialDate: 2019-02-21
            registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
            restorationDate: 2019-02-21
            restorationBasis: Ustawa o podatku od towarów i usług art. 96
            removalDate: 2019-02-21
            exemptionSmeDate: 2019-02-21
            removalBasis: Ustawa o podatku od towarów i usług Art. 97
            accountNumbers:
            - "90249000050247256316596736"
            - "90249000050247256316596736"
            hasVirtualAccounts: true
          requestDateTime: 19-11-2019 14:58:49
          requestId: d2n10-84df1a1
      properties:
        result:
          $ref: "#/components/schemas/ResultListDto"
    ResultListDto:
      example:
        subjects:
        - name: ABC Jan Nowak
          nip: "1111111111"
          statusVat: Zwolniony
          regon: regon
          pesel: pesel
          krs: "0000636771"
          residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
          workingAddress: ul/ Prosta 49 00-838 Warszawa
          representatives:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          authorizedClerks:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          partners:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          registrationLegalDate: 2018-02-21
          registrationDenialDate: 2019-02-21
          registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
          restorationDate: 2019-02-21
          restorationBasis: Ustawa o podatku od towarów i usług art. 96
          removalDate: 2019-02-21
          exemptionSmeDate: 2019-02-21
          removalBasis: Ustawa o podatku od towarów i usług Art. 97
          accountNumbers:
          - "90249000050247256316596736"
          - "90249000050247256316596736"
          hasVirtualAccounts: true
        - name: ABC Jan Nowak
          nip: "1111111111"
          statusVat: Zwolniony
          regon: regon
          pesel: pesel
          krs: "0000636771"
          residenceAddress: ul/ Chmielna 85/87 00-805 Warszawa
          workingAddress: ul/ Prosta 49 00-838 Warszawa
          representatives:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          authorizedClerks:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          partners:
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          - companyName: Nazwa firmy
            firstName: Jan
            lastName: Nowak
            pesel: pesel
            nip: "1111111111"
          registrationLegalDate: 2018-02-21
          registrationDenialDate: 2019-02-21
          registrationDenialBasis: Ustawa o podatku od towarów i usług art. 96
          restorationDate: 2019-02-21
          restorationBasis: Ustawa o podatku od towarów i usług art. 96
          removalDate: 2019-02-21
          exemptionSmeDate: 2019-02-21
          removalBasis: Ustawa o podatku od towarów i usług Art. 97
          accountNumbers:
          - "90249000050247256316596736"
          - "90249000050247256316596736"
          hasVirtualAccounts: true
        requestDateTime: 19-11-2019 14:58:49
        requestId: d2n10-84df1a1
      properties:
        subjects:
          description: |
            Lista podmiotów
          items:
            $ref: "#/components/schemas/SubjectDto"
          type: array
        requestDateTime:
          example: 19-11-2019 14:58:49
          maxLength: 19
          type: string
        requestId:
          example: d2n10-84df1a1
          maxLength: 18
          type: string
    EntityCheckResponseDto:
      example:
        result:
          accountAssigned: TAK
          requestDateTime: 19-11-2019 14:58:49
          requestId: d2n10-84df1a1
      properties:
        result:
          $ref: "#/components/schemas/EntityCheckDto"
    EntityCheckDto:
      example:
        accountAssigned: TAK
        requestDateTime: 19-11-2019 14:58:49
        requestId: d2n10-84df1a1
      properties:
        accountAssigned:
          description: |
            Czy rachunek przypisany do podmiotu czynnego
          example: TAK
          type: string
        requestDateTime:
          example: 19-11-2019 14:58:49
          maxLength: 19
          type: string
        requestId:
          example: d2n10-84df1a1
          maxLength: 18
          type: string
    EntryListResultDto_entries_inner:
      oneOf:
      - $ref: "#/components/schemas/EntriesDto"
      - $ref: "#/components/schemas/ErrorDto"
