# /bdegp/tenders

`POST /api/bdegp/tenders`

Price: 5 credits

One tender notice from Bangladesh's national e-GP portal by tender ID: organisation chain and procuring entity, notice type, method, budget and funding source, project, package, categories, every key date, eligibility and description, document price and fees, validity dates, lots or service phases with security amounts, framework offices, amendments with their field changes and the inviting official.

## How to use it

Pass a tender ID from bdegp/tenders/search, or a `tender_id` from bdegp/awards/search or bdegp/experience/search for request-for-quotation, limited-tendering and direct-procurement tenders, which the tender search does not list. Any status is accepted, cancelled and archived included. Limited-tendering and direct-procurement tenders return the notice fields without status, lots, service phases, framework offices, amendments or the official's address and contacts.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `id` (string, required) — Tender ID or tender notice URL (examples: "1317342", "https://www.eprocure.gov.bd/resources/common/ViewTender.jsp?id=1317342&h=t"; minLength: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "BdegpTender")
- `id` (string, required)
- `app_id` (string, nullable)
- `reference` (string, nullable)
- `reoi_id` (string, nullable)
- `retendered_id` (string, nullable)
- `status` (string, nullable)
- `event_type` (string, nullable)
- `invitation_for` (string, nullable)
- `selection_for` (string, nullable)
- `ministry` (string, nullable)
- `division` (string, nullable)
- `organization` (string, nullable)
- `buyer_name` (string, nullable)
- `buyer_code` (string, nullable)
- `buyer_district` (string, nullable)
- `procurement_nature` (string, nullable)
- `procurement_type` (string, nullable)
- `procurement_method` (string, nullable)
- `contract_type` (string, nullable)
- `budget_type` (string, nullable)
- `funding_source` (string, nullable)
- `development_partner` (string, nullable)
- `project_code` (string, nullable)
- `project_name` (string, nullable)
- `package` (string, nullable)
- `categories` (array) (default: [])
- `published_at` (integer, nullable)
- `document_deadline_at` (integer, nullable)
- `pre_tender_meeting_start_at` (integer, nullable)
- `pre_tender_meeting_end_at` (integer, nullable)
- `closing_at` (integer, nullable)
- `opening_at` (integer, nullable)
- `security_deadline_at` (integer, nullable)
- `eligibility` (string, nullable)
- `description` (string, nullable)
- `experience_requirements` (string, nullable)
- `other_details` (string, nullable)
- `foreign_association` (string, nullable)
- `evaluation_type` (string, nullable)
- `document_availability` (string, nullable)
- `document_fees` (string, nullable)
- `document_price` (number, nullable)
- `document_price_usd` (number, nullable)
- `security_amount` (number, nullable)
- `payment_mode` (string, nullable)
- `passing_points` (number, nullable)
- `technical_weight` (number, nullable)
- `financial_weight` (number, nullable)
- `security_valid_until_date` (string, nullable)
- `tender_valid_until_date` (string, nullable)
- `official` (object, nullable)
  - `@type` (string) (default: "BdegpOfficial")
  - `name` (string, nullable)
  - `designation` (string, nullable)
  - `address` (string, nullable)
  - `city` (string, nullable)
  - `thana` (string, nullable)
  - `district` (string, nullable)
  - `country_name` (string, nullable)
  - `phone` (string, nullable)
  - `fax` (string, nullable)
  - `email` (string, nullable)
- `lots` (array) (default: [])
  - `@type` (string) (default: "BdegpLot")
  - `number` (string, nullable)
  - `name` (string, nullable)
  - `location` (string, nullable)
  - `security_amount` (number, nullable)
  - `security_amount_usd` (number, nullable)
  - `start_date` (string, nullable)
  - `completion_date` (string, nullable)
- `service_phases` (array) (default: [])
  - `@type` (string) (default: "BdegpServicePhase")
  - `reference` (string, nullable)
  - `name` (string, nullable)
  - `location` (string, nullable)
  - `start_date` (string, nullable)
  - `completion_date` (string, nullable)
- `framework_offices` (array) (default: [])
  - `@type` (string) (default: "BdegpFrameworkOffice")
  - `office_name` (string, nullable)
  - `officer_name` (string, nullable)
  - `designation` (string, nullable)
  - `is_lead` (boolean, nullable)
- `amendments` (array) (default: [])
  - `@type` (string) (default: "BdegpAmendment")
  - `number` (integer, nullable)
  - `text` (string, nullable)
  - `changes` (array) (default: [])
    - `@type` (string) (default: "BdegpChange")
    - `field` (string, nullable)
    - `old_value` (string, nullable)
    - `new_value` (string, nullable)
- `documents_url` (string, nullable)
- `currency` (string) (default: "BDT")
- `url` (string, required)

## 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 tender notice is available under 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.

