# /arce/tenders

`POST /api/arce/tenders`

Price: 5 credits

One Uruguayan public procurement publication by portal id or ocid: the call with its buyer, items, deadline, enquiry and extension deadlines, bid opening, delivery place, contact and attachments, and once awarded the resolution number and outcome, total amount, the awarded suppliers, every participating bidder and the awarded items with unit prices, plus every OCDS release of the process.

## How to use it

`status` is `complete` once an award is published, `cancelled` after a cancellation release, `active` while a numeric id has a tender release and no award, and null for a letter-prefixed or pre-2017 id that has no award page; `value` is the total awarded amount and appears only on awarded publications. `suppliers` are the bidders that won at least one awarded item, `tenderers` every bidder listed as participating — on a contested call the first is a subset of the second. Letter-prefixed ids (`i…` Montevideo city purchases, `a…` archived calls) are published outside OCDS and resolve from the portal pages alone, so they have no ocid and no release history.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `id` (string, required) — Publication id from the portal or its ocid (examples: "1372844", "ocds-yfs5dr-1372844", "i501323", "a29033"; minLength: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "ArceTender")
- `id` (string, required)
- `ocid` (string, nullable)
- `procedure` (string, nullable)
- `number` (string, nullable)
- `year` (integer, nullable)
- `description` (string, nullable)
- `status` (string, nullable)
- `stage` (string, nullable)
- `buyer` (object, nullable)
  - `@type` (string) (default: "ArceOrganization")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `buyer_unit` (string, nullable)
- `procuring_entity` (object, nullable)
  - `@type` (string) (default: "ArceOrganization")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `suppliers` (array) (default: [])
  - `@type` (string) (default: "ArceSupplier")
  - `id` (string, nullable)
  - `name` (string, nullable)
  - `document_type` (string, nullable)
  - `document_number` (string, nullable)
- `tenderers` (array) (default: [])
  - `@type` (string) (default: "ArceSupplier")
  - `id` (string, nullable)
  - `name` (string, nullable)
  - `document_type` (string, nullable)
  - `document_number` (string, nullable)
- `value` (object, nullable)
  - `@type` (string) (default: "ArceValue")
  - `amount` (number, nullable)
  - `currency` (string, nullable)
- `award_outcome` (string, nullable)
- `resolution_number` (string, nullable)
- `revolving_funds` (boolean, nullable)
- `published_at` (integer, nullable)
- `deadline_at` (integer, nullable)
- `enquiry_deadline_at` (integer, nullable)
- `extension_until_at` (integer, nullable)
- `bid_opening_at` (integer, nullable)
- `awarded_at` (integer, nullable)
- `purchased_at` (integer, nullable)
- `modified_at` (integer, nullable)
- `classifications` (array) (default: [])
  - `@type` (string) (default: "ArceClassification")
  - `scheme` (string, nullable)
  - `code` (string, required)
  - `description` (string, nullable)
- `country` (string) (default: "UY")
- `url` (string, required)
- `record_url` (string, nullable)
- `procurement_method` (string, nullable)
- `procurement_method_details` (string, nullable)
- `submission_methods` (array) (default: [])
- `submission_method_details` (string, nullable)
- `delivery_place` (string, nullable)
- `contact` (object, nullable)
  - `@type` (string) (default: "ArceContact")
  - `name` (string, nullable)
  - `email` (string, nullable)
  - `telephone` (string, nullable)
  - `fax` (string, nullable)
- `tender_period` (object, nullable)
  - `@type` (string) (default: "ArcePeriod")
  - `start_at` (integer, nullable)
  - `end_at` (integer, nullable)
- `enquiry_period` (object, nullable)
  - `@type` (string) (default: "ArcePeriod")
  - `start_at` (integer, nullable)
  - `end_at` (integer, nullable)
- `has_enquiries` (boolean, nullable)
- `line_items` (array) (default: [])
  - `@type` (string) (default: "ArceItem")
  - `id` (string, required)
  - `description` (string, nullable)
  - `classification` (object, nullable)
    - `@type` (string) (default: "ArceClassification")
    - `scheme` (string, nullable)
    - `code` (string, required)
    - `description` (string, nullable)
  - `quantity` (number, nullable)
  - `unit` (object, nullable)
    - `@type` (string) (default: "ArceUnit")
    - `id` (string, nullable)
    - `name` (string, nullable)
    - `value` (object, nullable)
      - `@type` (string) (default: "ArceValue")
      - `amount` (number, nullable)
      - `currency` (string, nullable)
  - `supplier` (object, nullable)
    - `@type` (string) (default: "ArceSupplier")
    - `id` (string, nullable)
    - `name` (string, nullable)
    - `document_type` (string, nullable)
    - `document_number` (string, nullable)
  - `variation` (string, nullable)
  - `unit_price` (object, nullable)
    - `@type` (string) (default: "ArceValue")
    - `amount` (number, nullable)
    - `currency` (string, nullable)
  - `total` (object, nullable)
    - `@type` (string) (default: "ArceValue")
    - `amount` (number, nullable)
    - `currency` (string, nullable)
  - `features` (object) (default: {})
    - `*` (string)
- `awarded_items` (array) (default: [])
  - `@type` (string) (default: "ArceItem")
  - `id` (string, required)
  - `description` (string, nullable)
  - `classification` (object, nullable)
    - `@type` (string) (default: "ArceClassification")
    - `scheme` (string, nullable)
    - `code` (string, required)
    - `description` (string, nullable)
  - `quantity` (number, nullable)
  - `unit` (object, nullable)
    - `@type` (string) (default: "ArceUnit")
    - `id` (string, nullable)
    - `name` (string, nullable)
    - `value` (object, nullable)
      - `@type` (string) (default: "ArceValue")
      - `amount` (number, nullable)
      - `currency` (string, nullable)
  - `supplier` (object, nullable)
    - `@type` (string) (default: "ArceSupplier")
    - `id` (string, nullable)
    - `name` (string, nullable)
    - `document_type` (string, nullable)
    - `document_number` (string, nullable)
  - `variation` (string, nullable)
  - `unit_price` (object, nullable)
    - `@type` (string) (default: "ArceValue")
    - `amount` (number, nullable)
    - `currency` (string, nullable)
  - `total` (object, nullable)
    - `@type` (string) (default: "ArceValue")
    - `amount` (number, nullable)
    - `currency` (string, nullable)
  - `features` (object) (default: {})
    - `*` (string)
- `documents` (array) (default: [])
  - `@type` (string) (default: "ArceDocument")
  - `id` (string, required)
  - `description` (string, nullable)
  - `document_type` (string, nullable)
  - `url` (string, nullable)
  - `mime_type` (string, nullable)
  - `language` (string, nullable)
  - `published_at` (integer, nullable)
- `amendments` (array) (default: [])
  - `@type` (string) (default: "ArceAmendment")
  - `id` (string, required)
  - `description` (string, nullable)
  - `release_id` (string, nullable)
  - `amends_release_id` (string, nullable)
  - `amended_at` (integer, nullable)
- `awards` (array) (default: [])
  - `@type` (string) (default: "ArceAward")
  - `id` (string, required)
  - `release_id` (string, nullable)
  - `status` (string, nullable)
  - `awarded_at` (integer, nullable)
  - `suppliers` (array) (default: [])
    - `@type` (string) (default: "ArceOrganization")
    - `id` (string, nullable)
    - `name` (string, nullable)
  - `line_items` (array) (default: [])
    - `@type` (string) (default: "ArceItem")
    - `id` (string, required)
    - `description` (string, nullable)
    - `classification` (object, nullable) (see schema ArceClassification)
    - `quantity` (number, nullable)
    - `unit` (object, nullable) (see schema ArceUnit)
    - `supplier` (object, nullable) (see schema ArceSupplier)
    - `variation` (string, nullable)
    - `unit_price` (object, nullable) (see schema ArceValue)
    - `total` (object, nullable) (see schema ArceValue)
    - `features` (object) (default: {})
      - `*` (string)
  - `documents` (array) (default: [])
    - `@type` (string) (default: "ArceDocument")
    - `id` (string, required)
    - `description` (string, nullable)
    - `document_type` (string, nullable)
    - `url` (string, nullable)
    - `mime_type` (string, nullable)
    - `language` (string, nullable)
    - `published_at` (integer, nullable)
  - `amendments` (array) (default: [])
    - `@type` (string) (default: "ArceAmendment")
    - `id` (string, required)
    - `description` (string, nullable)
    - `release_id` (string, nullable)
    - `amends_release_id` (string, nullable)
    - `amended_at` (integer, nullable)
- `parties` (array) (default: [])
  - `@type` (string) (default: "ArceParty")
  - `id` (string, required)
  - `name` (string, nullable)
  - `roles` (array) (default: [])
  - `identifier` (object, nullable)
    - `@type` (string) (default: "ArceIdentifier")
    - `scheme` (string, nullable)
    - `id` (string, nullable)
    - `legal_name` (string, nullable)
  - `contact` (object, nullable)
    - `@type` (string) (default: "ArceContact")
    - `name` (string, nullable)
    - `email` (string, nullable)
    - `telephone` (string, nullable)
    - `fax` (string, nullable)
- `releases` (array) (default: [])
  - `@type` (string) (default: "ArceRelease")
  - `id` (string, required)
  - `ocid` (string, required)
  - `released_at` (integer, nullable)
  - `tags` (array) (default: [])
  - `language` (string, nullable)
  - `initiation_type` (string, nullable)
  - `buyer` (object, nullable)
    - `@type` (string) (default: "ArceOrganization")
    - `id` (string, nullable)
    - `name` (string, nullable)
  - `parties` (array) (default: [])
    - `@type` (string) (default: "ArceParty")
    - `id` (string, required)
    - `name` (string, nullable)
    - `roles` (array) (default: [])
    - `identifier` (object, nullable) (see schema ArceIdentifier)
    - `contact` (object, nullable) (see schema ArceContact)
  - `tender_id` (string, nullable)
  - `tender_title` (string, nullable)
  - `tender_description` (string, nullable)
  - `tender_status` (string, nullable)
  - `procuring_entity` (object, nullable)
    - `@type` (string) (default: "ArceOrganization")
    - `id` (string, nullable)
    - `name` (string, nullable)
  - `procurement_method` (string, nullable)
  - `procurement_method_details` (string, nullable)
  - `submission_methods` (array) (default: [])
  - `submission_method_details` (string, nullable)
  - `tender_period` (object, nullable)
    - `@type` (string) (default: "ArcePeriod")
    - `start_at` (integer, nullable)
    - `end_at` (integer, nullable)
  - `enquiry_period` (object, nullable)
    - `@type` (string) (default: "ArcePeriod")
    - `start_at` (integer, nullable)
    - `end_at` (integer, nullable)
  - `has_enquiries` (boolean, nullable)
  - `line_items` (array) (default: [])
    - `@type` (string) (default: "ArceItem")
    - `id` (string, required)
    - `description` (string, nullable)
    - `classification` (object, nullable) (see schema ArceClassification)
    - `quantity` (number, nullable)
    - `unit` (object, nullable) (see schema ArceUnit)
    - `supplier` (object, nullable) (see schema ArceSupplier)
    - `variation` (string, nullable)
    - `unit_price` (object, nullable) (see schema ArceValue)
    - `total` (object, nullable) (see schema ArceValue)
    - `features` (object) (default: {})
      - `*` (string)
  - `documents` (array) (default: [])
    - `@type` (string) (default: "ArceDocument")
    - `id` (string, required)
    - `description` (string, nullable)
    - `document_type` (string, nullable)
    - `url` (string, nullable)
    - `mime_type` (string, nullable)
    - `language` (string, nullable)
    - `published_at` (integer, nullable)
  - `amendments` (array) (default: [])
    - `@type` (string) (default: "ArceAmendment")
    - `id` (string, required)
    - `description` (string, nullable)
    - `release_id` (string, nullable)
    - `amends_release_id` (string, nullable)
    - `amended_at` (integer, nullable)
  - `awards` (array) (default: [])
    - `@type` (string) (default: "ArceAward")
    - `id` (string, required)
    - `release_id` (string, nullable)
    - `status` (string, nullable)
    - `awarded_at` (integer, nullable)
    - `suppliers` (array) (default: [])
    - `line_items` (array) (default: [])
    - `documents` (array) (default: [])
    - `amendments` (array) (default: [])

## Errors

### 422 — Validation Error

The id is neither a portal publication id nor an ocds-yfs5dr 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 publication with that id on the 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.

