POST /api/vneps/contracts
Price: 10 credits
Vietnam public contract from muasamcong.mpi.gov.vn by contract code: investor, contractor, the signed e-contract with prices before and after VAT, type, effective date, goods and the bill of work items, the performance reports with completion progress and value, and the reports of goods delivered.
Takes the `id` of a vneps/contracts/search row. `econtract` stays empty for contracts that were not signed through the portal's e-contract module.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)id string required — Contract code (examples: "HD2500202334")@type string (default: "VnepsContract")id string requiredrecord_id string nullablecontract_version string nullablerecord_number string nullablerecord_version string nullablecontract_number string nullablecontract_name string nullableproject_name string nullablepackage_name string nullablenotify_number string nullablenotify_version string nullableresult_version string nullableinvest_field string nullablesource string nullableperform_type string nullableinvestor object nullable@type string (default: "VnepsParty")code string nullablename string nullablecontractor object nullable@type string (default: "VnepsParty")code string nullablename string nullablecontractor_tax_code string nullablejoint_venture object nullable@type string (default: "VnepsParty")code string nullablename string nullablepublisher_role string nullablepublished_by string nullablestatus string nullableperformance_status string nullablequality string nullabletermination string nullableviolation string nullablesign_date string nullableplanned_completion_date string nullableactual_completion_date string nullablecontract_published_at integer nullablepublished_at integer nullablecreated_at integer nullableupdated_at integer nullablesigned_price number nullableecontract object nullable@type string (default: "VnepsEContract")id string nullablecontract_type string nullablestatus string nullableprice_before_tax number nullableprice_before_tax_currency string nullabletax number nullabletax_currency string nullableprice_after_tax number nullableprice_after_tax_currency string nullableeffective_date string nullablecontract_period_text string nullablecontract_period_unit string nullableselection_duration integer nullableselection_duration_unit string nullableselection_method string nullablebid_mode string nullableprocedure string nullableinvestor_address string nullablecontractor_address string nullableproject_name_new string nullablemain_contract_id string nullablemain_contract_version string nullableresult_id string nullableresult_version string nullablemedical_type integer nullableis_medicine boolean nullableis_multi_lot boolean nullableform_codes array (default: [])scope_file object nullable@type string (default: "VnepsFile")id string nullablename string nullablekind string nullablegoods_file object nullable@type string (default: "VnepsFile")id string nullablename string nullablekind string nullablegoods array (default: [])@type string (default: "VnepsGoodsItem")name string nullablecode string nullablebrand string nullablemanufacturer string nullableorigin string nullablemanufacture_year string nullablehs_code string nullableunit string nullablequantity number nullableunit_price number nullableamount number nullablespecification string nullabledelivery_place string nullabledelivery_period string nullablenote string nullablelot_number string nullablelot_name string nullablecontractor_code string nullablescope_of_work array (default: [])@type string (default: "VnepsWorkItem")id string nullableposition string nullableparent_id string nullabledescription string nullableunit string nullablequantity number nullableis_group boolean nullableform_title string nullablerequirement string nullablepublished_at integer nullableversions array (default: [])performance_reports array (default: [])@type string (default: "VnepsPerformanceReport")id string requiredrecord_id string nullablecontract_version string nullablerecord_number string nullablerecord_version string nullablecontract_number string nullablecontract_name string nullableproject_name string nullablepackage_name string nullablenotify_number string nullablenotify_version string nullableresult_version string nullableinvest_field string nullablesource string nullableperform_type string nullableinvestor object nullable@type string (default: "VnepsParty")code string nullablename string nullablecontractor object nullable@type string (default: "VnepsParty")code string nullablename string nullablecontractor_tax_code string nullablejoint_venture object nullable@type string (default: "VnepsParty")code string nullablename string nullablepublisher_role string nullablepublished_by string nullablestatus string nullableperformance_status string nullablequality string nullabletermination string nullableviolation string nullablesign_date string nullableplanned_completion_date string nullableactual_completion_date string nullablecontract_published_at integer nullablepublished_at integer nullablecreated_at integer nullableupdated_at integer nullablenotify_id string nullableresult_id string nullablecompletion_percent number nullablecompleted_value number nullableadjusted_completion_date string nullablecompletion_delay_days integer nullableis_complete boolean nullableis_signed_in_system boolean nullablecontract_created_at integer nullableused_goods_reports array (default: [])@type string (default: "VnepsUsedGoodsReport")id string nullablereport_number string nullablestatus string nullableversion string nullablepublished_by string nullablepublished_at integer nullableis_online boolean nullableis_medicine boolean nullablegoods array (default: [])@type string (default: "VnepsGoodsItem")name string nullablecode string nullablebrand string nullablemanufacturer string nullableorigin string nullablemanufacture_year string nullablehs_code string nullableunit string nullablequantity number nullableunit_price number nullableamount number nullablespecification string nullabledelivery_place string nullabledelivery_period string nullablenote string nullablelot_number string nullablelot_name string nullablecontractor_code string nullable422 — The value is not a contract code like HD2500202334 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 contract with that code in the performance registry 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.