POST /api/guatecompras/tenders
Price: 10 credits
One Guatemalan public procurement process by NOG or ocid as its compiled OCDS release: the buyer and every party with addresses, contacts and entity classification, the tender with its period, UNSPSC-classified items and documents, the bids, the awards with suppliers and values, and the contracts with their signed documents.
The NOG is the number Guatecompras prints on every process and the tail of the ocid. `stage` is `contract` once `contracts` is non-empty, `award` once `awards` is non-empty and `tender` before that; `awarded_amount` is the sum of the award values.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)id string required — NOG or ocid of the process (examples: "25417029", "ocds-xqjsxa-16024362"; minLength: 1)@type string (default: "GuatecomprasTender")ocid string requirednog string requiredrelease_id string nullablestatus string nullablestatus_details string nullablestage string nullablebuyer object nullable@type string (default: "GuatecomprasPartyRef")id string nullablename string requiredbuyer_unit_id string nullableprocuring_entity object nullable@type string (default: "GuatecomprasPartyRef")id string nullablename string requiredsuppliers array (default: [])@type string (default: "GuatecomprasPartyRef")id string nullablename string requiredtenderers array (default: [])@type string (default: "GuatecomprasPartyRef")id string nullablename string requiredawarded_amount object nullable@type string (default: "GuatecomprasValue")amount number nullablecurrency string nullablepublished_at integer nullabledeadline_at integer nullableawarded_at integer nullableupdated_at integer nullableclassifications array (default: [])@type string (default: "GuatecomprasClassification")scheme string nullablecode string requiredcountry string (default: "GT")url string requiredtags array (default: [])initiation_type string nullablelanguage string nullableprocurement_method string nullableprocurement_method_details string nullablemain_procurement_category string nullableadditional_procurement_categories array (default: [])number_of_tenderers integer nullablesubmission_methods array (default: [])tender_period object nullable@type string (default: "GuatecomprasPeriod")start_at integer nullableend_at integer nullableline_items array (default: [])@type string (default: "GuatecomprasItem")id string requireddescription string nullableclassification object nullable@type string (default: "GuatecomprasClassification")scheme string nullablecode string requiredquantity number nullableunit string nullableattributes array (default: [])@type string (default: "GuatecomprasAttribute")id string requiredname string nullablevalue string nullabledocuments array (default: [])@type string (default: "GuatecomprasDocument")id string requireddocument_type string nullabledocument_type_details string nullableurl string nullablemime_type string nullablelanguage string nullablepublished_at integer nullablebids array (default: [])@type string (default: "GuatecomprasBid")id string requiredstatus string nullablebid_at integer nullablevalue object nullable@type string (default: "GuatecomprasValue")amount number nullablecurrency string nullabletenderers array (default: [])@type string (default: "GuatecomprasPartyRef")id string nullablename string requiredawards array (default: [])@type string (default: "GuatecomprasAward")id string requiredstatus string nullablestatus_details string nullableawarded_at integer nullablevalue object nullable@type string (default: "GuatecomprasValue")amount number nullablecurrency string nullablesuppliers array (default: [])@type string (default: "GuatecomprasPartyRef")id string nullablename string requiredcontracts array (default: [])@type string (default: "GuatecomprasContract")id string requiredaward_id string nullablecontract_number string nullablestatus string nullablestatus_details string nullablesigned_at integer nullableperiod object nullable@type string (default: "GuatecomprasPeriod")start_at integer nullableend_at integer nullablevalue object nullable@type string (default: "GuatecomprasValue")amount number nullablecurrency string nullabledocuments array (default: [])@type string (default: "GuatecomprasDocument")id string requireddocument_type string nullabledocument_type_details string nullableurl string nullablemime_type string nullablelanguage string nullablepublished_at integer nullableparties array (default: [])@type string (default: "GuatecomprasParty")id string requiredname string nullableroles array (default: [])identifier object nullable@type string (default: "GuatecomprasIdentifier")scheme string nullableid string nullableaddress object nullable@type string (default: "GuatecomprasAddress")street string nullablelocality string nullableregion string nullablecountry_name string nullablecontact object nullable@type string (default: "GuatecomprasContact")name string nullableemail string nullabletelephone string nullablefax string nullableadditional_contacts array (default: [])@type string (default: "GuatecomprasContact")name string nullableemail string nullabletelephone string nullablefax string nullablesector object nullable@type string (default: "GuatecomprasCode")id string requireddescription string nullableentity_group object nullable@type string (default: "GuatecomprasCode")id string requireddescription string nullableentity_level object nullable@type string (default: "GuatecomprasCode")id string requireddescription string nullablelegal_form object nullable@type string (default: "GuatecomprasCode")id string requireddescription string nullablemember_of array (default: [])@type string (default: "GuatecomprasPartyRef")id string nullablename string required422 — The id is neither a NOG number nor an ocds-xqjsxa-<NOG> ocid Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit 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 under that NOG or ocid 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 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 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 Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-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.