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

# SECOP Contract by ID

> Resolve one electronic contract (SECOP II) by its contract id and return the full contract record plus its satellite history: registered additions/modifications, insurance policies (garantías) with insurer and validity, and the delivery plan with planned vs actual progress. `found: false` when no contract matches the id.



## OpenAPI

````yaml /api-reference/openapi.json post /co/secop/contract/v1
openapi: 3.1.0
info:
  title: Croma Marketplace API
  version: 1.0.0
  description: >-
    Government-data APIs for Colombia, Peru, Mexico, and global web search.
    Croma normalizes public-sector data into structured JSON for product teams
    and AI agents.
servers:
  - url: https://api.croma.run
security: []
paths:
  /co/secop/contract/v1:
    post:
      tags:
        - Colombia
        - SECOP
      summary: SECOP Contract by ID
      description: >-
        Resolve one electronic contract (SECOP II) by its contract id and return
        the full contract record plus its satellite history: registered
        additions/modifications, insurance policies (garantías) with insurer and
        validity, and the delivery plan with planned vs actual progress. `found:
        false` when no contract matches the id.
      operationId: secop_contract
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - contract_id
              properties:
                contract_id:
                  type: string
                  pattern: ^CO1\.PCCNTR\.\d{3,}$
                  description: SECOP electronic contract id, e.g. "CO1.PCCNTR.6794799".
              additionalProperties: false
            example:
              contract_id: CO1.PCCNTR.6794799
      responses:
        '200':
          description: Successful response
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left before you are throttled.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: ISO 8601 timestamp when the window resets.
              schema:
                type: string
                format: date-time
            X-Cache:
              description: HIT or MISS. Cached hits still count against your quota.
              schema:
                type: string
                enum:
                  - HIT
                  - MISS
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecopContractLookupResponse'
        '400':
          description: Invalid request body
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Missing or invalid API key
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left before you are throttled.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: ISO 8601 timestamp when the window resets.
              schema:
                type: string
                format: date-time
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal error
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '502':
          description: Upstream source returned an error
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - bearerAuth: []
      externalDocs:
        description: Interactive documentation and examples
        url: https://docs.usecroma.com/guides/colombia/secop
components:
  schemas:
    SecopContractLookupResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - found
            - contract_id
            - contract
            - additions
            - additions_capped
            - guarantees
            - guarantees_capped
            - execution_items
            - execution_items_capped
          properties:
            found:
              type: boolean
              description: >-
                Whether a contract matched the id. When false, contract is null
                and the lists are empty.
            contract_id:
              type: string
            contract:
              oneOf:
                - $ref: '#/components/schemas/SecopContract'
                - type: 'null'
            additions:
              type: array
              items:
                $ref: '#/components/schemas/SecopContractAddition'
            additions_capped:
              type: boolean
            guarantees:
              type: array
              items:
                $ref: '#/components/schemas/SecopContractGuarantee'
            guarantees_capped:
              type: boolean
            execution_items:
              type: array
              items:
                $ref: '#/components/schemas/SecopContractExecutionItem'
            execution_items_capped:
              type: boolean
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              description: >-
                Broad category: invalid_request_error, authentication_error,
                not_found_error, rate_limit_error, upstream_error, api_error.
            code:
              type: string
              description: Machine-readable specific code.
            message:
              type: string
              description: Human-readable explanation, safe to surface in UI.
            param:
              type: string
              description: Field that triggered the error. Present on validation errors.
            details:
              type: object
              description: Free-form structured detail.
    SecopContract:
      type: object
      required:
        - contract_id
        - entity
        - provider
        - provider_document
        - value
        - status
      properties:
        contract_id:
          type:
            - string
            - 'null'
        reference:
          type:
            - string
            - 'null'
        entity:
          type:
            - string
            - 'null'
        entity_nit:
          type:
            - string
            - 'null'
        centralized_entity:
          type:
            - string
            - 'null'
          description: '"Centralizada" or "Descentralizada".'
        provider:
          type:
            - string
            - 'null'
        provider_document:
          type:
            - string
            - 'null'
        provider_document_type:
          type:
            - string
            - 'null'
        provider_code:
          type:
            - string
            - 'null'
        is_sme:
          type:
            - boolean
            - 'null'
        is_group:
          type:
            - boolean
            - 'null'
          description: >-
            True when the provider is a plural structure (consortium / unión
            temporal).
        legal_rep_name:
          type:
            - string
            - 'null'
        legal_rep_document_type:
          type:
            - string
            - 'null'
        legal_rep_document:
          type:
            - string
            - 'null'
        status:
          type:
            - string
            - 'null'
        contract_type:
          type:
            - string
            - 'null'
        modality:
          type:
            - string
            - 'null'
          description: >-
            How the contract was procured (open tender, direct contracting,
            ...).
        modality_justification:
          type:
            - string
            - 'null'
        unspsc_code:
          type:
            - string
            - 'null'
        object:
          type:
            - string
            - 'null'
        delivery_conditions:
          type:
            - string
            - 'null'
        value:
          type:
            - number
            - 'null'
        invoiced_value:
          type:
            - number
            - 'null'
        paid_value:
          type:
            - number
            - 'null'
        pending_execution_value:
          type:
            - number
            - 'null'
        pending_payment_value:
          type:
            - number
            - 'null'
        advance_payment_enabled:
          type:
            - boolean
            - 'null'
        advance_payment_value:
          type:
            - number
            - 'null'
        amortized_value:
          type:
            - number
            - 'null'
        pending_amortization_value:
          type:
            - number
            - 'null'
        sign_date:
          type:
            - string
            - 'null'
          format: date
        start_date:
          type:
            - string
            - 'null'
          format: date
        end_date:
          type:
            - string
            - 'null'
          format: date
        added_days:
          type:
            - number
            - 'null'
        duration:
          type:
            - string
            - 'null'
        can_be_extended:
          type:
            - boolean
            - 'null'
        extension_notice_date:
          type:
            - string
            - 'null'
          format: date
          description: When the entity gave notice of an extension (prórroga).
        requires_liquidation:
          type:
            - boolean
            - 'null'
          description: Whether the contract carries a liquidation stage at its end.
        liquidation_start_date:
          type:
            - string
            - 'null'
          format: date
        liquidation_end_date:
          type:
            - string
            - 'null'
          format: date
        has_environmental_obligation:
          type:
            - boolean
            - 'null'
        has_post_consumption_obligations:
          type:
            - boolean
            - 'null'
        has_reversion:
          type:
            - boolean
            - 'null'
        location:
          type:
            - string
            - 'null'
        supervisor:
          type:
            - string
            - 'null'
        expense_orderer:
          type:
            - string
            - 'null'
        funding_origin:
          type:
            - string
            - 'null'
        expense_destination:
          type:
            - string
            - 'null'
          description: '"Inversión" or "Funcionamiento".'
        sector:
          type:
            - string
            - 'null'
        branch:
          type:
            - string
            - 'null'
        updated_date:
          type:
            - string
            - 'null'
          format: date
        url:
          type:
            - string
            - 'null'
    SecopContractAddition:
      type: object
      required:
        - addition_id
        - type
        - registered_date
      properties:
        addition_id:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        registered_date:
          type:
            - string
            - 'null'
          format: date
    SecopContractGuarantee:
      type: object
      required:
        - insurer
        - policy_number
        - value
      properties:
        insurer:
          type:
            - string
            - 'null'
        policy_number:
          type:
            - string
            - 'null'
        insured:
          type:
            - string
            - 'null'
        beneficiary:
          type:
            - string
            - 'null'
        policy_created_date:
          type:
            - string
            - 'null'
          format: date
        policy_sent_date:
          type:
            - string
            - 'null'
          format: date
        policy_end_date:
          type:
            - string
            - 'null'
          format: date
        policy_side:
          type:
            - string
            - 'null'
        status:
          type:
            - string
            - 'null'
        policy_type:
          type:
            - string
            - 'null'
        policy_subtype:
          type:
            - string
            - 'null'
        value:
          type:
            - number
            - 'null'
        created_date:
          type:
            - string
            - 'null'
          format: date
    SecopContractExecutionItem:
      type: object
      required:
        - execution_type
        - expected_delivery_date
      properties:
        execution_type:
          type:
            - string
            - 'null'
        plan_name:
          type:
            - string
            - 'null'
        expected_delivery_date:
          type:
            - string
            - 'null'
          format: date
        expected_progress_percent:
          type:
            - number
            - 'null'
        actual_delivery_date:
          type:
            - string
            - 'null'
          format: date
        actual_progress_percent:
          type:
            - number
            - 'null'
        contract_status:
          type:
            - string
            - 'null'
        item_reference:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        unit:
          type:
            - string
            - 'null'
        awarded_quantity:
          type:
            - number
            - 'null'
        planned_quantity:
          type:
            - number
            - 'null'
        received_quantity:
          type:
            - number
            - 'null'
        pending_quantity:
          type:
            - number
            - 'null'
        created_date:
          type:
            - string
            - 'null'
          format: date
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````