# /sicop/tenders

`POST /api/sicop/tenders`

Price: 20 credits

One Costa Rican public procurement procedure from SICOP by id: state, institution, budget, procedure type, every deadline, guarantees, contract terms, the general, specific and administrative conditions as text, the requested lines with classification codes, quantities and unit prices, the attached documents and the objections and appeals filed against the procedure.

## How to use it

`status` is the SICOP state in Spanish and `stage` maps it to tender, award or contract. The award resolution is referenced by `award_doc_no`; winning suppliers and awarded amounts are not part of this record. `value` is the budget in CRC and is empty when the procedure does not publish one; `value_usd` is the USD budget when the procedure states it.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `id` (string, required) — SICOP procedure id (examples: "20260902492-00", "20260902492"; minLength: 11)

## Response

### 200 — Successful Response

- `@type` (string) (default: "SicopTender")
- `id` (string, required)
- `cartel_no` (string, required)
- `cartel_seq` (string, required)
- `procedure_number` (string, nullable)
- `status` (string, nullable)
- `stage` (string, nullable)
- `buyer` (object, nullable)
  - `@type` (string) (default: "SicopBuyerRef")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `value` (object, nullable)
  - `@type` (string) (default: "SicopValue")
  - `amount` (number, nullable)
  - `currency` (string, nullable)
- `value_usd` (object, nullable)
  - `@type` (string) (default: "SicopValue")
  - `amount` (number, nullable)
  - `currency` (string, nullable)
- `category` (string, nullable)
- `procedure_type` (string, nullable)
- `procedure_type_name` (string, nullable)
- `procedure_type_detail` (string, nullable)
- `bid_document_type` (string, nullable)
- `published_at` (integer, nullable)
- `bid_start_at` (integer, nullable)
- `deadline_at` (integer, nullable)
- `opening_at` (integer, nullable)
- `clarification_deadline_at` (integer, nullable)
- `opinion_deadline_at` (integer, nullable)
- `appeal_deadline_at` (integer, nullable)
- `version` (string, nullable)
- `published_versions` (array) (default: [])
- `is_secret` (boolean, nullable)
- `secret_reason` (string, nullable)
- `is_online` (boolean, nullable)
- `has_electronic_guarantees` (boolean, nullable)
- `is_closed` (boolean, nullable)
- `is_modified` (boolean, nullable)
- `is_auction` (boolean, nullable)
- `is_joint_bid_allowed` (boolean, nullable)
- `is_clarification_allowed` (boolean, nullable)
- `is_appeal_allowed` (boolean, nullable)
- `is_gazette_required` (boolean, nullable)
- `gazette_number` (string, nullable)
- `gazette_date` (string, nullable)
- `gazette_link_url` (string, nullable)
- `has_price_readjustment` (boolean, nullable)
- `price_readjustment_terms` (string, nullable)
- `has_advance_payment` (boolean, nullable)
- `advance_payment_amount` (number, nullable)
- `advance_payment_terms` (string, nullable)
- `has_contract_request` (boolean, nullable)
- `supplier_invitation` (string, nullable)
- `prequalification_type` (string, nullable)
- `prequalification_method` (string, nullable)
- `evaluation_mode` (string, nullable)
- `max_bids_per_supplier` (integer, nullable)
- `max_alternative_bids` (integer, nullable)
- `bid_validity_duration` (string, nullable)
- `bid_validity_unit` (string, nullable)
- `award_term_duration` (integer, nullable)
- `award_term_unit` (string, nullable)
- `contract_duration` (integer, nullable)
- `contract_duration_unit` (string, nullable)
- `contract_extension_duration` (integer, nullable)
- `contract_extension_unit` (string, nullable)
- `guarantees` (array) (default: [])
  - `@type` (string) (default: "SicopGuarantee")
  - `kind` (string, required)
  - `is_required` (boolean, nullable)
  - `duration` (string, nullable)
  - `amount` (number, nullable)
  - `amount_type` (string, nullable)
- `delivery_method` (string, nullable)
- `delivery_terms` (string, nullable)
- `bid_area` (string, nullable)
- `exemption_reason` (string, nullable)
- `exception_code` (string, nullable)
- `direct_contracting_grounds_code` (string, nullable)
- `direct_contracting_grounds` (string, nullable)
- `stamp_tax_terms` (string, nullable)
- `stamp_tax_buyer_share` (integer, nullable)
- `stamp_tax_supplier_share` (integer, nullable)
- `penalty_terms` (string, nullable)
- `penalty_article` (string, nullable)
- `general_conditions` (string, nullable)
- `specific_conditions` (string, nullable)
- `admin_conditions` (string, nullable)
- `clarification_terms` (string, nullable)
- `evaluation_doc_no` (string, nullable)
- `recommendation_doc_no` (string, nullable)
- `award_doc_no` (string, nullable)
- `evaluation_doc_no_phase2` (string, nullable)
- `recommendation_doc_no_phase2` (string, nullable)
- `award_doc_no_phase2` (string, nullable)
- `awardee_history_count` (integer, nullable)
- `clarification_count` (integer, nullable)
- `clarification_answered_count` (integer, nullable)
- `clarification_unanswered_count` (integer, nullable)
- `category_count` (integer, nullable)
- `line_count` (integer, nullable)
- `executor_id` (string, nullable)
- `executor_name` (string, nullable)
- `opening_officer_name` (string, nullable)
- `opening_examiner_name` (string, nullable)
- `evaluation_officer_name` (string, nullable)
- `clarification_officer_name` (string, nullable)
- `writer_name` (string, nullable)
- `institution_staff` (array) (default: [])
- `crc_account` (string, nullable)
- `usd_account` (string, nullable)
- `appeals` (array) (default: [])
  - `@type` (string) (default: "SicopAppeal")
  - `number` (string, nullable)
  - `sequence` (string, nullable)
  - `type_code` (string, nullable)
  - `category_code` (string, nullable)
  - `request_status_code` (string, nullable)
  - `request_status` (string, nullable)
  - `progress_status_code` (string, nullable)
  - `progress_status` (string, nullable)
- `country` (string) (default: "CR")
- `lines` (array) (default: [])
  - `@type` (string) (default: "SicopLine")
  - `category` (string, nullable)
  - `line_number` (integer, nullable)
  - `product_code` (string, nullable)
  - `name` (string, nullable)
  - `quantity` (number, nullable)
  - `unit` (string, nullable)
  - `unit_price` (number, nullable)
  - `currency` (string, nullable)
  - `budget_amount` (number, nullable)
  - `is_sample_required` (boolean, nullable)
- `documents` (array) (default: [])
  - `@type` (string) (default: "SicopDocument")
  - `sequence` (string, nullable)
  - `name` (string, nullable)
  - `file_name` (string, nullable)
  - `stored_file_name` (string, nullable)
  - `storage_path` (string, nullable)
  - `kind` (string, nullable)
  - `size_mb` (number, nullable)
  - `is_supplier_visible` (boolean, nullable)
  - `is_released` (boolean, nullable)

## Errors

### 422 — Validation Error

The request body did not validate

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 published procedure with that id

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.

