> ## Documentation Index
> Fetch the complete documentation index at: https://docs.krdata.pl/llms.txt
> Use this file to discover all available pages before exploring further.

# Pobieranie rekordu

> Sprawdza pojedynczą firmę na białej liście podatników VAT po jej identyfikatorze (UUID, KRS lub NIP). Zwraca status VAT, numery rachunków, adresy oraz powiązane osoby. Każde sprawdzenie = 1 jednostka dziennego limitu **Biała Lista VAT**.



## OpenAPI

````yaml /openapi.json get /v1/wpv/record
openapi: 3.1.0
info:
  title: krdata API
  description: >

    krdata udostępnia dane z polskich rejestrów gospodarczych (KRS, CRBR, KRZ,
    MSiG, biała lista VAT)

    w postaci jednego, spójnego API.


    Uwierzytelnianie odbywa się przez klucz API przekazywany w nagłówku
    `x-api-key`.

    Limity zapytań oraz dzienne pule (PDF, WPV, raporty) wynikają z wybranego
    abonamentu —

    szczegóły zwraca endpoint `GET /v1/usage/summary`.
  version: 0.1.0
servers:
  - url: https://api.krdata.pl
    description: Production
security: []
paths:
  /v1/wpv/record:
    get:
      tags:
        - WPV
      summary: Pobieranie rekordu
      description: >-
        Sprawdza pojedynczą firmę na białej liście podatników VAT po jej
        identyfikatorze (UUID, KRS lub NIP). Zwraca status VAT, numery
        rachunków, adresy oraz powiązane osoby. Każde sprawdzenie = 1 jednostka
        dziennego limitu **Biała Lista VAT**.
      operationId: wpv-record
      parameters:
        - name: id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Id
        - name: krs
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                minLength: 10
                maxLength: 10
                pattern: ^\d{10}$
              - type: 'null'
            title: Krs
        - name: nip
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                minLength: 10
                maxLength: 10
                pattern: ^\d{10}$
              - type: 'null'
            title: Nip
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WpvRecord'
                title: Response Wpv-Record
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    WpvRecord:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
        identifiers:
          $ref: '#/components/schemas/Identifiers'
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        found:
          type: boolean
          title: Found
        subject:
          anyOf:
            - $ref: '#/components/schemas/WpvSubject'
            - type: 'null'
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
        request_datetime:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Request Datetime
        metadata:
          anyOf:
            - $ref: '#/components/schemas/Metadata'
            - type: 'null'
      type: object
      required:
        - identifiers
        - found
      title: WpvRecord
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Identifiers:
      properties:
        krs:
          anyOf:
            - type: string
            - type: 'null'
          title: Krs
        nip:
          anyOf:
            - type: string
            - type: 'null'
          title: Nip
        regon:
          anyOf:
            - type: string
            - type: 'null'
          title: Regon
        registry_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Registry Type
      type: object
      title: Identifiers
    WpvSubject:
      properties:
        name:
          type: string
          title: Name
        nip:
          type: string
          title: Nip
        krs:
          anyOf:
            - type: string
            - type: 'null'
          title: Krs
        regon:
          anyOf:
            - type: string
            - type: 'null'
          title: Regon
        pesel:
          anyOf:
            - type: string
            - type: 'null'
          title: Pesel
        status_vat:
          type: string
          title: Status Vat
        working_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Working Address
        residence_address:
          anyOf:
            - type: string
            - type: 'null'
          title: Residence Address
        account_numbers:
          items:
            type: string
          type: array
          title: Account Numbers
        has_virtual_accounts:
          type: boolean
          title: Has Virtual Accounts
          default: false
        registration_legal_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Registration Legal Date
        registration_denial_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Registration Denial Date
        registration_denial_basis:
          anyOf:
            - type: string
            - type: 'null'
          title: Registration Denial Basis
        restoration_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Restoration Date
        restoration_basis:
          anyOf:
            - type: string
            - type: 'null'
          title: Restoration Basis
        removal_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Removal Date
        removal_basis:
          anyOf:
            - type: string
            - type: 'null'
          title: Removal Basis
        representatives:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Representatives
        authorized_clerks:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Authorized Clerks
        partners:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Partners
      type: object
      required:
        - name
        - nip
        - status_vat
      title: WpvSubject
    Metadata:
      properties:
        first_seen:
          type: string
          format: date-time
          title: First Seen
        last_updated:
          type: string
          format: date-time
          title: Last Updated
        source_updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Source Updated At
      type: object
      required:
        - first_seen
        - last_updated
      title: Metadata
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````