> ## 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.

# Podsumowanie pomocy

> Zagregowane podsumowanie pomocy publicznej i de minimis dla beneficjenta o podanym NIP: łączna liczba przypadków, suma pomocy brutto (PLN), suma pomocy de minimis brutto (EUR) z ostatnich 36 miesięcy, data ostatniej pomocy, sumy roczne oraz data aktualizacji danych. Zapytanie = 1 jednostka puli **MSiG i KRZ**.



## OpenAPI

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

    krdata udostępnia dane z polskich rejestrów gospodarczych (KRS, CRBR, KRZ,
    MSiG, RDF, 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 pule (RDF, 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/sudop/summary:
    get:
      tags:
        - SUDOP
      summary: Podsumowanie pomocy
      description: >-
        Zagregowane podsumowanie pomocy publicznej i de minimis dla beneficjenta
        o podanym NIP: łączna liczba przypadków, suma pomocy brutto (PLN), suma
        pomocy de minimis brutto (EUR) z ostatnich 36 miesięcy, data ostatniej
        pomocy, sumy roczne oraz data aktualizacji danych. Zapytanie = 1
        jednostka puli **MSiG i KRZ**.
      operationId: sudop-summary
      parameters:
        - name: nip
          in: query
          required: true
          schema:
            type: string
            description: Beneficiary NIP (10 digits)
            title: Nip
          description: Beneficiary NIP (10 digits)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SudopSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    SudopSummary:
      properties:
        nip:
          type: string
          title: Nip
        total_count:
          type: integer
          title: Total Count
        total_gross_pln:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Total Gross Pln
        de_minimis_gross_eur_36m:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: De Minimis Gross Eur 36M
        last_granted_at:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Last Granted At
        data_as_of:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Data As Of
        years:
          items:
            $ref: '#/components/schemas/SudopYearTotal'
          type: array
          title: Years
      type: object
      required:
        - nip
        - total_count
        - total_gross_pln
        - de_minimis_gross_eur_36m
        - years
      title: SudopSummary
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SudopYearTotal:
      properties:
        year:
          type: integer
          title: Year
        gross_pln:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Gross Pln
        count:
          type: integer
          title: Count
      type: object
      required:
        - year
        - gross_pln
        - count
      title: SudopYearTotal
    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

````