# /dncp/tenders

`POST /api/dncp/tenders`

Price: 23 credits

Full OCDS record of one Paraguayan public procurement process by ocid or process number: buyer, planning and budget, the call with its items, lots, documents, criteria and enquiries, the bids, electronic auction rounds, awards with their suppliers, contracts with amendments, guarantees, deliveries and payments, and complaints.

## How to use it

`stage` is the portal's Spanish stage label (`En Convocatoria (Abierta)`, `Adjudicada`, …) and `status` the OCDS code beside it; `suppliers` and `awarded_at` are filled once `awards` exist, and the money that was actually paid is in `contracts[].implementation.transactions`. `value` is the call's reference amount in PYG; awarded amounts are per award and per contract. `notified_suppliers` are the bidders the buyer notified of the award, `parties[].member_of` the parent entity of a dependent unit, and `related_processes` links a re-run to the unsuccessful process it replaces: a bare process number or a suffix-less ocid resolves to the latest record of the process (`…-2` after a re-run), the earlier one by its full ocid. Items carry `sub_items` on works tenders, which is where a multi-lot record gets large.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `id` (string, required) — Process ocid or the DNCP process number (examples: "ocds-03ad3f-360254-1", "ocds-03ad3f-482349", "482349"; minLength: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "DncpTender")
- `ocid` (string, required)
- `process_id` (string, nullable)
- `release_id` (string, nullable)
- `tender_id` (string, nullable)
- `description` (string, nullable)
- `status` (string, nullable)
- `stage` (string, nullable)
- `buyer` (object, nullable)
  - `@type` (string) (default: "DncpOrganization")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `procuring_entity` (object, nullable)
  - `@type` (string) (default: "DncpOrganization")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `suppliers` (array) (default: [])
  - `@type` (string) (default: "DncpOrganization")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `value` (object, nullable)
  - `@type` (string) (default: "DncpValue")
  - `amount` (number, nullable)
  - `currency` (string, nullable)
- `published_at` (integer, nullable)
- `deadline_at` (integer, nullable)
- `awarded_at` (integer, nullable)
- `released_at` (integer, nullable)
- `classifications` (array) (default: [])
  - `@type` (string) (default: "DncpClassification")
  - `scheme` (string, nullable)
  - `code` (string, required)
  - `description` (string, nullable)
  - `url` (string, nullable)
- `country` (string) (default: "PY")
- `url` (string, required)
- `record_url` (string, required)
- `language` (string, nullable)
- `initiation_type` (string, nullable)
- `tags` (array) (default: [])
- `procurement_method` (string, nullable)
- `procurement_method_details` (string, nullable)
- `main_category` (string, nullable)
- `main_category_details` (string, nullable)
- `additional_categories` (array) (default: [])
- `covered_by` (array) (default: [])
- `award_criteria` (string, nullable)
- `award_criteria_details` (string, nullable)
- `eligibility_criteria` (string, nullable)
- `submission_methods` (array) (default: [])
- `submission_method_details` (string, nullable)
- `has_enquiries` (boolean, nullable)
- `has_electronic_auction` (boolean, nullable)
- `number_of_tenderers` (integer, nullable)
- `sme_suitable` (boolean, nullable)
- `tender_period` (object, nullable)
  - `@type` (string) (default: "DncpPeriod")
  - `start_at` (integer, nullable)
  - `end_at` (integer, nullable)
  - `max_extent_at` (integer, nullable)
  - `duration_days` (integer, nullable)
- `enquiry_period` (object, nullable)
  - `@type` (string) (default: "DncpPeriod")
  - `start_at` (integer, nullable)
  - `end_at` (integer, nullable)
  - `max_extent_at` (integer, nullable)
  - `duration_days` (integer, nullable)
- `award_period` (object, nullable)
  - `@type` (string) (default: "DncpPeriod")
  - `start_at` (integer, nullable)
  - `end_at` (integer, nullable)
  - `max_extent_at` (integer, nullable)
  - `duration_days` (integer, nullable)
- `contract_period` (object, nullable)
  - `@type` (string) (default: "DncpPeriod")
  - `start_at` (integer, nullable)
  - `end_at` (integer, nullable)
  - `max_extent_at` (integer, nullable)
  - `duration_days` (integer, nullable)
- `bid_opening` (object, nullable)
  - `@type` (string) (default: "DncpMeeting")
  - `id` (string, nullable)
  - `address` (object, nullable)
    - `@type` (string) (default: "DncpAddress")
    - `street` (string, nullable)
    - `locality` (string, nullable)
    - `region` (string, nullable)
    - `country_name` (string, nullable)
  - `date_at` (integer, nullable)
- `enquiries_address` (string, nullable)
- `clarification_meetings` (array) (default: [])
  - `@type` (string) (default: "DncpMeeting")
  - `id` (string, nullable)
  - `address` (object, nullable)
    - `@type` (string) (default: "DncpAddress")
    - `street` (string, nullable)
    - `locality` (string, nullable)
    - `region` (string, nullable)
    - `country_name` (string, nullable)
  - `date_at` (integer, nullable)
- `criteria` (array) (default: [])
  - `@type` (string) (default: "DncpCriterion")
  - `id` (string, required)
  - `description` (string, nullable)
  - `source` (string, nullable)
  - `requirement_groups` (array) (default: [])
    - `@type` (string) (default: "DncpRequirementGroup")
    - `id` (string, required)
    - `description` (string, nullable)
    - `requirements` (array) (default: [])
- `enquiries` (array) (default: [])
  - `@type` (string) (default: "DncpEnquiry")
  - `id` (string, required)
  - `description` (string, nullable)
  - `answer` (string, nullable)
  - `author` (object, nullable)
    - `@type` (string) (default: "DncpOrganization")
    - `id` (string, nullable)
    - `name` (string, nullable)
  - `asked_at` (integer, nullable)
  - `answered_at` (integer, nullable)
- `line_items` (array) (default: [])
  - `@type` (string) (default: "DncpItem")
  - `id` (string, required)
  - `description` (string, nullable)
  - `classification` (object, nullable)
    - `@type` (string) (default: "DncpClassification")
    - `scheme` (string, nullable)
    - `code` (string, required)
    - `description` (string, nullable)
    - `url` (string, nullable)
  - `additional_classifications` (array) (default: [])
    - `@type` (string) (default: "DncpClassification")
    - `scheme` (string, nullable)
    - `code` (string, required)
    - `description` (string, nullable)
    - `url` (string, nullable)
  - `quantity` (number, nullable)
  - `min_quantity` (number, nullable)
  - `unit` (object, nullable)
    - `@type` (string) (default: "DncpUnit")
    - `id` (string, nullable)
    - `name` (string, nullable)
    - `value` (object, nullable)
      - `@type` (string) (default: "DncpValue")
      - `amount` (number, nullable)
      - `currency` (string, nullable)
  - `related_lot` (string, nullable)
  - `attributes` (array) (default: [])
    - `@type` (string) (default: "DncpAttribute")
    - `id` (string, nullable)
    - `name` (string, nullable)
    - `value` (string, nullable)
  - `sub_items` (array) (default: [])
    - `@type` (string) (default: "DncpSubItem")
    - `id` (string, required)
    - `description` (string, nullable)
    - `group` (string, nullable)
    - `quantity` (number, nullable)
    - `unit` (object, nullable) (see schema DncpUnit)
- `lots` (array) (default: [])
  - `@type` (string) (default: "DncpLot")
  - `id` (string, required)
  - `status` (string, nullable)
  - `status_details` (string, nullable)
  - `value` (object, nullable)
    - `@type` (string) (default: "DncpValue")
    - `amount` (number, nullable)
    - `currency` (string, nullable)
  - `min_value` (object, nullable)
    - `@type` (string) (default: "DncpValue")
    - `amount` (number, nullable)
    - `currency` (string, nullable)
  - `open_contract_type` (string, nullable)
  - `simultaneous_supply` (boolean, nullable)
  - `attributes` (array) (default: [])
    - `@type` (string) (default: "DncpAttribute")
    - `id` (string, nullable)
    - `name` (string, nullable)
    - `value` (string, nullable)
- `documents` (array) (default: [])
  - `@type` (string) (default: "DncpDocument")
  - `id` (string, required)
  - `description` (string, nullable)
  - `document_type` (string, nullable)
  - `document_type_details` (string, nullable)
  - `url` (string, nullable)
  - `mime_type` (string, nullable)
  - `language` (string, nullable)
  - `published_at` (integer, nullable)
- `tenderers` (array) (default: [])
  - `@type` (string) (default: "DncpOrganization")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `notified_suppliers` (array) (default: [])
  - `@type` (string) (default: "DncpOrganization")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `parties` (array) (default: [])
  - `@type` (string) (default: "DncpParty")
  - `id` (string, required)
  - `name` (string, nullable)
  - `roles` (array) (default: [])
  - `identifier` (object, nullable)
    - `@type` (string) (default: "DncpIdentifier")
    - `scheme` (string, nullable)
    - `id` (string, nullable)
    - `legal_name` (string, nullable)
  - `additional_identifiers` (array) (default: [])
    - `@type` (string) (default: "DncpIdentifier")
    - `scheme` (string, nullable)
    - `id` (string, nullable)
    - `legal_name` (string, nullable)
  - `address` (object, nullable)
    - `@type` (string) (default: "DncpAddress")
    - `street` (string, nullable)
    - `locality` (string, nullable)
    - `region` (string, nullable)
    - `country_name` (string, nullable)
  - `contact` (object, nullable)
    - `@type` (string) (default: "DncpContact")
    - `name` (string, nullable)
    - `email` (string, nullable)
    - `telephone` (string, nullable)
    - `fax` (string, nullable)
    - `url` (string, nullable)
  - `details` (object, nullable)
    - `@type` (string) (default: "DncpPartyDetails")
    - `institution_type` (string, nullable)
    - `level` (string, nullable)
    - `kind` (string, nullable)
    - `legal_entity_type` (string, nullable)
    - `size` (string, nullable)
    - `scale` (string, nullable)
    - `activity_types` (array) (default: [])
    - `categories` (array) (default: [])
  - `member_of` (array) (default: [])
    - `@type` (string) (default: "DncpOrganization")
    - `id` (string, nullable)
    - `name` (string, nullable)
  - `updated_at` (integer, nullable)
- `planning` (object, nullable)
  - `@type` (string) (default: "DncpPlanning")
  - `identifier` (string, nullable)
  - `estimated_at` (integer, nullable)
  - `budget` (object, nullable)
    - `@type` (string) (default: "DncpBudget")
    - `description` (string, nullable)
    - `amount` (object, nullable)
      - `@type` (string) (default: "DncpValue")
      - `amount` (number, nullable)
      - `currency` (string, nullable)
    - `breakdown` (array) (default: [])
      - `@type` (string) (default: "DncpBudgetBreakdown")
      - `id` (string, nullable)
      - `financial_code` (string, nullable)
      - `period` (object, nullable) (see schema DncpPeriod)
      - `amount_planned` (number, nullable)
      - `amount_used` (number, nullable)
      - `classifications` (object) (default: {})
        - `*` (string)
      - `source_party` (object, nullable) (see schema DncpOrganization)
  - `line_items` (array) (default: [])
    - `@type` (string) (default: "DncpPlanningItem")
    - `id` (string, required)
    - `description` (string, nullable)
    - `classification` (object, nullable)
      - `@type` (string) (default: "DncpClassification")
      - `scheme` (string, nullable)
      - `code` (string, required)
      - `description` (string, nullable)
      - `url` (string, nullable)
  - `investment_projects` (array) (default: [])
    - `@type` (string) (default: "DncpInvestmentProject")
    - `id` (string, required)
    - `name` (string, nullable)
    - `url` (string, nullable)
- `bids` (array) (default: [])
  - `@type` (string) (default: "DncpBid")
  - `id` (string, nullable)
  - `status` (string, nullable)
  - `tenderers` (array) (default: [])
    - `@type` (string) (default: "DncpOrganization")
    - `id` (string, nullable)
    - `name` (string, nullable)
  - `line_items` (array) (default: [])
    - `@type` (string) (default: "DncpItem")
    - `id` (string, required)
    - `description` (string, nullable)
    - `classification` (object, nullable) (see schema DncpClassification)
    - `additional_classifications` (array) (default: [])
    - `quantity` (number, nullable)
    - `min_quantity` (number, nullable)
    - `unit` (object, nullable) (see schema DncpUnit)
    - `related_lot` (string, nullable)
    - `attributes` (array) (default: [])
    - `sub_items` (array) (default: [])
- `awards` (array) (default: [])
  - `@type` (string) (default: "DncpAward")
  - `id` (string, required)
  - `status` (string, nullable)
  - `status_details` (string, nullable)
  - `awarded_at` (integer, nullable)
  - `value` (object, nullable)
    - `@type` (string) (default: "DncpValue")
    - `amount` (number, nullable)
    - `currency` (string, nullable)
  - `suppliers` (array) (default: [])
    - `@type` (string) (default: "DncpOrganization")
    - `id` (string, nullable)
    - `name` (string, nullable)
  - `line_items` (array) (default: [])
    - `@type` (string) (default: "DncpItem")
    - `id` (string, required)
    - `description` (string, nullable)
    - `classification` (object, nullable) (see schema DncpClassification)
    - `additional_classifications` (array) (default: [])
    - `quantity` (number, nullable)
    - `min_quantity` (number, nullable)
    - `unit` (object, nullable) (see schema DncpUnit)
    - `related_lot` (string, nullable)
    - `attributes` (array) (default: [])
    - `sub_items` (array) (default: [])
  - `documents` (array) (default: [])
    - `@type` (string) (default: "DncpDocument")
    - `id` (string, required)
    - `description` (string, nullable)
    - `document_type` (string, nullable)
    - `document_type_details` (string, nullable)
    - `url` (string, nullable)
    - `mime_type` (string, nullable)
    - `language` (string, nullable)
    - `published_at` (integer, nullable)
- `contracts` (array) (default: [])
  - `@type` (string) (default: "DncpContract")
  - `id` (string, nullable)
  - `award_id` (string, nullable)
  - `status` (string, nullable)
  - `status_details` (string, nullable)
  - `signed_at` (integer, nullable)
  - `value` (object, nullable)
    - `@type` (string) (default: "DncpValue")
    - `amount` (number, nullable)
    - `currency` (string, nullable)
  - `period` (object, nullable)
    - `@type` (string) (default: "DncpPeriod")
    - `start_at` (integer, nullable)
    - `end_at` (integer, nullable)
    - `max_extent_at` (integer, nullable)
    - `duration_days` (integer, nullable)
  - `guarantees` (array) (default: [])
    - `@type` (string) (default: "DncpGuarantee")
    - `id` (string, required)
    - `kind` (string, nullable)
    - `obligations` (string, nullable)
    - `percentage` (number, nullable)
    - `executed` (boolean, nullable)
    - `issued_at` (integer, nullable)
    - `period` (object, nullable) (see schema DncpPeriod)
  - `amendments` (array) (default: [])
    - `@type` (string) (default: "DncpAmendment")
    - `id` (string, required)
    - `description` (string, nullable)
    - `rationale` (string, nullable)
    - `financial_code` (string, nullable)
    - `amends_amount` (object, nullable) (see schema DncpValue)
    - `amends_period` (object, nullable) (see schema DncpPeriod)
    - `guarantee` (object, nullable) (see schema DncpGuarantee)
    - `prepaid` (boolean, nullable)
    - `amended_at` (integer, nullable)
  - `implementation` (object, nullable)
    - `@type` (string) (default: "DncpImplementation")
    - `milestones` (array) (default: [])
    - `purchase_orders` (array) (default: [])
    - `transactions` (array) (default: [])
    - `financial_progress` (array) (default: [])
  - `investment_projects` (array) (default: [])
    - `@type` (string) (default: "DncpInvestmentProject")
    - `id` (string, required)
    - `name` (string, nullable)
    - `url` (string, nullable)
  - `documents` (array) (default: [])
    - `@type` (string) (default: "DncpDocument")
    - `id` (string, required)
    - `description` (string, nullable)
    - `document_type` (string, nullable)
    - `document_type_details` (string, nullable)
    - `url` (string, nullable)
    - `mime_type` (string, nullable)
    - `language` (string, nullable)
    - `published_at` (integer, nullable)
- `complaints` (array) (default: [])
  - `@type` (string) (default: "DncpComplaint")
  - `id` (string, required)
  - `intervenients` (array) (default: [])
    - `@type` (string) (default: "DncpIntervenient")
    - `id` (string, required)
    - `name` (string, nullable)
    - `roles` (array) (default: [])
  - `events` (array) (default: [])
    - `@type` (string) (default: "DncpComplaintEvent")
    - `id` (string, required)
    - `kind` (string, nullable)
    - `description` (string, nullable)
    - `status` (string, nullable)
    - `period` (object, nullable) (see schema DncpPeriod)
  - `documents` (array) (default: [])
    - `@type` (string) (default: "DncpDocument")
    - `id` (string, required)
    - `description` (string, nullable)
    - `document_type` (string, nullable)
    - `document_type_details` (string, nullable)
    - `url` (string, nullable)
    - `mime_type` (string, nullable)
    - `language` (string, nullable)
    - `published_at` (integer, nullable)
- `auctions` (array) (default: [])
  - `@type` (string) (default: "DncpAuction")
  - `id` (string, required)
  - `related_lot` (string, nullable)
  - `period` (object, nullable)
    - `@type` (string) (default: "DncpPeriod")
    - `start_at` (integer, nullable)
    - `end_at` (integer, nullable)
    - `max_extent_at` (integer, nullable)
    - `duration_days` (integer, nullable)
  - `stages` (array) (default: [])
    - `@type` (string) (default: "DncpAuctionStage")
    - `id` (string, required)
    - `rounds` (array) (default: [])
    - `bids` (array) (default: [])
  - `winning_bids` (array) (default: [])
    - `@type` (string) (default: "DncpAuctionBid")
    - `id` (string, required)
    - `tenderers` (array) (default: [])
    - `value` (object, nullable) (see schema DncpValue)
    - `related_round` (string, nullable)
    - `placed_at` (integer, nullable)
- `related_processes` (array) (default: [])
  - `@type` (string) (default: "DncpRelatedProcess")
  - `id` (string, required)
  - `relationships` (array) (default: [])
  - `scheme` (string, nullable)
  - `identifier` (string, nullable)
  - `url` (string, nullable)
- `revisions` (array) (default: [])
  - `@type` (string) (default: "DncpRevision")
  - `released_at` (integer, nullable)
  - `url` (string, nullable)

## Errors

### 422 — Validation Error

The id is neither a process number nor an ocds-03ad3f ocid

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

No process with that number on the DNCP portal

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

