# /dgcp/tenders

`POST /api/dgcp/tenders`

Price: 20 credits

One Dominican public procurement process by ocid or process code: the process record with its dates, flags and estimated amount, the OCDS release with parties, items, documents, bids and awards, the contracts signed with their suppliers and amounts, every attached document, and the requested articles with UNSPSC codes and estimated prices.

## How to use it

`status` is the portal's Spanish process state (`Proceso publicado`, `Proceso adjudicado y celebrado`, …) and `stage` the OCDS tender status when a release exists. Awarded amounts and the winning supplier are in `contracts` (the flat contract rows) and, once the release reaches the award stage, in `release.awards` (suppliers and the awarded items with unit prices) and `release.contracts` (title, status, period and value per contract). `articles`, `contracts` and `attachments` are walked whole across every upstream page. `articles` is the requested item list even when `release.line_items` is empty.

## 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 DGCP process code (examples: "ocds-6550wx-DIE-CCC-LPN-2026-0003", "HPRL-DAF-CD-2026-0157"; minLength: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "DgcpTender")
- `ocid` (string, required)
- `code` (string, required)
- `description` (string, nullable)
- `status` (string, nullable)
- `stage` (string, nullable)
- `buyer` (object, nullable)
  - `@type` (string) (default: "DgcpOrganization")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `suppliers` (array) (default: [])
  - `@type` (string) (default: "DgcpOrganization")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `value` (object, nullable)
  - `@type` (string) (default: "DgcpValue")
  - `amount` (number, nullable)
  - `currency` (string, nullable)
- `published_at` (integer, nullable)
- `deadline_at` (integer, nullable)
- `awarded_at` (integer, nullable)
- `country` (string) (default: "DO")
- `url` (string, nullable)
- `process` (object, required)
  - `@type` (string) (default: "DgcpProcess")
  - `code` (string, required)
  - `ocid` (string, required)
  - `description` (string, nullable)
  - `status` (string, nullable)
  - `buyer_id` (string, nullable)
  - `buyer_name` (string, nullable)
  - `procurement_method` (string, nullable)
  - `exception_type` (string, nullable)
  - `category` (string, nullable)
  - `subcategory` (string, nullable)
  - `currency` (string, nullable)
  - `estimated_amount` (number, nullable)
  - `published_at` (integer, nullable)
  - `amendment_deadline_at` (integer, nullable)
  - `bid_deadline_at` (integer, nullable)
  - `bid_opening_at` (integer, nullable)
  - `second_bid_opening_at` (integer, nullable)
  - `bidder_qualification_at` (integer, nullable)
  - `estimated_award_at` (integer, nullable)
  - `contract_signing_at` (integer, nullable)
  - `sme_directed` (boolean, nullable)
  - `women_sme_directed` (boolean, nullable)
  - `has_lots` (boolean, nullable)
  - `is_snip` (boolean, nullable)
  - `snip_code` (string, nullable)
  - `notified_suppliers` (integer, nullable)
  - `requesting_area` (string, nullable)
  - `planned_acquisition` (boolean, nullable)
  - `unplanned_justification` (string, nullable)
  - `presidential_decree` (boolean, nullable)
  - `top_authority_resolution` (boolean, nullable)
  - `external_financing` (boolean, nullable)
  - `decree_3122` (boolean, nullable)
  - `green_purchase` (boolean, nullable)
  - `joint_purchase` (boolean, nullable)
  - `contract_duration` (string, nullable)
  - `country` (string) (default: "DO")
  - `url` (string, nullable)
- `release` (object, nullable)
  - `@type` (string) (default: "DgcpRelease")
  - `id` (string, required)
  - `ocid` (string, required)
  - `released_at` (integer, nullable)
  - `tags` (array) (default: [])
  - `language` (string, nullable)
  - `initiation_type` (string, nullable)
  - `tender_status` (string, nullable)
  - `tender_title` (string, nullable)
  - `tender_description` (string, nullable)
  - `procurement_method` (string, nullable)
  - `procurement_method_details` (string, nullable)
  - `main_category` (string, nullable)
  - `number_of_tenderers` (integer, nullable)
  - `value` (object, nullable)
    - `@type` (string) (default: "DgcpValue")
    - `amount` (number, nullable)
    - `currency` (string, nullable)
  - `tender_period` (object, nullable)
    - `@type` (string) (default: "DgcpPeriod")
    - `start_at` (integer, nullable)
    - `end_at` (integer, nullable)
    - `duration_days` (integer, nullable)
  - `award_period` (object, nullable)
    - `@type` (string) (default: "DgcpPeriod")
    - `start_at` (integer, nullable)
    - `end_at` (integer, nullable)
    - `duration_days` (integer, nullable)
  - `contract_period` (object, nullable)
    - `@type` (string) (default: "DgcpPeriod")
    - `start_at` (integer, nullable)
    - `end_at` (integer, nullable)
    - `duration_days` (integer, nullable)
  - `procuring_entity` (object, nullable)
    - `@type` (string) (default: "DgcpOrganization")
    - `id` (string, nullable)
    - `name` (string, nullable)
  - `sustainability` (array) (default: [])
    - `@type` (string) (default: "DgcpSustainability")
    - `goal` (string, nullable)
    - `strategies` (array) (default: [])
  - `budget` (object, nullable)
    - `@type` (string) (default: "DgcpBudget")
    - `description` (string, nullable)
    - `amount` (object, nullable)
      - `@type` (string) (default: "DgcpValue")
      - `amount` (number, nullable)
      - `currency` (string, nullable)
  - `planning_documents` (array) (default: [])
    - `@type` (string) (default: "DgcpDocument")
    - `id` (string, required)
    - `description` (string, nullable)
    - `document_type` (string, nullable)
    - `url` (string, nullable)
    - `mime_type` (string, nullable)
    - `language` (string, nullable)
    - `published_at` (integer, nullable)
  - `tender_documents` (array) (default: [])
    - `@type` (string) (default: "DgcpDocument")
    - `id` (string, required)
    - `description` (string, nullable)
    - `document_type` (string, nullable)
    - `url` (string, nullable)
    - `mime_type` (string, nullable)
    - `language` (string, nullable)
    - `published_at` (integer, nullable)
  - `line_items` (array) (default: [])
    - `@type` (string) (default: "DgcpItem")
    - `id` (string, required)
    - `description` (string, nullable)
    - `classification` (object, nullable)
      - `@type` (string) (default: "DgcpClassification")
      - `scheme` (string, nullable)
      - `code` (string, required)
      - `description` (string, nullable)
    - `quantity` (number, nullable)
    - `unit` (object, nullable)
      - `@type` (string) (default: "DgcpUnit")
      - `id` (string, nullable)
      - `name` (string, nullable)
      - `value` (object, nullable) (see schema DgcpValue)
  - `tenderers` (array) (default: [])
    - `@type` (string) (default: "DgcpOrganization")
    - `id` (string, nullable)
    - `name` (string, nullable)
  - `parties` (array) (default: [])
    - `@type` (string) (default: "DgcpParty")
    - `id` (string, required)
    - `name` (string, nullable)
    - `roles` (array) (default: [])
    - `identifier` (object, nullable)
      - `@type` (string) (default: "DgcpIdentifier")
      - `scheme` (string, nullable)
      - `id` (string, nullable)
      - `legal_name` (string, nullable)
    - `address` (object, nullable)
      - `@type` (string) (default: "DgcpAddress")
      - `street` (string, nullable)
      - `locality` (string, nullable)
      - `region` (string, nullable)
      - `country_name` (string, nullable)
    - `contact` (object, nullable)
      - `@type` (string) (default: "DgcpContact")
      - `name` (string, nullable)
      - `email` (string, nullable)
      - `telephone` (string, nullable)
    - `gender` (string, nullable)
    - `scale` (string, nullable)
  - `bids` (array) (default: [])
    - `@type` (string) (default: "DgcpBid")
    - `id` (string, required)
    - `status` (string, nullable)
    - `value` (object, nullable)
      - `@type` (string) (default: "DgcpValue")
      - `amount` (number, nullable)
      - `currency` (string, nullable)
    - `tenderers` (array) (default: [])
    - `submitted_at` (integer, nullable)
  - `awards` (array) (default: [])
    - `@type` (string) (default: "DgcpAward")
    - `id` (string, required)
    - `status` (string, nullable)
    - `awarded_at` (integer, nullable)
    - `value` (object, nullable)
      - `@type` (string) (default: "DgcpValue")
      - `amount` (number, nullable)
      - `currency` (string, nullable)
    - `suppliers` (array) (default: [])
    - `line_items` (array) (default: [])
  - `contracts` (array) (default: [])
    - `@type` (string) (default: "DgcpReleaseContract")
    - `id` (string, required)
    - `award_id` (string, nullable)
    - `status` (string, nullable)
    - `period` (object, nullable)
      - `@type` (string) (default: "DgcpPeriod")
      - `start_at` (integer, nullable)
      - `end_at` (integer, nullable)
      - `duration_days` (integer, nullable)
    - `value` (object, nullable)
      - `@type` (string) (default: "DgcpValue")
      - `amount` (number, nullable)
      - `currency` (string, nullable)
- `contracts` (array) (default: [])
  - `@type` (string) (default: "DgcpContract")
  - `code` (string, required)
  - `process_code` (string, nullable)
  - `status` (string, nullable)
  - `award_status` (string, nullable)
  - `awarded_at` (integer, nullable)
  - `created_at` (integer, nullable)
  - `currency` (string, nullable)
  - `amount` (number, nullable)
  - `payment_method` (string, nullable)
  - `invoice_payment_term` (string, nullable)
  - `description` (string, nullable)
  - `url` (string, nullable)
  - `buyer_id` (string, nullable)
  - `buyer_name` (string, nullable)
  - `supplier_rpe` (string, nullable)
  - `supplier_name` (string, nullable)
- `attachments` (array) (default: [])
  - `@type` (string) (default: "DgcpAttachment")
  - `name` (string, required)
  - `document_type` (string, nullable)
  - `url` (string, nullable)
  - `uploaded_at` (integer, nullable)
- `articles` (array) (default: [])
  - `@type` (string) (default: "DgcpArticle")
  - `description` (string, required)
  - `user_description` (string, nullable)
  - `unspsc_family` (string, nullable)
  - `unspsc_class` (string, nullable)
  - `unspsc_subclass` (string, nullable)
  - `budget_account` (string, nullable)
  - `quantity` (number, nullable)
  - `unit` (string, nullable)
  - `estimated_unit_price` (number, nullable)
  - `estimated_total_price` (number, nullable)
  - `published_at` (integer, nullable)

## Errors

### 422 — Validation Error

The id is neither a process code nor an ocds-6550wx 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 code in the DGCP open data

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.

