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

# Postępowanie

> Jedno postępowanie BZP wraz z listą ogłoszeń w kolejności publikacji. Pełną treść ogłoszenia pobiera się osobno przez `/v1/bzp/record`. Jedna jednostka z puli zapytań.



## OpenAPI

````yaml /openapi.json get /v1/bzp/tenders/{tender_id}
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/bzp/tenders/{tender_id}:
    get:
      tags:
        - BZP
      summary: Postępowanie
      description: >-
        Jedno postępowanie BZP wraz z listą ogłoszeń w kolejności publikacji.
        Pełną treść ogłoszenia pobiera się osobno przez `/v1/bzp/record`. Jedna
        jednostka z puli zapytań.
      operationId: bzp-tender
      parameters:
        - name: tender_id
          in: path
          required: true
          schema:
            type: string
            minLength: 8
            maxLength: 80
            title: Tender Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BzpTenderDetail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    BzpTenderDetail:
      properties:
        tender_id:
          type: string
          title: Tender Id
        opening_type:
          type: string
          title: Opening Type
        opening_notice_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Opening Notice Id
        bzp_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Bzp Number
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        organization_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Name
        organization_nip:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Nip
        organization_city:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization City
        organization_province:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Province
        company_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Company Id
        client_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Type
        order_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Order Type
        tender_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Tender Type
        is_below_eu:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Below Eu
        cpv:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cpv
        cpv_divisions:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cpv Divisions
        nuts3:
          anyOf:
            - type: string
            - type: 'null'
          title: Nuts3
        published_at:
          type: string
          format: date-time
          title: Published At
        deadline_original:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Deadline Original
        deadline:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Deadline
        deadline_changes:
          type: integer
          title: Deadline Changes
          default: 0
        status:
          type: string
          title: Status
        phase:
          type: string
          title: Phase
        result_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Result At
        awarded_value:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Awarded Value
        winners:
          anyOf:
            - items:
                $ref: '#/components/schemas/BzpWinner'
              type: array
            - type: 'null'
          title: Winners
        winner_nips:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Winner Nips
        parts_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Parts Count
        price_only:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Price Only
        wadium_required:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Wadium Required
        criteria:
          anyOf:
            - items:
                $ref: '#/components/schemas/BzpCriterion'
              type: array
            - type: 'null'
          title: Criteria
        notices_count:
          type: integer
          title: Notices Count
        last_notice_at:
          type: string
          format: date-time
          title: Last Notice At
        role:
          anyOf:
            - type: string
              enum:
                - authority
                - winner
            - type: 'null'
          title: Role
        notices:
          items:
            $ref: '#/components/schemas/BzpListRow'
          type: array
          title: Notices
        metadata:
          $ref: '#/components/schemas/Metadata'
      type: object
      required:
        - tender_id
        - opening_type
        - published_at
        - status
        - phase
        - notices_count
        - last_notice_at
        - notices
        - metadata
      title: BzpTenderDetail
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BzpWinner:
      properties:
        name:
          type: string
          title: Name
        city:
          anyOf:
            - type: string
            - type: 'null'
          title: City
        nip:
          anyOf:
            - type: string
            - type: 'null'
          title: Nip
      type: object
      required:
        - name
      title: BzpWinner
    BzpCriterion:
      properties:
        name:
          type: string
          title: Name
        weight:
          anyOf:
            - type: number
            - type: 'null'
          title: Weight
      type: object
      required:
        - name
      title: BzpCriterion
    BzpListRow:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        notice_type:
          type: string
          title: Notice Type
        bzp_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Bzp Number
        publication_date:
          type: string
          format: date-time
          title: Publication Date
        order_object:
          anyOf:
            - type: string
            - type: 'null'
          title: Order Object
        organization_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Name
        organization_city:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization City
        organization_province:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Province
        organization_nip:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Nip
        company_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Company Id
        submitting_offers_date:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Submitting Offers Date
        contractor_nips:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Contractor Nips
      type: object
      required:
        - id
        - notice_type
        - publication_date
      title: BzpListRow
    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

````