POST /api/zakupkikg/direct_contracts
Price: 1 credit
Single-source (direct) public procurement contract of Kyrgyzstan from goszakupki.okmot.kg by id or URL: buyer and supplier, the legal ground for the single source, items with prices and plan lines, penalty rates, payments and delivery schedule.
Takes the 24-character `id` of a zakupkikg/direct_contracts/search row. `legal_ground` quotes the article of the procurement law the buyer relied on.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)id string required — Single-source contract id or its URL (examples: "6ab5717997c0212140699d6a", "https://goszakupki.okmot.kg/public/contract/single-source/view/6ab5717997c0212140699d6a"; minLength: 1)@type string (default: "ZakupkikgDirectContract")id string requirednumber string nullablesystem_number string nullablesequence integer nullableurl string requiredcontract_type string nullableprocurement_type string nullablestatus string nullablebuyer object nullable@type string (default: "ZakupkikgCompanyRef")id integer nullableinn string nullablename string nullablesupplier object nullable@type string (default: "ZakupkikgCompanyRef")id integer nullableinn string nullablename string nullablecreated_by string nullablecontract_date string nullablecreated_at integer nullablepublished_at integer nullablelegal_ground string nullablelegal_ground_id integer nullablerelated_tender_id string nullablerelated_tender_number string nullablerelated_tender_name string nullableperformance_security_amount number nullableperformance_security_form string nullableforfeit_day_rate_delivery number nullableforfeit_day_rate_payment number nullableforfeit_max_delivery number nullableforfeit_max_payment number nullablefile object nullable@type string (default: "ZakupkikgFile")id string nullablename string nullableline_items array (default: [])@type string (default: "ZakupkikgDirectContractItem")quantity number nullableunit_price number nullablemodel string nullablespecification string nullablecountry_of_origin object nullable@type string (default: "ZakupkikgCountry")id integer nullableiso_code string nullablename string nullableplan_line object nullable@type string (default: "ZakupkikgPlanLine")id integer nullabledescription string nullableokgz object nullable@type string (default: "ZakupkikgOkgz")id string nullablecode string nullablename string nullablequantity number nullableunit string nullableunit_short string nullableunit_price number nullabletotal number nullableprocurement_period string nullableplan_type string nullableaccount string nullableaccount_title string nullableecon_classifier object nullable@type string (default: "ZakupkikgClassifier")id string nullablename string nullableparent_id string nullablecompany_id integer nullablecompany_name string nullableis_merged boolean nullablepayments array (default: [])@type string (default: "ZakupkikgPayment")payment_type string nullablecondition string nullabledate string nullabledue_date string nullablefiles array (default: [])@type string (default: "ZakupkikgFile")id string nullablename string nullableschedules array (default: [])@type string (default: "ZakupkikgSchedule")delivery_place string nullabledelivery_condition string nullabledate_from string nullabledate_to string nullablefiles array (default: [])@type string (default: "ZakupkikgFile")id string nullablename string nullable422 — The value is not a 24-character contract id or a contract URL 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 single-source contract with that id 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.