> ## 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 postępowań firmy

> Liczby postępowań BZP dla firmy o podanym `nip`: łącznie, jako zamawiający, jako wykonawca, aktywne, rozstrzygnięte i unieważnione, wraz z sumą wartości zawartych umów po obu stronach. Koszt: 1 jednostka.



## OpenAPI

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

    krdata udostępnia dane z polskich rejestrów gospodarczych (KRS, CRBR, KRZ,
    MSiG, BZP, RDF, KNF, UOKiK, SUDOP,

    biała lista VAT) w postaci jednego, spójnego API.


    Uwierzytelnianie odbywa się przez klucz API w nagłówku `x-api-key`. Płatne
    endpointy zużywają jednostki

    z jednej puli; koszt każdego z nich podany jest w jego opisie, a zasady w
    sekcji Rozliczanie.

    Bieżący stan puli zwraca `GET /v1/usage/api`.
  version: 0.1.0
servers:
  - url: https://api.krdata.pl
    description: Production
security: []
paths:
  /v1/bzp/tenders/summary:
    get:
      tags:
        - BZP
      summary: Podsumowanie postępowań firmy
      description: >-
        Liczby postępowań BZP dla firmy o podanym `nip`: łącznie, jako
        zamawiający, jako wykonawca, aktywne, rozstrzygnięte i unieważnione,
        wraz z sumą wartości zawartych umów po obu stronach. Koszt: 1 jednostka.
      operationId: bzp-tenders-summary
      parameters:
        - name: nip
          in: query
          required: true
          schema:
            type: string
            minLength: 10
            maxLength: 13
            title: Nip
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BzpTenderSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    BzpTenderSummary:
      properties:
        total:
          type: integer
          title: Total
        as_authority:
          type: integer
          title: As Authority
        as_winner:
          type: integer
          title: As Winner
        open:
          type: integer
          title: Open
        awarded:
          type: integer
          title: Awarded
        cancelled:
          type: integer
          title: Cancelled
        spent_value:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Spent Value
        won_value:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Won Value
      type: object
      required:
        - total
        - as_authority
        - as_winner
        - open
        - awarded
        - cancelled
      title: BzpTenderSummary
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````